/* ============================
  Root Variables for Theme Colors
=============================*/
:root {
    /* Dark Mode (Default) */
    --background-color: #272a34;
    --highlight-color: #00aedb;
    --text-color: white;
    --card-background: #323544;
    --input-bg-color: #333;

    /* Light Mode */
    --light-background-color: #fffaf0;
    --light-highlight-color: #9d2933;
    --light-text-color: #4b3832;
    --light-card-background: #ffffff;
    --light-input-bg-color: #f4f4f4;
}

/* Light Mode (Applied via a Class in JS) */
.light-mode {
    --background-color: var(--light-background-color);
    --highlight-color: var(--light-highlight-color);
    --text-color: var(--light-text-color);
    --card-background: var(--light-card-background);
    --input-bg-color: var(--light-input-bg-color);
}


/*=============================
  Global Styles
=============================*/
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%
}

section{
    margin: 0 auto;
    padding: 40px min(4vw, 20px);
}

section, header#hero {
  scroll-margin-top: 100px;
}

#container{
    max-width: 1400px; 
    margin: 0 auto;    
    padding: 0 1rem;   
}

#container p {
    font-size: large;
}

h2 {
    font-family: "Tektur", sans-serif;
    font-size: 2rem;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
  font-family: "Tektur", sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--highlight-color);
  display: inline-block;
  padding-bottom: 0.3rem;
}

.section-card {
  background-color: var(--card-background);
  padding: 40px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto 2rem auto;
  max-width: 1100px;
}

button, .linksButton, #submit, #all-projects {
    font-family:  "Tektur", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid var(--highlight-color);
    border-radius: 5px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
    max-width: 200px;
    align-self: center;
}

button:hover, .linksButton:hover, #submit:hover, #all-projects:hover {
    background-color: var(--highlight-color);
    color: var(--background-color);
}

.about-buttons .linksButton, .footer-buttons .linksButton {
    text-decoration: none;
}


/*=============================
  Typography & Highlights
=============================*/
/* Google Font "Tektur" for Titles */
.tektur-title {
    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.highlight {
    color: var(--highlight-color);
    font-weight: bold;
}


/*=============================
  Hero Section
=============================*/
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-color);
    max-width: 80%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section Buttons */
#scroll-button {
    margin-top: 20px;
}

/* Theme Toggle Button */
#theme-toggle {
    margin-top: 20px;
}

/* Light Mode Button Fix */
.light-mode #theme-toggle {
    color: var(--light-text-color);
    border-color: var(--light-highlight-color);
}

#typed-text::after {
  content: '|';
  animation: blink 1s step-end infinite;
  margin-left: 5px;
}

@keyframes blink {
  from, to { opacity: 0 }
  50% { opacity: 1 }
}


/*=============================
  Navigation Bar
=============================*/
#top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 110px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  gap: 1.5rem;
  padding: 1.2rem 1rem;
  z-index: 1000;
  transform: translateY(-100%);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s ease;
}

#top-navbar.visible {
  transform: translateY(0);
  background-color: var(--background-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#top-navbar .nav-item {
  text-decoration: none;
  font-family: "Tektur", sans-serif;
  font-size: 0.95rem;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
}

#top-navbar .nav-item:hover {
  color: var(--highlight-color);
  border-bottom: 2px solid var(--highlight-color);
}

/* Active Page Indicator */
#top-navbar .nav-item.active {
  color: var(--highlight-color);
  font-weight: bold;
  border-bottom: 2px solid var(--highlight-color);
}

/*=============================
  About Section
=============================*/

/* Wrapper to constrain and center all content */
.about-content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

#about h2 {
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

#about p {
    margin: 0 0 1.2rem 0;
    text-align: justify;
    text-align-last: center;
    line-height: 1.6;
}

/* Work Ethic Value List */
.about-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.about-values li {
    font-size: large;
    white-space: nowrap;
}

/* Social Buttons Container */
.about-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
}

.about-social {
    margin-top: 2rem;
    text-align: center;
}

.social-label {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    font-family: "Tektur", sans-serif;
    text-align: center; 
    width: 100%;
}

/* Social Button Styles */
.about-buttons .linksButton {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--highlight-color);
    transition: transform 0.2s ease;
}

.about-buttons .linksButton:hover {
    transform: scale(1.2);
}

.about-buttons .devicon-github-original {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.light-mode .devicon-github-original {
    color: #000000 !important;
    fill: #000000 !important;
}
  

/*=============================
  Skills
=============================*/
#skills {
  min-height: 30vh;
  scroll-margin-top: 100px;
}

.skills-flex-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.skills-paragraph {
  flex: 1;
  text-align: justify;
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
  color: var(--text-color);
}

