/* --- Global Variables & Resets --- */
:root {
    /* Theme Colors */
    --primary-color: #FFC107; /* Bright Yellow */
    --primary-text-on-dark: #121212; /* Text for on-yellow buttons */
    --link-hover-color: #ffd040; /* Lighter yellow for hover */

    /* Dark Theme */
    --dark-bg: #121212;
    --dark-card-bg: #1E1E1E;
    --dark-text-color: #E0E0E0;
    --dark-secondary-text: #a0a0a0;
    --dark-border-color: #2D2D2D;
    --dark-heading-color: #FFFFFF;
    --dark-shadow-color: rgba(0, 0, 0, 0.5);

    /* Light Theme */
    --light-bg: #F5F8FA;
    --light-card-bg: #FFFFFF;
    --light-text-color: #2c3e50;
    --light-secondary-text: #7f8c8d;
    --light-border-color: #EAEAEA;
    --light-heading-color: #1c2833;
    --light-shadow-color: rgba(0, 0, 0, 0.08);

    /* Other Variables */
    --font-family: 'Inter', sans-serif;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --transition-speed: 0.3s ease-in-out;
}

/* Theme-specific variables */
body.light-theme {
    --page-bg: var(--light-bg);
    --card-bg: var(--light-card-bg);
    --text-color: var(--light-text-color);
    --secondary-text: var(--light-secondary-text);
    --border-color: var(--light-border-color);
    --heading-color: var(--light-heading-color);
    --box-shadow: 0 4px 15px var(--light-shadow-color);
    --header-bg: rgba(255, 255, 255, 0.85);
    --footer-bg: var(--light-card-bg);
    --primary-brand-color: var(--primary-color);
    --accent-highlight-color: var(--primary-color);
}

body.dark-theme {
    --page-bg: var(--dark-bg);
    --card-bg: var(--dark-card-bg);
    --text-color: var(--dark-text-color);
    --secondary-text: var(--dark-secondary-text);
    --border-color: var(--dark-border-color);
    --heading-color: var(--dark-heading-color);
    --box-shadow: 0 4px 20px var(--dark-shadow-color);
    --header-bg: rgba(18, 18, 18, 0.85);
    --footer-bg: var(--dark-card-bg);
    --primary-brand-color: var(--primary-color);
    --accent-highlight-color: var(--primary-color);
}



/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-buttons a {
    margin: 0 10px;
    display: inline-block;
}


body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--page-bg);
    scroll-behavior: smooth;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

a {
    text-decoration: none;
    color: var(--primary-brand-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--link-hover-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--heading-color);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.9rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-brand-color);
    color: var(--primary-text-on-dark);
    border: 2px solid var(--primary-brand-color);
}

.primary-btn:hover {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
    transform: translateY(-2px);
    color: var(--primary-text-on-dark);
}

.project-btn, .cert-btn, .blog-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
    border-radius: var(--border-radius-sm);
}

.project-btn:hover, .cert-btn:hover, .blog-btn:hover {
    background-color: var(--primary-brand-color);
    border-color: var(--primary-brand-color);
    color: var(--primary-text-on-dark);
    transform: translateY(-2px);
}

.large-btn {
    font-size: 1.2rem;
    padding: 15px 45px;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar .logo {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.navbar .logo:hover {
    color: var(--primary-brand-color);
}

.nav-links ul {
    display: flex;
    gap: 30px;
}

.nav-links ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed);
    padding-bottom: 5px;
    position: relative;
    font-size: 1.05rem;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-brand-color);
    transition: width var(--transition-speed);
    border-radius: 2px;
}

.nav-links ul li a:hover::after,
.nav-links ul li a.active::after {
    width: 100%;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: var(--primary-brand-color);
}

.menu-icon, .close-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 20px;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.theme-toggle:hover {
    color: var(--primary-brand-color);
    transform: scale(1.1);
}

/* --- Sections --- */
section {
    padding: 90px 0;
    text-align: center;
    overflow: hidden;
    background-color: var(--page-bg);
}

