/* ==========================================================================
   DESIGN TOKENS & SYSTEM
   ========================================================================== */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(15, 18, 36, 0.65);
    --bg-card-hover: rgba(22, 27, 54, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.4);
    
    --primary: #00f2fe;     /* Electric Cyan */
    --secondary: #4facfe;   /* Bright Blue */
    --accent: #9b51e0;      /* Electric Purple */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(180deg, #070913 0%, #0d1127 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.25);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: var(--gradient-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glassmorphism Helper */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-underline {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0 auto 2.5rem auto;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: -1.5rem auto 3rem auto;
    font-size: 1.1rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
    transform: scale(1.03);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 19, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.2rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.resume-download {
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.9rem !important;
    border-radius: 50px;
    background: rgba(0, 242, 254, 0.05);
    color: var(--primary) !important;
    font-weight: 600;
}
.resume-download:hover {
    background: var(--gradient-primary) !important;
    color: #000 !important;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}
.resume-download::after {
    display: none !important; /* Remove line under active navigation link */
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge-container {
    margin-bottom: 1.5rem;
}

.hero-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-subtitle .gradient-text {
    font-weight: 700;
}

.cursor {
    animation: blink 0.8s infinite;
    color: var(--primary);
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* Tech Card Animation & Style */
.hero-graphic {
    display: flex;
    justify-content: center;
    position: relative;
}

.tech-card {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/3;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.tech-title {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.tech-body pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #a9b2c3;
    overflow-x: auto;
}

.token.keyword { color: #c792ea; }
.token.comment { color: #5c6370; font-style: italic; }
.token.string { color: #c3e88d; }
.token.number { color: #f78c6c; }
.token.builtin { color: #82aaff; }

.card-pulse-node {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: beacon 2s infinite;
}

.glowing-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.35;
}

.circle-1 {
    top: -10%;
    right: -10%;
    width: 180px;
    height: 180px;
    background: var(--primary);
}

.circle-2 {
    bottom: -15%;
    left: -15%;
    width: 220px;
    height: 220px;
    background: var(--accent);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background: rgba(7, 9, 19, 0.5);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-info, .education-volunteer {
    padding: 3rem;
}

.about-info h3, .education-volunteer h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-info p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.about-details-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    font-size: 1rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
    width: 100px;
}

.detail-label i {
    color: var(--primary);
    margin-right: 0.5rem;
    width: 16px;
}

.detail-value {
    color: var(--text-secondary);
}

.detail-value a:hover {
    color: var(--primary);
}

/* Timeline elements */
.timeline-compact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}

.timeline-item-compact {
    position: relative;
}

.timeline-icon-compact {
    position: absolute;
    left: -2.1rem;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 2;
}

.timeline-content-compact h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.timeline-date-compact {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 242, 254, 0.08);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.timeline-org-compact {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.timeline-desc-compact {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.skill-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

.skill-tag-chip {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.skill-card:hover .skill-tag-chip {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.skill-card:nth-child(1) .skill-tag-chip:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
    background: rgba(0, 242, 254, 0.04);
    color: var(--primary);
}

.skill-card:nth-child(2) .skill-tag-chip:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.15);
    background: rgba(79, 172, 254, 0.04);
    color: var(--secondary);
}

.skill-card:nth-child(3) .skill-tag-chip:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(155, 81, 224, 0.15);
    background: rgba(155, 81, 224, 0.04);
    color: var(--accent);
}

.skill-card:nth-child(2) .skill-card-icon {
    background: rgba(79, 172, 254, 0.08);
    color: var(--secondary);
}
.skill-card:nth-child(3) .skill-card-icon {
    background: rgba(155, 81, 224, 0.08);
    color: var(--accent);
}

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */
.experience-section {
    background: rgba(7, 9, 19, 0.4);
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.timeline-info {
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 242, 254, 0.08);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    display: inline-block;
}

.timeline-card {
    padding: 2.5rem;
}

.timeline-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.company-logo-holder {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.role-details h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.role-details h4 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.location-badge {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.location-badge i {
    margin-right: 0.3rem;
}

.experience-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 1.2rem;
}

.experience-bullets li {
    list-style-type: square;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.experience-bullets li strong {
    color: var(--text-primary);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--primary);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.project-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

.project-tech-pills span {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.project-btn-details {
    background: none;
    border: none;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.project-btn-details:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Shift color schemes for specific projects */
.project-card:nth-child(even) .project-tag {
    background: rgba(155, 81, 224, 0.08);
    border-color: rgba(155, 81, 224, 0.2);
    color: var(--accent);
}
.project-card:nth-child(even) .project-icon {
    color: var(--accent);
}
.project-card:nth-child(even) .project-btn-details {
    color: var(--accent);
}
.project-card:nth-child(even) .project-btn-details:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background: rgba(7, 9, 19, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
}

.contact-details, .contact-form-container {
    padding: 3rem;
}

.contact-details h3, .contact-form-container h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.04);
}

.contact-item-link:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 242, 254, 0.2);
}

.contact-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item-link h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.contact-item-link p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    background: #05060d;
    padding: 2.5rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-container p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.footer-socials a:hover {
    color: var(--primary);
}

/* ==========================================================================
   MODAL WINDOWS (DYNAMIC DETAILS)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(4, 5, 11, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 100%;
    max-width: 750px;
    max-height: 85vh;
    padding: 3rem;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header-content {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1.5rem;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal-header-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
}

.modal-body-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.modal-body-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-body-content ul {
    padding-left: 1.2rem;
}

.modal-body-content li {
    list-style-type: square;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   RAG DIAGNOSTICS CHATBOT (MODAL SPECIFIC)
   ========================================================================== */
.rag-chat-container {
    display: none; /* Shown dynamically in script.js */
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.01);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.chatbot-hint {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 1rem !important;
}

.chat-window {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(4, 5, 11, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.chat-log {
    height: 180px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 85%;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.chat-message.agent {
    align-self: flex-start;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.1);
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    align-self: flex-end;
    background: rgba(155, 81, 224, 0.1);
    border: 1px solid rgba(155, 81, 224, 0.2);
    border-bottom-right-radius: 2px;
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.chat-message.user .message-sender {
    color: var(--accent);
}

.message-text {
    line-height: 1.4;
    color: var(--text-primary);
}

.chat-input-area {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.chat-input-area input {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.chat-input-area input:focus {
    outline: none;
}

.chat-input-area button {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.chat-input-area button:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   TOAST NOTIFICATION & ANIMATIONS
   ========================================================================== */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #0d1127;
    border: 1px solid var(--primary);
    color: var(--text-primary);
    text-align: center;
    border-radius: 8px;
    padding: 1rem;
    position: fixed;
    z-index: 1001;
    bottom: 30px;
    right: 30px;
    box-shadow: var(--shadow-glow);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Keyframes Animations */
@keyframes blink {
    50% { opacity: 0; }
}

@keyframes beacon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.4; }
    100% { transform: scale(2); opacity: 0; }
}

/* ==========================================================================
   AUTHENTICATION UI (NETLIFY IDENTITY)
   ========================================================================== */
.auth-status-container {
    display: inline-flex;
    align-items: center;
    margin-left: 0.8rem;
}

.auth-btn {
    background: var(--gradient-primary);
    color: #000;
    border: none;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-btn:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

.auth-user-info {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

.auth-user-info strong {
    color: var(--text-primary);
}

.auth-logout-link {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    background: none;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
}

.auth-logout-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-info, .education-volunteer, .contact-details, .contact-form-container {
        padding: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 4rem 1.5rem;
    }

    .nav-links {
        display: none; /* Triggers mobile menu drawer */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(7, 9, 19, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
        color: var(--text-primary);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline-dot {
        left: 11px;
    }

    .timeline-line {
        left: 20px;
    }
    
    .timeline-card, .project-card, .modal-content {
        padding: 1.5rem;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header-content h2 {
        font-size: 1.8rem;
    }

    .auth-status-container {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    .auth-user-info {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.6rem 1.2rem;
        border-radius: 12px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 3rem 1.2rem;
    }

    .nav-container {
        padding: 1rem 1.2rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-container {
        padding: 1rem;
        gap: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .tech-card {
        padding: 1rem;
    }

    .tech-header {
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .tech-body pre {
        font-size: 0.78rem;
    }

    .about-info, .education-volunteer, .contact-details, .contact-form-container {
        padding: 1.2rem;
    }

    .about-info h3, .education-volunteer h3, .contact-details h3, .contact-form-container h3 {
        font-size: 1.5rem;
    }

    .detail-item {
        font-size: 0.9rem;
    }

    .detail-label {
        width: 80px;
    }

    .skill-card {
        padding: 1.8rem 1.2rem;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-card, .project-card {
        padding: 1.2rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .company-logo-holder {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .contact-item-link {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .contact-icon-box {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .contact-item-link p {
        font-size: 0.92rem;
    }

    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 1.2rem;
        max-height: 95vh;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.6rem;
    }

    .modal-header-content h2 {
        font-size: 1.4rem;
    }

    .modal-body-content h3 {
        font-size: 1.1rem;
        margin-top: 1.2rem;
    }

    .modal-body-content p, .modal-body-content li {
        font-size: 0.9rem;
    }

    .rag-chat-container {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .chat-log {
        height: 150px;
        padding: 0.8rem;
    }

    .chat-message {
        max-width: 90%;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .chat-input-area input {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .chat-input-area button {
        padding: 0 1rem;
        font-size: 0.85rem;
    }

    .toast {
        min-width: 200px;
        font-size: 0.9rem;
        padding: 0.8rem;
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}
