/* --- Design Tokens --- */

:root {
    /* Core palette */
    --color-bg-primary: #0f172a;
    --color-bg-card: rgba(30, 41, 59, 0.6);
    --color-bg-card-hover: rgba(30, 41, 59, 0.8);
    --color-bg-surface: #1e293b;
    --color-bg-input: #0f172a;

    --color-text-primary: white;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;
    --color-text-faint: #64748b;

    --color-accent-cyan: #22d3ee;
    --color-accent-cyan-dark: #06b6d4;
    --color-accent-blue: #3b82f6;
    --color-accent-blue-dark: #2563eb;
    --color-accent-purple: #a855f7;
    --color-accent-purple-light: #c084fc;
    --color-accent-pink: #ec4899;
    --color-accent-orange: #fb923c;
    --color-accent-green: #7FB346;

    --color-border-subtle: rgba(255, 255, 255, 0.1);
    --color-border-accent: rgba(34, 211, 238, 0.2);
    --color-border-accent-hover: rgba(34, 211, 238, 0.5);
    --color-border-input: #334155;

    /* Gradients */
    --gradient-cyan-blue: linear-gradient(to right, var(--color-accent-cyan), var(--color-accent-blue));
    --gradient-cyan-blue-135: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-blue));
    --gradient-purple-pink: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-pink));

    /* Shadows */
    --shadow-glow-cyan: 0 0 20px rgba(34, 211, 238, 0.3);
    --shadow-glow-cyan-strong: 0 0 40px rgba(34, 211, 238, 0.6);
    --shadow-card-hover: 0 20px 40px rgba(34, 211, 238, 0.3);
    --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.5);

    /* Layout */
    --max-width: 1200px;
    --radius-pill: 50px;
    --radius-card: 1rem;
    --radius-rounded: 20px;
}

/* --- Reset --- */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
    position: relative;
}

/* --- AI Chat Section (Embedded) --- */

.embedded-chat {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    height: 500px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-rounded);
    box-shadow: var(--shadow-deep);
    overflow: hidden;
    position: relative;
}

.chat-header {
    padding: 15px;
    background: var(--color-bg-card-hover);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--color-border-subtle);
}

.header-title h3 {
    margin: 0;
    font-size: 18px;
    background: var(--gradient-purple-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

#messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.ai-row {
    align-self: flex-start;
}

.user-row {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 15px;
    line-height: 1.5;
    max-width: 80%;
    position: relative;
    color: var(--color-text-primary);
}

.ai-bubble {
    background: var(--color-border-input);
    color: #e2e8f0;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-bubble {
    background: var(--color-accent-blue-dark);
    color: var(--color-text-primary);
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--color-bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--color-border-accent);
    margin-right: 8px;
}

.input-area {
    padding: 20px;
    background: var(--color-bg-card-hover);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-input);
    padding: 12px 20px;
    border-radius: 25px;
    color: var(--color-text-primary);
    outline: none;
    transition: all 0.2s;
    font-size: 15px;
}

#user-input:focus {
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.1);
}

#send-btn {
    background: var(--gradient-cyan-blue-135);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#send-btn:hover {
    transform: scale(1.05);
}

#messages::-webkit-scrollbar {
    width: 6px;
}

#messages::-webkit-scrollbar-track {
    background: transparent;
}

#messages::-webkit-scrollbar-thumb {
    background: var(--color-border-input);
    border-radius: 3px;
}

/* --- Background & Animations --- */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%), radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float-shapes 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--color-accent-cyan), var(--color-accent-blue));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-pink));
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(225deg, var(--color-accent-blue), var(--color-accent-cyan));
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(315deg, var(--color-accent-pink), var(--color-accent-purple));
    top: 30%;
    right: 25%;
    animation-delay: -15s;
}

