:root {
    /* --- Color Palette (Dark Charcoal + Teal) --- */
    --bg-dark: #1e1e1e;
    /* Deep Charcoal */
    --card-bg: #2d2d2d;
    /* Lighter Charcoal for cards */
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --accent-primary: #00d2d3;
    /* Bright Teal */
    --accent-secondary: #ff9f43;
    /* Keep orange for highlights if needed */

    /* Liquid Glass / UI Elements */
    --glass-bg: rgba(30, 30, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --grid-gap: 2rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor everywhere */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0.5) 1px, transparent 1px);
    background-size: 50px 50px;
}

a {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: inline-block;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 20000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.1s;
    pointer-events: none;
    /* Critical for clicking through */
}

.cursor-follower {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

body.hovering .custom-cursor {
    width: 60px;
    height: 60px;
    background-color: rgba(204, 255, 0, 0.1);
    border-color: transparent;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    mix-blend-mode: difference;
}

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

.nav-links {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a {
    margin: 0 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

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

.theme-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
    padding: 0 5%;
    overflow: hidden;
}

.code-greeting {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    color: #ff9f43;
    /* Typewriter orange */
    margin-bottom: 0.5rem;
    font-weight: bold;
    letter-spacing: -0.02em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    /* Responsive but Big */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-light);
    /* White */
}

.highlight {
    color: var(--accent-primary);
    /* Teal */
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-content {
    z-index: 10;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.greeting {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
    margin-left: 5px;
}

.headline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3vw, 5rem);
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #fff;
    /* Reset from transparent */
    background: none;
    /* Reset */
    -webkit-text-fill-color: initial;
}

.highlight {
    color: #ff9f43;
    /* Orange match */
}

/* Cleanup: Removing any potentially leftover broken styles from previous multi-replace */
.headline .outline-text {
    /* Removed or reset for this new style */
    display: none;
}



.subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin: 2rem 0;
    opacity: 0.8;
    max-width: 600px;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.btn {
    padding: 1.2rem 3rem;
    border-radius: 0;
    /* Square aesthetic */
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn.primary {
    background: var(--accent-primary);
    color: #000;
    border: none;
}

.btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #fff;
    z-index: -1;
    transition: width 0.4s;
}

.btn.primary:hover::before {
    width: 100%;
}

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

.btn.secondary:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.social-links {
    position: absolute;
    bottom: 3rem;
    right: 5%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: #666;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--accent-tertiary);
    transform: translateX(-5px);
}

.hero-bg-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(100, 0, 255, 0.15), rgba(204, 255, 0, 0.05), transparent 70%);
    filter: blur(80px);
    z-index: 1;
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    from {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Sections */
section {
    padding: 8rem 5%;
    position: relative;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    /* Reduced size */
    margin-bottom: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
}

/* Bento Grid About Section */
.about-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-box {
    background: #08080a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.bento-box:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* 1. Intro Box */
.intro-box {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.greeting-text {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.bio-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #ccc;
}

.bio-text strong {
    color: #fff;
    font-weight: 600;
}

/* 2. Profile Box */
.profile-box {
    grid-column: span 5;
    background: #050508;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 300px;
}

.profile-container {
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 2;
}

.profile-container .placeholder-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url('images/myself.jpg') center/cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    filter: none;
    /* Override previous filter */
}

.profile-container:hover .placeholder-img {
    transform: scale(1.05);
}

/* Shooting stars background effect specifically for profile box */
.shooting-star {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1);
    animation: animate 3s linear infinite;
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes animate {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

.shooting-star:nth-child(1) {
    top: 0;
    right: 0;
    animation-delay: 0s;
    animation-duration: 2s;
}

.shooting-star:nth-child(2) {
    top: 20%;
    left: 20%;
    animation-delay: 1.4s;
    animation-duration: 2.5s;
}


/* 3. Bottom Left Group (Stats + Quote) */
.bento-group-bottom-left {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 1.5rem;
}

.stat-box {
    flex: 1;
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.2;
}

.quote-box {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #0a0a0a, #111);
}

.quote-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

/* 4. Skills Box */
.skills-box {
    grid-column: span 7;
    background: linear-gradient(135deg, #2a0845 0%, #050510 60%);
    /* Purple gradient */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.skills-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 2rem;
}

.skills-icons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s;
    /* Removed background and border */
    background: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
    /* 3D shadow effect */
}

.skill-icon:hover {
    transform: translateY(-10px) scale(1.1);
    background: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .intro-box,
    .profile-box,
    .bento-group-bottom-left,
    .skills-box {
        grid-column: span 1;
    }

    .profile-box {
        order: -1;
        /* Image first on mobile? or Keep standard flow */
    }
}

/* Projects - 3 Item Showcase */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-image {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.placeholder-project {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s;
    filter: grayscale(80%);
}

.project-card:hover .placeholder-project {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.p1 {
    background-image: url('https://images.unsplash.com/photo-1626785774573-4b799314346d?q=80&w=1000');
}

.p2 {
    background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1000');
}

.card-info {
    padding: 2rem;
    background: linear-gradient(to top, #0a0a0a, rgba(10, 10, 10, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.card-info p {
    color: #888;
    font-size: 0.95rem;
}

.project-link-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    cursor: none;
    /* Let the custom cursor handle */
}

.project-card:hover .project-link-btn {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    transform: rotate(-45deg);
}


/* --- Project Modal (Logo Gallery) --- */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
}

.modal-content {
    position: relative;
    z-index: 10001;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    /* Optional: Entrance animation */
    transform: translateY(50px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.close-modal {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 3rem;
    text-align: left;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 1.1rem;
    color: #aaa;
}

/* Logos Gallery - Horizontal Scroll / Deck */
.logos-gallery {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    /* Hide Scrollbar */
    scrollbar-width: none;
}

.logos-gallery::-webkit-scrollbar {
    display: none;
}

.logo-card {
    min-width: 300px;
    height: 400px;
    background: #0f0f0f;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #222;
    transition: transform 0.3s;
}

.logo-card:hover {
    transform: translateY(-10px);
    border-color: #444;
}

.logo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.3s;
}

.logo-card:hover img {
    filter: brightness(1);
}

.logo-info {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.logo-card:hover .logo-info {
    transform: translateY(0);
    opacity: 1;
}

.logo-info h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.logo-info span {
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        height: auto;
        padding-top: 2rem;
    }

    .logo-card {
        min-width: 260px;
        height: 350px;
    }
}

/* Education - 3D Cards */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.education-card {
    background: #0f1014;
    /* Dark blue-black */
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s, border-color 0.3s;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: #7a3ee6;
    /* Purple glow */
    filter: blur(90px);
    opacity: 0.4;
    pointer-events: none;
    border-radius: 50%;
}

.card-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.card-content {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.edu-year {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.edu-degree {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.edu-school {
    color: #ddd;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.edu-loc {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }

    .card-icon {
        margin-bottom: 1.5rem;
    }
}

/* Contact - Professional */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.contact-intro {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item .value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.info-item a.value:hover {
    color: var(--accent-primary);
}

.social-links-small {
    display: flex;
    gap: 1.5rem;
}

.social-links-small a {
    font-size: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.social-links-small a:hover {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* Professional Form */
.professional-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: #ccc;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s;
    border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
    opacity: 1;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    background: #fff;
    color: #000;
    border: none;
}

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

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .professional-form {
        padding: 2rem;
    }
}

/* Footer */
footer {
    border-top: 1px solid #111;
    padding: 5rem 5%;
    text-align: center;
}

.footer-content {
    flex-direction: column;
    gap: 3rem;
}

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

.socials a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #444;
    transition: color 0.3s;
}

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

/* Mobile Responsive */
@media (max-width: 900px) {
    .headline {
        margin-left: 0;
    }

    .fluid-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-text {
        margin-left: 0;
        margin-top: -2rem;
        /* Slight overlap vertically */
        padding: 2rem;
    }

    .projects-grid {
        flex-direction: column;
    }

    .project-card {
        width: 100%;
        margin-top: 0 !important;
        transform: none !important;
        /* Disable tilt on mobile */
    }

    .nav-links {
        display: none;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        /* Stack bento grid */
    }

    .intro-box,
    .profile-box,
    .skills-box,
    .bento-group-bottom-left {
        grid-column: span 1;
    }

    .navbar {
        width: 90%;
        /* Wider navbar on mobile */
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        /* Stack projects */
    }

    .hero-title {
        font-size: 3rem;
        /* Enforce readability on small screens */
    }

    .subtitle {
        font-size: 1rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}