.section-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    color: var(--heading-color);
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--primary-brand-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- Hero Section --- */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1800x1000/343a40/ffffff?text=Developer+Background') no-repeat center center/cover;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.hero-content { text-align: center; padding: 20px; max-width: 900px; }

.profile-pic-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 6px solid var(--primary-brand-color);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.5);
    background-color: var(--card-bg);
}

.profile-pic { width: 100%; height: 100%; object-fit: cover; }

#home h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: -1px;
}

.tagline {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    height: 2.8rem;
    color: #ffffff;
}

.tagline .cursor {
    display: inline-block;
    background-color: var(--accent-highlight-color);
    width: 4px;
    height: 2.2rem;
    margin-left: 8px;
    vertical-align: middle;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { background-color: transparent }
    50% { background-color: var(--accent-highlight-color); }
}

.intro-text {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.95);
}

/* --- Cards (Project, Certification, etc.) --- */
.projects-grid, .certifications-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.project-card, .certification-card, .blog-post-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.project-card:hover, .certification-card:hover, .blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--dark-shadow-color);
}

.project-card h3, .certification-card h3, .blog-post-card h3 {
    color: var(--primary-brand-color);
    margin-bottom: 12px;
    font-size: 1.8rem;
}

.project-card .tech-stack {
    font-style: italic;
    color: var(--secondary-text);
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 500;
}

.project-card p, .certification-card p, .blog-post-card p {
    font-size: 1rem;
    color: var(--text-color);
    flex-grow: 1;
    margin-bottom: 25px;
}

/* Individual Card specific styles */
.certification-card p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.certification-card p:last-of-type { margin-bottom: 25px; }

.blog-post-card .blog-meta {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 15px;
}
.blog-post-card .blog-meta i {
    margin-right: 5px;
    color: var(--accent-highlight-color);
}

/* --- Skills --- */
/* --- New Skills Section: Tabbed Interface --- */
.skills-container-tabs {
    display: flex;
    gap: 40px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    min-height: 300px; /* Adjust as needed */
}

/* Tab Navigation Styling */
.skills-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
}

.tab-btn i {
    color: var(--primary-brand-color);
    font-size: 1.2rem;
    width: 25px; /* Ensures alignment */
    text-align: center;
}

.tab-btn:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Use a subtle hover color */
    color: var(--heading-color);
}

.tab-btn.active {
    background-color: var(--primary-brand-color);
    color: #fff;
    font-weight: 600;
}

.tab-btn.active i {
    color: #fff;
}

/* Skill Content Panels */
.skills-content {
    flex-grow: 1;
}

.skill-panel {
    display: none; /* Hide all panels by default */
    animation: fadeIn 0.5s ease-in-out;
}

.skill-panel.active {
    display: block; /* Show only the active one */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.skill-panel ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.skill-panel ul li {
    background-color: rgba(0,0,0,0.05); /* Subtle background for skill pills */
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.skill-panel ul li:hover {
    background: var(--primary-brand-color);
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--accent-highlight-color);
}


/* Responsive adjustment */
@media (max-width: 768px) {
    .skills-container-tabs {
        flex-direction: column;
        gap: 20px;
    }
    .skills-tabs-nav {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
        overflow-x: auto; /* Allow horizontal scrolling on small screens */
    }
    .tab-btn span {
        white-space: nowrap; /* Prevent button text from wrapping */
    }
}

.tech-stack-button-container {
    text-align: center;
    margin-top: 40px;
}

.tech-stack-btn {
    display: inline-block;
    background: var(--primary-brand-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.tech-stack-btn:hover {
    background: var(--accent-highlight-color);
    transform: translateY(-3px);
}


/*Tech Stacks*/
.tech-stack-section {
    padding: 50px 20px;
    background-color: var(--card-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 40px;
}

.stack-category {
    margin-bottom: 40px;
}

.stack-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-brand-color);
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stack-item {
    text-align: center;
    width: 120px;
}

.stack-item img {
    width: 80px;
    height: 80px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stack-item img:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    background: var(--primary-brand-color);
}

.stack-item p {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--secondary-text);
    font-weight: 500;
}

/*Project Section*/
.featured-cert-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-brand-color);
    font-weight: bold;
    text-decoration: none;
}

