/*-----------------------------------
  IMPORT FONTS
-----------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');


/*-----------------------------------
  CSS VARIABLES (Light & Default Mode)
-----------------------------------*/
:root {
  --primary-color: #b74b4b;
  --primary-color-ii: #ae2828;
  --secondary-color: rgb(0, 0, 0);
  --background-color: black;
  --white-color: rgb(255, 255, 255);
  --nude-color: rgb(248, 255, 221);
  --light-gray: #ececec;
  --card-bg-color: #fdf6e3; /* soft warm light tile */
  
}


/*-----------------------------------
  GLOBAL RESET + BASE STYLES
-----------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  transition: all 0.3s ease;
}

html {
  font-size: 62.5%;
}

body {
  overflow-x: hidden;
}

/*-----------------------------------
  HEADER & NAVIGATION
-----------------------------------*/
header {
  margin-top: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: var(--white-color);
  filter: drop-shadow(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-color);
  cursor: pointer;
  transition: 0.5s ease;
  z-index: 101;
}

.logo:hover {
  transform: scale(1.1);
}

.toggle-btn {
  background: transparent;
  font-size: 2.2rem;
  color: var(--primary-color);
  padding: 0.8rem;
  transition: 0.3s ease;
}

.toggle-btn:hover {
  transform: scale(1.1);
}

body.dark-mode .toggle-btn {
  color: var(--primary-color);
}

