:root {
    --bg-color: #0a0f1c;
    --bg-secondary: #111a2e;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent: #64ffda; /* Cyan */
    --accent-glow: rgba(100, 255, 218, 0.2);
    --secondary-accent: #bd34fe; /* Electric Purple */
    --glass-bg: rgba(17, 26, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

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

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

.highlight {
    color: var(--accent);
}

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

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 15, 28, 0.85);
    border-bottom: 1px solid var(--glass-border);
}

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

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    text-align: left;
}

.hero-content {
    max-width: 1000px;
}

.subtitle {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 6rem; /* Bigger for impact */
    line-height: 0.9;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-right: 1rem;
}

.btn-primary:hover {
    background: var(--accent-glow);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* General Section */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.section-header h2 {
    font-size: 2rem;
    margin-right: 1rem;
    white-space: nowrap;
}

.section-header::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background: var(--glass-border);
    margin-left: 20px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 2.5fr 1.5fr; /* Image - Text - Skills */
    gap: 2.5rem;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    filter: grayscale(20%) contrast(1.1); /* Stylized look */
    border: 2px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: 0 15px 30px -10px rgba(2, 12, 27, 0.7);
}

.about-image:hover img {
    filter: grayscale(0%) contrast(1);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.about-image::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 12px;
    z-index: -1;
    transition: var(--transition);
}

.about-image:hover::after {
    top: 8px;
    left: 8px;
}


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

.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
    transition: var(--transition);
    flex: 1;
}

.stat-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

.stat-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h4 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags span {
    background: var(--glass-bg);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent);
    border: 1px solid var(--accent-glow);
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--glass-border);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: 5px;
    width: 1rem;
    height: 1rem;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.card {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border-color: var(--accent);
}

.timeline-content h3 {
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
}

.timeline-content h4 {
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.role-tech {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-content ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--glass-bg);
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--accent);
}

.project-card h3 {
    margin-bottom: 0.8rem;
}

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

/* Locked / NDA Projects */
.project-card.locked {
    border-color: rgba(255, 100, 100, 0.2); /* Subtle reddish/warning hint */
    position: relative;
    overflow: hidden;
}

.project-card.locked:hover {
    border-color: rgba(255, 100, 100, 0.5);
    transform: translateY(-2px); /* Less movement */
    box-shadow: none;
    cursor: not-allowed;
}

.nda-badge {
    position: absolute;
    top: 1rem;
    right: 3rem; /* Left of the link icon */
    font-size: 0.7rem;
    color: rgba(255, 100, 100, 0.8);
    border: 1px solid rgba(255, 100, 100, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact */
.center-text {
    text-align: center;
}

.center-text h2 {
    margin-bottom: 1.5rem;
}

.center-text p {
    max-width: 500px;
    margin: 0 auto 3rem auto;
    color: var(--text-secondary);
}

.big-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.socials {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.socials a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

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

/* Event Horizon (Gravity Sim) */
#event-horizon {
    position: relative;
    padding-bottom: 0;
    margin-bottom: 0;
    overflow: hidden;
}

#event-horizon p {
    max-width: 1000px;
    margin-bottom: 2rem;
}

.canvas-container {
    width: 100vw;
    margin-left: max(-50vw, calc(-50vw + 50%)); /* Break out of container */
    height: 60vh;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    border-top: 1px solid var(--accent-glow);
    border-bottom: 1px solid var(--accent-glow);
    position: relative;
    cursor: crosshair;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8); /* Depth */
}

#gravity-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-heading);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards 0.3s;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Eye-Catching Stats */
strong {
    color: var(--accent);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    
    .navbar { padding: 1.5rem; }
    
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 101;
    }
    
    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-primary);
    }
    
    .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-links {
        position: fixed;
        left: -100%;
        top: 0; /* Cover entire screen */
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        height: 100%; /* Full screen height */
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 8rem; /* Space for X icon */
        gap: 3rem;
        z-index: 100;
    }

    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
    
    .about-grid { grid-template-columns: 1fr; }
    
    .timeline { padding-left: 1rem; border: none; }
    .timeline-item::before { display: none; }
    
    .container { padding: 4rem 1.5rem; }
}