.featured-cert-card a:hover {
    text-decoration: underline;
}



/* --- Experience (Timeline) --- */
.timeline {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
    text-align: left;
    padding-top: 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-brand-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    opacity: 0.3;
}

.timeline-item { padding: 10px 0; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; padding-right: 40px; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; padding-left: 40px; }

.timeline-dot {
    height: 22px;
    width: 22px;
    background-color: var(--primary-brand-color);
    border: 3px solid var(--page-bg);
    position: absolute;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -11px; }
.timeline-item:nth-child(even) .timeline-dot { left: -11px; }

.timeline-content {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--dark-shadow-color);
}
.timeline-content h3 { font-size: 1.5rem; margin-bottom: 8px; color: var(--heading-color);}
.timeline-content h4 { color: var(--primary-brand-color); font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; }
.timeline-content .duration { font-size: 0.95rem; color: var(--secondary-text); display: block; margin-bottom: 12px; }
.timeline-content .duration i { margin-right: 5px; color: var(--accent-highlight-color); }
.timeline-content p { font-size: 1rem; color: var(--text-color); margin-bottom: 0; }

/* --- Other sections (About, Achievements, Contact, Footer, etc.) --- */
/* About Me */
.about-content { display: flex; flex-wrap: wrap; align-items: center; gap: 50px; text-align: left; max-width: 1000px; margin: 0 auto; }
.about-text { flex: 2; min-width: 300px; color: var(--text-color); }
.about-text p strong { color: var(--primary-brand-color); }
.about-image { flex: 1; min-width: 280px; text-align: center; }
.about-image img {
    max-width: 100%;
    height: auto;
    max-height: 800px;     /* Controls the maximum height */
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    border: 0px solid var(--border-color);
    object-fit: contain;   /* Maintains aspect ratio within bounds */
    display: block;
    margin: 0 auto;        /* Centers the image horizontally */
}

/* ---------------------------------------------------
   Education Section Styling (Glassmorphism Dark Theme)
----------------------------------------------------- */

/* --- Additions for Experience Timeline --- */

/* Initially hide the extra timeline items */
.timeline-item-hidden {
    display: none;
}

/* Container for the "Show More" button */
.timeline-button-container {
    text-align: center;
    margin-top: 50px;
}

/* The grid container for the cards */
.education-grid {
    display: grid;
    /* We've set a max-width for the columns and will center them */
    grid-template-columns: repeat(auto-fit, minmax(350px, 380px));
    justify-content: center; /* This is the key to centering the cards */
    gap: 2rem;
    margin-top: 2rem;
}

/* The main glass card style */
.glass-card {
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.05); /* Semi-transparent background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari */
    
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Using your theme's gold color for a top border accent */
    border-top-color: rgba(255, 215, 0, 0.6);

    padding: 2rem;
    color: #f0f0f0; /* Light text color for dark background */
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* Hover effect to make the cards 'glow' and lift */
.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
}

/* Header section of the card (icon + title) */
.card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 2.5rem;
    color: #ffd700; /* Your theme's gold/yellow color */
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #ffffff;
}

/* Body section of the card (details) */
.card-body p {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #cccccc; /* A slightly dimmer white for readability */
}

/* Make key info stand out */
.card-body p strong {
    color: #ffffff;
    font-weight: 600;
}

/* Styling for the duration text */
.education-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0a0; /* Dimmer color for metadata */
    font-style: italic;
    font-size: 0.9rem;
}

.education-duration i {
    color: #ffd700; /* Match the accent color */
}


/* Achievements */
.achievements-list { text-align: left; max-width: 900px; margin: 0 auto; }
.achievements-list li { background-color: var(--card-bg); padding: 22px; margin-bottom: 18px; border-radius: var(--border-radius-md); box-shadow: var(--box-shadow); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 20px; font-size: 1.1rem; color: var(--text-color); transition: transform var(--transition-speed), box-shadow var(--transition-speed); }
.achievements-list li:hover { transform: translateX(5px); box-shadow: 0 6px 15px var(--dark-shadow-color); }
.achievements-list li i { font-size: 1.8rem; color: var(--accent-highlight-color); min-width: 30px; text-align: center; }