.menu-icon {
  display: none;
  font-size: 3rem;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 101;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 1.8rem;
  color: var(--secondary-color);
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

/*-----------------------------------
  HEADER & NAVIGATION - RESPONSIVE
-----------------------------------*/
@media (max-width: 995px) {
  .menu-icon {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 60%;
    background-color: var(--white-color);
    padding: 2rem;
    border-left: 3px solid var(--primary-color);
    border-bottom-left-radius: 2rem;
    display: none;
    flex-direction: column;
  }

  nav.active {
    display: flex;
  }

  nav a {
    font-size: 2rem;
    margin: 1.5rem 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  nav {
    width: 70%;
  }

  nav a {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  nav {
    width: 100%;
    padding: 1.5rem;
  }

  nav a {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
}
/*-----------------------------------
  HOME SECTION
-----------------------------------*/
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6rem;
  background-color: var(--white-color);
  padding: 10rem 5% 8rem;
  flex-wrap: wrap;
}


.home .home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}

span {
  color: var(--primary-color);
}

.home-content h3 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.home-content {
  max-width: 600px;
  padding: 2rem 1rem;
}

.home-content p {
  font-size: 1.6rem;
}

.home-img {
  border-radius: 10%;
}

.home-img img {
  width: 320px;
  max-width: 90vw;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 2rem;
}


/*-----------------------------------
  HOME SECTION - RESPONSIVE
-----------------------------------*/
@media (max-width: 1000px) {
  .home {
    gap: 4rem;
  }
}

@media (max-width: 995px) {
  .home {
    flex-direction: column;
    margin: 5rem 4rem;
  }

  .home .home-content h3 {
    font-size: 2.5rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }
}

@media (max-width: 768px) {
  .home {
    gap: 2rem;
    padding: 2rem;
  }

  .home .home-content h1 {
    font-size: 4rem;
  }

  .home-content h3 {
    font-size: 2.5rem;
  }

  .home-content p {
    font-size: 1.4rem;
  }

  .home-img img {
    width: 80vw;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .home {
    flex-direction: column;
    gap: 2rem;
  }

  .home .home-content h1 {
    font-size: 3rem;
    text-align: center;
  }

  .home-content h3 {
    font-size: 2rem;
    text-align: center;
  }

  .home-content p {
    font-size: 1.4rem;
    text-align: center;
  }

  .home-img img {
    width: 50vw;
    margin: 2rem auto;
    display: block;
  }

  .typing-text {
    font-size: 2.4rem;
  }
}

/*-----------------------------------
  TYPING TEXT ANIMATION
-----------------------------------*/
.typing-text {
  display: inline-block;
  position: relative;
  font-weight: 700;
  font-size: 4rem;
  min-height: 4.5rem; /* Prevent height jump during animation */
}

.typing-text span {
  position: relative;
  display: inline-block;
  padding-right: 6px;
}

.typing-text span::before {
  content: "Security Analyst";
  color: var(--primary-color);
  animation: words 10s infinite;
}

.typing-text span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes words {
  0%, 20% {
    content: "IT Graduate";
  }
  21%, 40% {
    content: "Security Analyst";
  }
  41%, 60% {
    content: "Security Consultant";
  }
  61%, 80% {
    content: "SOC Analyst";
  }
  81%, 100% {
    content: "Incident Analyst";
  }
}


/*-----------------------------------
  SOCIAL ICONS
-----------------------------------*/
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid var(--primary-color);
  font-size: 2rem;
  border-radius: 50%;
  margin: 1rem;
  transition: 0.3s ease;
  color: var(--primary-color);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: scale(1.2) translateY(-3px);
  box-shadow: 0 0 15px var(--primary-color);
}

/*-----------------------------------
  BUTTON STYLES (CV, LinkedIn, etc.)
-----------------------------------*/
.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: var(--white-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: var(--primary-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.03);
  background-color: var(--primary-color);
  color: black;
  box-shadow: 0 0 25px var(--primary-color);
}

/*-----------------------------------
  BUTTON GROUP (Wraps .btns)
-----------------------------------*/
.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.button-group .btn {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .button-group .btn {
    width: 80%;
    text-align: center;
  }
}

/*-----------------------------------
  CONTACT PAGE LAYOUT
-----------------------------------*/
.page {
  margin-top: 12rem;
  padding: 4rem 8%;
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  gap: 4rem;
  flex-wrap: wrap;
  min-height: 50vh;
}

/*-----------------------------------
  CONTACT SECTION - INFO (LEFT)
-----------------------------------*/
.contact-section {
  flex: 1;
  min-width: 280px;
  padding-right: 3rem;
  margin-bottom: 2rem;
}

.contact-section h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-section .cs-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.contact-section .cs-item .icon {
  font-size: 2.5rem;
  margin-right: 2rem;
  color: var(--primary-color);
}

.contact-section .cs-item .text {
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
}

.contact-section .cs-item .placeHolder {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.contact-section .cs-item .info {
  font-size: 1.6rem;
  color: #555;
  word-break: break-all;
}

/*-----------------------------------
  CONTACT SECTION - FORM (RIGHT)
-----------------------------------*/
.contact-form {
  flex: 1;
  padding-left: 2rem;
  border-left: 2px solid var(--light-gray);
  min-width: 280px;
}

.contact-form h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.contact-form .form-group {
  margin-bottom: 2.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
  color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: var(--light-gray);
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.contact-form button {
  padding: 1.5rem 4rem;
  font-size: 1.8rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 8px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #c9302c;
}

/*-----------------------------------
  CONTACT FORM ERRORS & VALIDATION
-----------------------------------*/
.error,
.email-error {
  font-size: 1.4rem;
  color: #ff4d4d;
  margin-top: 1rem;
  display: none;
}

.show-error {
  display: block;
}

/*-----------------------------------
  FOOTER SECTION
-----------------------------------*/
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 5%;
  display: flex;
  justify-content: left;
  align-items: center;
  flex-direction: column;
}

.footer .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer .social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid var(--white-color);
  font-size: 2rem;
  border-radius: 50%;
  margin: 1rem;
  color: var(--white-color);
  transition: 0.3s ease;
}

.footer .social-icons a:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
  transform: scale(1.2) translateY(-3px);
  box-shadow: 0 0 15px var(--white-color);
}

/*-----------------------------------
  PROJECTS SECTION
-----------------------------------*/
.project-section {
  margin-top: 12rem;
  padding: 4rem 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-heading {
  font-size: 4rem;
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.project-heading .purple {
  color: var(--primary-color);
}

.row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.project-card {
  width: 30%;
  background-color: var(--card-bg-color);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}


.card-img {
  width: 100%;
  height: auto;
  max-height: 150px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 15px;
}

.project-card h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.project-card p {
  text-align: center;
  font-size: 1.6rem;
  color: var(--background-color);
  margin-bottom: 1.5rem;
}

.project-card a {
  display: inline-block;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 1.4rem;
  margin: 0.4rem 0.4rem 0 0;
  transition: 0.3s ease;
  text-decoration: none;
}

.project-card a:hover {
  background-color: var(--primary-color);
  color: black;
}

/*-----------------------------------
  BLOG SECTION
-----------------------------------*/
.blog-feed {
  padding: 10rem 9% 5rem;
  background-color: var(--white-color);
  color: var(--secondary-color);
}

.blog-feed h2 {
  text-align: center;
  font-size: 3.2rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.post {
  background:  --card-bg-color;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  height: 180px;
  margin-bottom: 1.2rem;
}

.post p {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.reaction-bar {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.reaction-bar button {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.interaction-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.interaction-form .name-input,
.interaction-form .comment-box {
  width: 100%;
  padding: 1rem;
  font-size: 1.4rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
}

.interaction-form .comment-box {
  min-height: 60px;
  resize: vertical;
}

.interaction-form .btn {
  width: fit-content;
  align-self: flex-end;
  font-size: 1.4rem;
  padding: 0.8rem 1.6rem;
}

/*-----------------------------------
  CERTIFICATES SECTION
-----------------------------------*/
.cert-heading {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.certificate-page {
  padding: 12rem 8% 6rem;
}

.certificate-list ul li a {
  font-weight: normal;
  color: black;
  text-decoration: underline;
}

body.dark-mode .certificate-list ul li a {
  color: white;
}

.skills-graph {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .skills-graph {
  background-color: #222;
}

#skillsChart {
  width: 100% !important;
  height: 300px !important;
}

details summary {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
  cursor: pointer;
}

details ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

details li {
  font-size: 1.6rem;
  color: var(--secondary-color);
  margin-bottom: 0.6rem;
}

details li a {
  text-decoration: underline;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

details li a:hover {
  color: var(--secondary-color);
}

/*-----------------------------------
  RESPONSIVE MEDIA QUERIES
-----------------------------------*/
@media (max-width: 995px) {
  .project-card {
    width: 45%;
  }

  .project-heading {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 2rem 4%;
  }

  .contact-main {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
    background-color: var(--contact-bg-color);
    transition: background-color 0.3s ease;
  }



  .contact-section h1,
  .contact-form h1,
  .project-heading {
    font-size: 2.4rem;
  }

  .placeHolder,
  .contact-form label {
    font-size: 1.4rem;
  }

  .contact-form input,
  .contact-form textarea,
  .project-card p,
  .project-card a,
  .post p,
  .reaction-bar button,
  .interaction-form .btn {
    font-size: 1.4rem;
  }

  .contact-form button {
    padding: 1rem 3rem;
    font-size: 1.6rem;
  }

  .project-card {
    width: 90%;
  }

  .project-card h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .project-card,
  .row {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .project-heading {
    font-size: 2.8rem;
  }

  .project-card h2 {
    font-size: 1.8rem;
  }

  .project-card p,
  .project-card a {
    font-size: 1.2rem;
  }
}


/*-----------------------------------
  DARK MODE OVERRIDES
-----------------------------------*/
.dark-mode {
  --primary-color: #ff7676;
  --secondary-color: white;
  --background-color: #0d1117;
  --white-color: #121212;
  --nude-color: #222;
  --card-bg-color: #323232; /* slightly lighter than the bg (#121212 or #0d1117) */
}

body.dark-mode,
body.dark-mode header,
body.dark-mode nav,
body.dark-mode section,
body.dark-mode .home,
body.dark-mode .contact-main,
body.dark-mode .project-card,
body.dark-mode .skills-graph,
body.dark-mode .certificate-page,
body.dark-mode .blog-feed {
  background-color: var(--white-color);
  color: var(--secondary-color);
}

body.dark-mode .btn,
body.dark-mode .toggle-btn {
  background-color: var(--white-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

body.dark-mode .project-card p,
body.dark-mode .project-card h2,
body.dark-mode .project-card a,
body.dark-mode details li a {
  color: #f0f0f0;
}

.dark-mode .contact-main {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05);
}

.dark-mode .project-card {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05);
}


.dark-mode.project-card:hover {
  background-color: var(--primary-color-ii); /* or a slight tint like #292929 */
}

body.dark-mode .certificate-list ul li a {
  color: white;
}

.dark-mode .post {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05);
}


[data-lazy="true"] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

[data-lazy="true"].fade-in {
  opacity: 1;
  transform: translateY(0);
}