@keyframes float-shapes {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(100px, -50px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(50px, 100px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translate(-50px, 50px) rotate(270deg) scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: var(--shadow-glow-cyan);
    }

    50% {
        box-shadow: var(--shadow-glow-cyan-strong);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-cyan-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Base link style */
.nav-links a {
    position: relative;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

/* Animated underline (hidden by default) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent-cyan);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

/* Hover effects */
.nav-links a:hover {
    color: var(--color-accent-cyan);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Sections --- */

section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    flex-direction: column;
}

#home {
    min-height: 100vh;
    padding-top: 6rem;
    text-align: center;
}

.container {
    max-width: var(--max-width);
    width: 100%;
}

/* --- Hero --- */

.profile-pic {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--gradient-cyan-blue);
    padding: 4px;
    animation: pulse 3s ease-in-out infinite, glow 2s ease-in-out infinite;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    /* Wider background (200%) for animated gradient sweep */
    background: linear-gradient(to right, var(--color-accent-cyan), var(--color-accent-blue), var(--color-accent-purple), var(--color-accent-cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Two animations: gradient sweep + fade-in on load */
    animation: gradientMove 4s linear infinite, fadeInUp 1s ease 0.2s backwards;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.cta-button {
    color: var(--color-text-primary);
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button.primary {
    background: var(--gradient-cyan-blue);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--color-accent-cyan);
    color: var(--color-accent-cyan);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

.cta-button.secondary:hover {
    background: var(--color-accent-cyan);
    color: var(--color-text-primary);
}

.download-icon {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* --- About & Projects --- */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

/* Shared card styles */
.about-card, .project-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border-accent);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* --- Experience timeline --- */

.timeline {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1.5rem;
    border-left: 2px solid var(--color-border-accent);
}

.timeline-item {
    position: relative;
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border-accent);
    margin-bottom: 1.5rem;
}

/* Dot on the timeline line */
.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 7px);
    top: 1.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
}

.timeline-date {
    color: var(--color-accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-item h3 {
    margin: 0.25rem 0 0.75rem;
}

.timeline-item p,
.timeline-points {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.timeline-points {
    padding-left: 1.25rem;
}

.timeline-points li {
    margin-bottom: 0.5rem;
}

.timeline-item .tech-tags {
    margin-top: 1rem;
}

/* Project cards: two per row */
.project-card {
    flex: 0 1 calc(50% - 1rem);
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

.about-card:hover, .project-card:hover {
    background: var(--color-bg-card-hover);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-border-accent-hover);
}

.icon {
    font-size: 2.5rem;
    color: var(--color-accent-cyan);
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s;
}

.about-card:hover .icon {
    transform: rotateY(360deg);
}

/* Project card layout helpers */
.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-card-header h3 {
    margin: 0;
}

.project-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.1);
    color: var(--color-accent-cyan);
}

.project-badge.green {
    background: var(--color-accent-green);
    color: var(--color-text-primary);
    border: none;
}

.project-subtitle {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-accent-cyan);
    font-weight: bold;
}

.project-subtitle.green {
    color: var(--color-accent-green);
}

.project-description {
    margin-bottom: 1rem;
}

.project-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.project-features li {
    margin-bottom: 4px;
}

.project-focus {
    font-size: 0.8rem;
    color: var(--color-text-faint);
    margin-bottom: 1rem;
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 10px;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    width: 100%;
}

.project-links .project-link {
    margin-top: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
}

.tech-tag.purple {
    background: rgba(168, 85, 247, 0.2);
    color: var(--color-accent-purple-light);
}

.tech-tag.cyan {
    background: rgba(34, 211, 238, 0.2);
    color: var(--color-accent-cyan);
}

.tech-tag.orange {
    background: rgba(251, 146, 60, 0.2);
    color: var(--color-accent-orange);
}

.tech-tag.pink {
    background: rgba(236, 72, 153, 0.2);
    color: var(--color-accent-pink);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent-cyan);
    text-decoration: none;
    margin-top: 1rem;
}

.project-link:hover {
    color: var(--color-accent-cyan-dark);
}

/* --- Contact & Footer --- */

#contact p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

footer {
    border-top: 1px solid var(--color-border-input);
    padding: 2rem;
    text-align: center;
    color: var(--color-text-faint);
}

/* --- GitHub Calendar --- */

.github-calendar-container {
    margin-top: 3rem;
    text-align: center;
}

.calendar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    border: 1px solid var(--color-border-accent) !important;
    border-radius: var(--radius-card);
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    max-height: 260px;
    overflow: hidden;
    padding: 2rem;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    color: #8b949e;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover glow on calendar */
.calendar:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
    border-color: rgba(34, 211, 238, 0.6) !important;
    transform: none;
}

/* Hide unwanted elements injected by the GitHub Calendar library */
.calendar a, .calendar h2, .calendar .width-full h2, .calendar .float-left, .calendar .contrib-footer, .calendar .contrib-column, .calendar .text-muted {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
}

.js-calendar-graph-svg {
    width: 100%;
    position: relative;
    z-index: 1;
}

.js-calendar-graph {
    margin-top: 0 !important;
    padding: 0 !important;
}

/* GitHub contribution day colors (overriding library defaults) */
.ContributionCalendar-day[data-level="0"] {
    fill: #161b22 !important;
    background-color: #161b22 !important;
    rx: 2px;
    ry: 2px;
}

.ContributionCalendar-day[data-level="1"] {
    fill: #0e4429 !important;
    background-color: #0e4429 !important;
}

.ContributionCalendar-day[data-level="2"] {
    fill: #006d32 !important;
    background-color: #006d32 !important;
}

.ContributionCalendar-day[data-level="3"] {
    fill: #26a641 !important;
    background-color: #26a641 !important;
}

.ContributionCalendar-day[data-level="4"] {
    fill: #39d353 !important;
    background-color: #39d353 !important;
}

.calendar text {
    fill: #8b949e !important;
    font-size: 10px;
}

.calendar .border {
    border: none !important;
}

/* --- Custom Scrollbar (page-wide) --- */

::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-accent-cyan), var(--color-accent-blue));
    border-radius: 8px;
    border: 3px solid var(--color-bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-accent-cyan-dark), var(--color-accent-blue-dark));
}