.icon-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  max-width: 180px;
  margin-top: -0.25rem; 
}

.icon-label {
  font-family: "Tektur", sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--highlight-color);
  text-align: center;
  border-bottom: 2px solid var(--highlight-color);
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
  margin-top: -0.25rem; 
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.icon-row img,
.icon-row i {
  width: 48px;
  height: 48px;
  font-size: 48px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.icon-row img:hover,
.icon-row i:hover {
  transform: scale(1.2);
}


/*=============================
  Certifications
=============================*/
.cert-card {
  display: flex;
  align-items: flex-start;
  background-color: var(--background-color);
  border: 2px solid var(--highlight-color);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 1.25rem;
  gap: 1.5rem;
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: scale(1.02);
}

.cert-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
}

.cert-info {
  flex: 1;
}

.cert-info h3 {
  margin-top: 0;
  font-size: 1.2rem;
  border: none;
}

.cert-info p {
  margin: 0.25rem 0;
  font-size: 1rem;
  line-height: 1.5;
}


/*=============================
  Project Grid Layout
=============================*/
#projects {
    padding: 80px 20px;
    background: var(--background-color);
    text-align: center;
}

/* Main grid container */
.project-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
    row-gap: 3rem;       
    padding: 1rem 0 3rem;
    overflow: visible;
    justify-items: center;
}

.project-grid.collapsed > *:nth-child(n+5) {
    display: none;
}

.project-grid.expanded > * {
    display: block;
}

/* Card anchor wrapper */
.card-link {
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.card-link:hover {
    transform: scale(1.01);
}

.card{
    background-color: var(--card-background);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    opacity: 0.9;
    transform: scale(1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.card:hover {
    border: 2px solid var(--highlight-color);
    cursor: pointer;
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card h3 {
    margin: 10px 0;
    text-align: center;
}

.card.coming-soon {
    opacity: 0.75;
    filter: grayscale(0.3);
    border-style: dashed;
}

.card.coming-soon:hover {
    filter: grayscale(0) brightness(1.05);
    opacity: 1;
}

.project-grid.collapsed > *:nth-child(n+5) { display: none; }

.project-grid.expanded  > *               { display: block; }

#toggle-projects {
    margin-top: 2rem;
}


/*=============================
  Why Cybersecurity Section
=============================*/
#why-cybersecurity {
  line-height: 1.75;
  font-size: 1rem;
}

.cyberstory {
  text-align: justify;
  text-align-last: center;
  margin: 0 auto;
  color: var(--text-color);
}

.cyberstory em {
  display: block;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--highlight-color);
}


/*=============================
  Contact Section
=============================*/

#contact {
    padding: 80px 20px;
    text-align: center;
}


#contact p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

/*CV Downloader*/
#contact .cv a.cv-download {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 2px dashed var(--highlight-color);
  border-radius: 5px;
  color: var(--highlight-color);
  font-family: "Tektur", sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

#contact .cv a.cv-download:hover {
  background-color: var(--highlight-color);
  color: var(--background-color);
}

#contact .cv-timestamp {
  font-size: 0.75rem;
  color: gray;
  opacity: 0.6;
  margin-top: 0.2rem;
}

/* Contact Form */
#contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* Input fields */
#contact input,
#contact textarea {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    border: 1px solid var(--highlight-color);
    border-radius: 6px;
    background-color: var(--input-bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border 0.3s ease;
    font-family: "Tektur", sans-serif;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(0, 174, 219, 0.4);
}

/* Placeholder */
#contact input::placeholder,
#contact textarea::placeholder {
    color: var(--highlight-color);
    opacity: 0.7;
}
 
/*=============================
  Footer
=============================*/

#footer {
  background-color: #121212;
  color: grey;
  padding: 2rem 1rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 3rem auto 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

#footer .linksButton {
    background: transparent;
    border: none;
    margin: 0 10px;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#footer .linksButton:hover {
    transform: scale(1.2);
}

#footer .devicon-github-original {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/*=============================
  Responsive Design Features
=============================*/

/* Medium screens (tablets, landscape) */
@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens (phones) */
@media (max-width: 768px) {
  #container {
    padding: 0 1rem;
  }

  #top-navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }

  #top-navbar .nav-item {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .section-card {
    padding: 32px 16px;
  }

  .about-values {
    justify-content: center;
  }

  .about-buttons {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .carousel .card {
    min-width: 100%;
  }

  .project-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .skills-flex-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .skills-paragraph {
    text-align: left;
    max-width: 100%;
    padding: 0 1rem;
  }

  .icon-cluster {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0 0 0;
    max-width: 100%;
  }

  .icon-row {
    justify-content: center;
  }

  .icon-label {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .inline-icon {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.25rem;
  }
}

