/* --- CSS VARIABLES & GENERAL STYLES (NEW CYAN THEME) --- */
:root {
    --primary-color-start: #00B4DB;
    --primary-color-end: #0083B0;
    --primary-gradient: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    --glow-color: rgba(0, 180, 219, 0.4);
    --background-color: #f7f9fc;
    --card-background-color: #FFFFFF;
    --text-color: #4a5568;
    --heading-color: #1a202c;
    --border-color: #e2e8f0;
    --nav-height: 70px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --glow-color: rgba(0, 180, 219, 0.4);
    --background-color: #0d1117;
    --card-background-color: #161b22;
    --text-color: #c9d1d9;
    --heading-color: #FFFFFF;
    --border-color: #30363d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;
}

/* ... (h1, h2, h3, main, etc. styles remain the same) ... */
h1,
h2,
h3 {
    color: var(--heading-color);
    font-weight: 700;
}

main {
    padding-top: var(--nav-height);
}

.content-section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    /* Adds nice spacing below the heading */
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* --- HEADER & NAVIGATION --- */
/* ... (Header styles remain the same, they already use the new color variables) ... */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, border-color 0.3s;
}

[data-theme="dark"] .header {
    background-color: rgba(13, 17, 23, 0.8);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
    color: var(--heading-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.nav-link.active {
    color: var(--heading-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-gradient);
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 28px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider .fa-sun,
.slider .fa-moon {
    color: #fff;
    font-size: 14px;
}

.slider:before {
    background-color: #fff;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    position: absolute;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-image: var(--primary-gradient);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--heading-color);
    transition: all 0.3s ease-in-out;
}

/* --- HERO SECTION (NEW TWO-COLUMN LAYOUT) --- */
.hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--nav-height));
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text-column {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.3rem;
    max-width: 500px;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    /* Adds space between the icons */
}

.social-links a:hover {
    color: var(--primary-color-start);
    transform: scale(1.1);
}

.hero-photo-column {
    flex-shrink: 0;
}

.hero-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid transparent;
    background: var(--primary-gradient) border-box;
    box-shadow: 0 0 30px var(--glow-color);
}

/* --- BUTTONS --- */
.cta-button {
    background-image: var(--primary-gradient);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glow-color);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px var(--glow-color);
}

/* --- SHARED CARD STYLES w/ GLOW EFFECT --- */
.achievements-card,
.education-card,
.cert-card,
.skill-category,
.timeline-content,
.project-card-large,
.contact-container {
    background: var(--card-background-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Add these styles to style.css */
.education-meta {
  margin: 0.25rem 0 0.75rem;
  color: var(--text-color);
  font-size: 1rem;
}

.education-details {
  font-weight: 500;
}

.honors-badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 1rem;
  background-image: var(--primary-gradient);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 10px var(--glow-color);
}

.honors-badge .fa-star {
  margin-right: 0.5rem;
}

/* Add these styles to style.css */
.cert-card {
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color-start);
}

.cert-card a {
  text-decoration: none;
  color: inherit;
  /* Use the parent text color */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  /* Ensure text is centered if it wraps */
}

.skill-category:hover,
.project-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .skill-category:hover,
[data-theme="dark"] .project-card-large:hover {
    box-shadow: 0 0 40px var(--glow-color);
    border-color: var(--primary-color-start);
}

/* ... (All other styles remain the same from the previous version) ... */
.page-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s ease-out forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.skill-category {
    text-align: center;
}

.achievements-card {
    text-align: center;
}

.achievement-context {
    font-style: italic;
    margin: 0.5rem 0 1rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--primary-gradient);
    top: 0;
    bottom: 0;
    left: 15px;
}

.timeline-item {
    padding: 10px 0 30px 50px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    left: 8.5px;
    background-color: var(--card-background-color);
    border: 3px solid var(--primary-color-start);
    top: 5px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    color: var(--primary-color-start);
}

.timeline-content .company {
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    text-align: center;
    font-weight: 500;
}

.projects-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.project-card-large {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-image {
    aspect-ratio: 16 / 9;
    /* This forces a widescreen ratio */
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 2rem;
}

.project-tech {
    font-size: 0.9rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin: 1rem 0;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-link i {
    margin-left: 0.4rem;
}


.project-link {
    color: var(--primary-color-start);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
}

.project-link i {
    transition: transform 0.3s;
}

.project-link:hover i {
    transform: translateX(5px);
}

.contact-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem;
}

.contact-container {
    display: flex;
    gap: 3rem;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-color-start);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
}

.social-links-contact {
    margin-top: 2rem;
}

.social-links-contact a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-right: 1rem;
    /* Adjusted for better spacing */
    transition: color 0.3s;
}

.social-links-contact a:hover {
    color: var(--primary-color-start);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-color);
}

.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column-reverse;
        /* Stacks photo on top */
        text-align: center;
        gap: 2rem;
    }

    .hero-text-column {
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (min-width: 769px) {
    .project-card-large {
        flex-direction: row;
    }

    .project-card-large:nth-child(even) {
        flex-direction: row-reverse;
    }

    .project-image {
        flex: 0 0 40%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--card-background-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--box-shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .contact-container {
        flex-direction: column;
    }
}

/* Add this to style.css */

/* --- HIGHLIGHT (ACHIEVEMENTS & PHILOSOPHY) SECTIONS --- */
.highlight-section {
    background-color: var(--card-background-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.highlight-item {
    padding: 1rem;
}

.highlight-item i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.highlight-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--heading-color);
}

/* --- PROJECT DETAILS (CHALLENGES & LEARNINGS) --- */
.project-details {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.project-details h4 {
    color: var(--primary-color-start);
    margin-bottom: 0.5rem;
}

.social-links-contact a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-right: 0.25rem;
    /* Adjusted for better spacing */
    transition: color 0.3s;}

.project-image {
    aspect-ratio: 16 / 9;
    /* This forces a widescreen ratio */
    background-size: cover;
    background-position: center;}

    