:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #6366f1;
    /* Indigo */
    --secondary: #a855f7;
    /* Purple */
    --accent: #ec4899;
    /* Pink */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
    z-index: -2;
}

.overlay-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--glass-highlight);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: "Courier New", Courier, monospace;
    color: #DFFF00;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--text-main);
}

.btn-contact {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-contact:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: #DFFF00;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: "Courier New", Courier, monospace;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #e2e8f0;
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-main);
}

/* CV Button */
.btn-cv {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cv:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
    border-color: white;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.delay-float {
    animation-delay: 2s;
}

.delay-float-2 {
    animation-delay: 4s;
}

.profile-frame {
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 2px solid var(--glass-highlight);
    padding: 8px;
    background: var(--glass-bg);
    position: relative;
    z-index: 1;
    animation: blob 8s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.2);
    overflow: hidden;
}

@keyframes blob {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.glass-card {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.glass-card:nth-of-type(2) {
    top: 50px;
    left: -30px;
    z-index: 2;
}

.glass-card:nth-of-type(3) {
    bottom: 30px;
    right: -20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    z-index: 2;
}

.glass-card:nth-of-type(4) {
    top: 10px;
    right: -40px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
    z-index: 2;
}

.glass-card i {
    font-size: 2.2rem;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card span {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Sections Common */
.section-header {
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.gradient-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
}

.about-grid h3 {
    font-family: "Courier New", Courier, monospace;
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Skills */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-group h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.skill-group i {
    color: var(--secondary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--text-main);
}

/* Education Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    position: relative;
}

.timeline-content .date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-content .institution {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image-placeholder {
    height: 160px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.gradient-1 {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.gradient-2 {
    background: linear-gradient(135deg, #312e81, #4338ca);
}

.gradient-3 {
    background: linear-gradient(135deg, #4c1d95, #6d28d9);
}

.gradient-4 {
    background: linear-gradient(135deg, #831843, #be185d);
}

.gradient-5 {
    background: linear-gradient(135deg, #064e3b, #059669);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tech-stack-mini {
    display: flex;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.tech-stack-mini span {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.link-arrow {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow:hover {
    gap: 1rem;
}

/* Contact */
.contact-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-pill {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.contact-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
    opacity: 0;
    animation: fadeLeft 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        z-index: 1001;
        display: block;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px auto;
        transition: all 0.3s ease;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .glass-card {
        width: 90px;
        height: 90px;
    }
}

/* CV Button - Accessible & Attractive */
.btn-cv {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white !important;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-cv:hover {
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
    transform: translateY(-3px) scale(1.02);
    border-color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-cv i {
    font-size: 1.1rem;
}

/* CV Download Buttons */
.cv-wrapper {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cv-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-cv {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cv:hover {
    background: rgba(99, 102, 241, 0.1);
    /* Primary tint */
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cv i {
    color: var(--secondary);
}


/* The Attractive CV Button Style */
.cv-download-btn {
    position: relative;
    padding: 15px 40px;
    font-family: "Courier New", Courier, monospace;
    /* Or your main font */
    font-size: 16px;
    font-weight: bold;
    color: #06b6d4;
    /* Cyan Text */
    background: transparent;
    border: 2px solid #06b6d4;
    /* Cyan Border */
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

/* The Hover Effect (Glow) */
.cv-download-btn:hover {
    background: #06b6d4;
    color: #0f172a;
    /* Dark Navy Text */
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.8),
        0 0 40px rgba(6, 182, 212, 0.4);
    transform: translateY(-3px);
}

/* Active/Click Effect */
.cv-download-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 5px rgba(6, 182, 212, 0.8);
}

/* Contact Form Layout */
.form-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    text-align: left;
}

.contact-form-content {
    display: flex;
    flex-direction: column;
}

.contact-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-subheading {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.submit-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.social-squares {
    display: flex;
    gap: 1rem;
}

.social-sq {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-sq:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-box {
        padding: 2rem;
    }

    .contact-heading {
        font-size: 2.5rem;
    }
}

/* GitHub Link Tech Animation */
.github-link {
    position: relative;
    overflow: hidden;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

.github-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.github-link:hover .tech-animation {
    opacity: 1;
}

.data-node {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary);
    animation: moveNode 2s linear infinite;
}

.node-1 {
    top: 20%;
    left: -5%;
    animation-duration: 1.5s;
    animation-delay: 0s;
}

.node-2 {
    top: 80%;
    left: -5%;
    animation-duration: 2s;
    animation-delay: 0.5s;
}

.node-3 {
    top: 50%;
    left: -5%;
    animation-duration: 1.8s;
    animation-delay: 1s;
}

.node-4 {
    top: 30%;
    left: -5%;
    animation-duration: 2.2s;
    animation-delay: 0.2s;
}

.node-5 {
    top: 70%;
    left: -5%;
    animation-duration: 1.6s;
    animation-delay: 0.8s;
}

@keyframes moveNode {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(200px);
        opacity: 0;
    }
}

/* --- EXTENDED MOBILE RESPONSIVENESS --- */

/* Animations state (from JS) */
.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure Hamburger is hidden on desktop by default */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

/* Tablets and small screens */
@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: 999;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.5s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered animation for menu items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-main);
    }

    .nav-links .btn-contact {
        margin-top: 1rem;
        padding: 1rem 3rem;
        font-size: 1.1rem;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Typography adjustments */
    .hero h1 {
        font-size: 3rem;
        line-height: 1.1;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Grids scaling - force single column explicitly for avoid overflow */
    .about-grid,
    .skills-wrapper,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns .btn,
    .hero-btns .btn-cv {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .glass-card {
        width: 90px;
        height: 90px;
    }

    .glass-card:nth-of-type(2) {
        top: 30px;
        left: 5%;
    }

    .glass-card:nth-of-type(3) {
        bottom: 20px;
        right: 10%;
    }

    .glass-card:nth-of-type(4) {
        top: 10px;
        right: 5%;
    }
}

/* Mobile Phones Extra Small styling */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .greeting {
        font-size: 1.1rem;
    }

    .hero-visual {
        height: 250px;
        transform: scale(0.85);
    }

    .profile-frame {
        width: 250px;
        height: 250px;
    }

    .glass-card {
        transform: scale(0.8);
    }

    .glass-card:nth-of-type(2) {
        left: 5%;
        top: 15px;
    }

    .glass-card:nth-of-type(3) {
        right: 5%;
        bottom: 10px;
    }

    .glass-card:nth-of-type(4) {
        right: 0%;
        top: 5px;
    }

    .about-grid h3 {
        font-size: 1.5rem;
    }

    .project-card .card-content {
        padding: 1.25rem;
    }

    .form-box {
        padding: 1.5rem 1rem;
    }

    .contact-heading {
        font-size: 2rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline-dot {
        left: 1px;
    }
}