/* Photo Gallery & Lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--border-radius-md); box-shadow: var(--box-shadow); border: 1px solid var(--border-color); cursor: pointer; transition: transform var(--transition-speed), box-shadow var(--transition-speed); }
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 8px 20px var(--dark-shadow-color); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); color: #ffffff; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity var(--transition-speed); font-weight: 600; font-size: 1.2rem; gap: 10px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; color: var(--accent-highlight-color); }
.lightbox { display: none; position: fixed; z-index: 2000; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 90vh; border-radius: var(--border-radius-md); }
.close-btn { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.close-btn:hover, .close-btn:focus { color: #bbb; text-decoration: none; cursor: pointer; }

/* Resume Section */
#resume { background-color: var(--card-bg); }
#resume .section-title, #resume .lead { color: var(--heading-color); }
#resume .section-title::after { background-color: var(--primary-brand-color); }
#resume .lead { font-size: 1.4rem; margin-bottom: 40px; opacity: 0.95; color: var(--secondary-text); }
#resume .resume-note { margin-top: 25px; font-size: 0.95rem; opacity: 0.9; }

/* Contact Section */
.contact-content { display: flex; flex-wrap: wrap; justify-content: center; gap: 60px; text-align: left; max-width: 1000px; margin: 0 auto; }
.contact-info, .contact-form { flex: 1; min-width: 320px; background-color: var(--card-bg); padding: 35px; border-radius: var(--border-radius-md); box-shadow: var(--box-shadow); border: 1px solid var(--border-color); }
.contact-info h3, .contact-form h3 { color: var(--heading-color); margin-bottom: 30px; text-align: center; font-size: 1.8rem; }
.contact-info p { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; font-size: 1.1rem; color: var(--text-color); }
.contact-info p i { color: var(--accent-highlight-color); font-size: 1.4rem; min-width: 25px; text-align: center; }
.contact-info p a { color: var(--primary-brand-color); font-weight: 500; }
.contact-form .form-group { margin-bottom: 22px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); font-size: 1rem; background-color: var(--page-bg); color: var(--text-color); transition: all var(--transition-speed); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-brand-color); box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25); outline: none; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .primary-btn { width: 100%; padding: 14px; font-size: 1.1rem; }
.form-note { margin-top: 25px; font-size: 0.85rem; color: var(--secondary-text); text-align: center; }

/* Footer */
footer { background-color: var(--footer-bg); color: var(--secondary-text); text-align: center; padding: 35px 0; font-size: 0.9rem; border-top: 1px solid var(--border-color); }
footer p { margin-bottom: 15px; color: var(--text-color); }
footer .social-links-footer { margin-top: 15px; }
footer .social-links-footer a { color: var(--text-color); font-size: 1.6rem; margin: 0 12px; transition: color var(--transition-speed), transform var(--transition-speed); }
footer .social-links-footer a:hover { color: var(--primary-brand-color); transform: translateY(-3px); }

/* --- Media Queries --- */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; } h2 { font-size: 2.2rem; } h3 { font-size: 1.7rem; }
    .section-title { font-size: 2.4rem; }
    .hero-content { padding: 15px; }
    .profile-pic-container { width: 180px; height: 180px; }
    .tagline { font-size: 1.9rem; height: 2.3rem; }
    .intro-text { font-size: 1.1rem; }
    .about-content { flex-direction: column; text-align: center; gap: 40px; }
    .about-text, .about-image { min-width: unset; width: 100%; }
}