/* --- Contact Section (Split Layout) --- */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-rounded);
    padding: 3rem;
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    align-items: center;
}

/* Left side (Info) */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 2rem;
    background: linear-gradient(to right, var(--color-accent-cyan), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.contact-info p {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Icon + text rows */
.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: var(--color-bg-card-hover);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.info-item strong, .info-item a {
    color: var(--color-text-primary);
    font-size: 1rem;
    text-decoration: none;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    transition: transform 0.2s;
    background: var(--color-border-input);
    border: 1px solid var(--color-border-subtle);
}

.social-btn.linkedin {
    background: #0077b5;
    border: none;
}

.social-btn.github {
    background: #333;
    border: 1px solid #555;
}

.social-btn:hover {
    transform: translateY(-3px);
}

/* Right side (Form) */
.glass-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--color-accent-cyan);
    font-weight: 600;
    margin-left: 5px;
}

.glass-form input,
.glass-form textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--color-border-subtle);
    padding: 1rem;
    border-radius: 10px;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.glass-form textarea {
    resize: vertical;
}

.glass-form input:focus,
.glass-form textarea:focus {
    outline: none;
    border-color: var(--color-accent-cyan);
    background: rgba(15, 23, 42, 0.95);
}

.submit-btn {
    background: var(--gradient-cyan-blue-135);
    color: var(--color-text-primary);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
}

/* Utility: used for AI chat intro text */
.text-center-muted {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* Status classes for contact form feedback */
.form-status-success {
    color: var(--color-accent-cyan);
}

.form-status-error {
    color: #ff4444;
}

/* --- Media Queries --- */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 2rem;
    }

    .menu-toggle {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .about-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .calendar {
        padding: 1rem;
        display: block;
        overflow-x: auto;
    }

    .js-calendar-graph-svg {
        min-width: 600px;
    }

    /* Contact: stack vertically on mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .contact-info {
        text-align: center;
        align-items: center;
    }

    .contact-info p {
        text-align: center;
    }
}