@media (max-width: 768px) {
    body.no-scroll { overflow: hidden; }
    .navbar { padding: 1rem 20px; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 75%; height: 100%; background-color: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: -5px 0 15px var(--dark-shadow-color); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: right var(--transition-speed); z-index: 1001; border-left: 1px solid var(--border-color); }
    .nav-links.active { right: 0; }
    .nav-links ul { flex-direction: column; text-align: center; gap: 35px; }
    .nav-links ul li a { font-size: 1.4rem; color: var(--heading-color); }
    .menu-icon { display: block; z-index: 1002; }
    .theme-toggle { margin-left: auto; margin-right: 20px; font-size: 1.4rem;}
    .close-icon { display: block; position: absolute; top: 25px; right: 25px; font-size: 2.2rem; color: var(--primary-brand-color); }
    h1 { font-size: 3rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; }
    .section-title { font-size: 2rem; margin-bottom: 40px; }
    .section-title::after { width: 70px; bottom: -10px; }
    #home { padding: 80px 0; }
    .profile-pic-container { width: 160px; height: 160px; }
    .tagline { font-size: 1.6rem; height: 2rem; }
    .tagline .cursor { height: 1.6rem; }
    .intro-text { font-size: 1rem; margin-bottom: 30px; }
    .skills-grid, .projects-grid, .certifications-grid, .blog-grid, .gallery-grid { grid-template-columns: 1fr; }
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 55px; padding-right: 15px; text-align: left; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; padding-right: 15px; text-align: left;}
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { right: unset; left: 9px; }
    .contact-content { flex-direction: column; gap: 40px; }
    .contact-info, .contact-form { min-width: unset; width: 100%; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    .tagline { font-size: 1.3rem; height: 1.8rem; }
    .tagline .cursor { height: 1.3rem; }
    .profile-pic-container { width: 130px; height: 130px; }
    .section-title { font-size: 1.8rem; }
    section { padding: 60px 0; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .large-btn { font-size: 1rem; padding: 12px 30px; }
    .nav-links { width: 100%; }
    .timeline-content h3 { font-size: 1.3rem; }
    .timeline-content h4 { font-size: 1rem; }
    .timeline-content p { font-size: 0.95rem; }
    .achievements-list li { font-size: 1rem; flex-direction: column; text-align: center; gap: 10px; }
    .achievements-list li i { font-size: 1.6rem; }
}

/* --- Page-specific Hero Styles & Utilities --- */
.page-hero {
    padding-top: 100px;
    padding-bottom: 60px;
    background-color: var(--page-bg);
    text-align: center;
}
.page-hero .lead-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--secondary-text);
}
.mt-40 { margin-top: 40px !important; }

/* The main glass card style */
.glass-card {
    background-color: var(--card-bg); /* From theme */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border-radius: 15px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-brand-color);

    padding: 2rem;
    color: var(--text-color); /* From theme */
    transition: transform var(--transition-speed), background-color var(--transition-speed), border-color var(--transition-speed);
}

/* Hover effect */
.glass-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.05); /* Subtle highlight */
    border-color: var(--primary-brand-color);
}

/* Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--primary-brand-color); /* consistent gold */
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--heading-color);
}

/* Body text */
.card-body p {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* Emphasis */
.card-body p strong {
    color: var(--heading-color);
    font-weight: 600;
}

/* Duration */
.education-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-text);
    font-style: italic;
    font-size: 0.9rem;
}

.education-duration i {
    color: var(--primary-brand-color);
}

@media (prefers-color-scheme: dark) {
    .glass-card {
        background: var(--card-bg-dark);
        color: var(--text-dark);
    }
}

@media (prefers-color-scheme: light) {
    .glass-card {
        background: var(--card-bg-light);
        color: var(--text-light);
    }
}

/* In style.css */

/* --- Starfield Background --- */

/* 1. Make the hero section a positioning container for the stars */
#home {
    position: relative; /* This is VERY important! */
    /* Your existing #home styles remain the same */
}

/* 2. Define the star animation */
@keyframes star-fall {
  0% {
    transform: translateY(-20vh) translateX(var(--start-x));
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) translateX(calc(var(--start-x) + 50px));
    opacity: 1;
  }
}

/* 3. Style the container that holds the stars */
#starfield-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Puts stars behind your text content */
}

/* 4. Style each individual star */
.star {
  position: absolute;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0; /* Hidden until animation starts */
  animation: star-fall infinite linear;
}

/* 5. Ensure your hero content appears ON TOP of the stars */
.hero-content {
    position: relative; /* This makes z-index work */
    z-index: 1; /* Higher z-index than the stars */
}