/* --- Global Variables --- */
:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-surface: rgba(20, 20, 22, 0.4);
    --bg-surface-hover: rgba(40, 40, 45, 0.5);

    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    /* Zinc 400 */
    --text-muted: #71717A;
    /* Zinc 500 */

    --accent-glow: rgba(59, 130, 246, 0.5);
    /* Blue 500 */
    --accent-border: rgba(255, 255, 255, 0.08);
    --accent-border-hover: rgba(255, 255, 255, 0.15);

    --nav-bg: rgba(10, 10, 12, 0.6);

    /* Layout & Spacing */
    --container-max: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Transitions */
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Resets & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: none !important;
    /* Prevents fixed stacking context from breaking */
}

h1,
h2,
h3,
h4,
.brand-text {
    font-family: 'Outfit', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* --- Cinematic Background --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

/* Constellation SVG Background */
.constellation-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vw;
    height: 150vh;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: constel-rotate 120s linear infinite;
}

.star-group-1 {
    animation: float-stars 40s ease-in-out infinite alternate;
}

.star-group-2 {
    animation: float-stars 60s ease-in-out infinite alternate-reverse;
}

@keyframes constel-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float-stars {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    100% {
        transform: translateY(20px) translateX(-20px);
    }
}

.blob-1 {
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(147, 51, 234, 0.1) 100%);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    bottom: -20%;
    right: -10%;
    animation-direction: alternate-reverse;
    animation-duration: 25s;
}

@keyframes float {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    50% {
        transform: translate(30px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.noise-overlay {
    position: absolute;
    inset: 0;
    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)"/%3E%3C/svg%3E');
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* --- Magnetic Custom Cursor --- */
/* Hide on smaller screens */
@media (hover: none) and (pointer: coarse) {
    .cursor-glow {
        display: none !important;
    }
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    /* transform is updated via JS */
    will-change: transform;
    mix-blend-mode: screen;
}

/* --- Premium Floating Dock --- */
.floating-dock {
    position: fixed;
    z-index: 9999;
    top: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    padding: 8px 12px;
    border-radius: 100px;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--accent-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInDock 0.6s ease-out forwards;
    animation-delay: 0.1s;
    /* WebKit Bug Fix: strictly NO DOM transforms allowed here to prevent backdrop-filter stacking crash */
}

@keyframes fadeInDock {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dock-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
}

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

.dock-btn.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dock-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.4s var(--spring), color 0.3s ease;
}

/* Hover SVG Animations */
.dock-btn:hover .dock-icon {
    transform: scale(1.15) translateY(-2px);
    color: #3b82f6;
}

.dock-btn.active .dock-icon {
    color: #60a5fa;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
    animation: bounce-icon 0.6s var(--spring);
}

@keyframes bounce-icon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3) translateY(-4px);
    }

    100% {
        transform: scale(1);
    }
}

.dock-divider {
    width: 1px;
    height: 24px;
    background: var(--accent-border);
    margin: 0 4px;
}

.lang-toggle-btn {
    padding: 10px 14px;
}

.globe-icon {
    animation: spin-slow 15s linear infinite;
}

@media (min-width: 768px) {
    /* No longer enforcing custom hover transforms on floating-dock here */
}

/* --- Layout: Bento Grid --- */
.bento-container {
    max-width: var(--container-max);
    margin: 120px auto 60px;
    padding: 0 24px;
    display: grid;
    /* 3 column grid for desktop */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 24px;
}

/* Glass Panel Base */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    /* For magnetic effect overflow */
}

.bento-box {
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* For Spotlight Effect */
}

/* Spotlight Effect on Bento Boxes */
.bento-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            rgba(255, 255, 255, 0.05),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.bento-box:hover::before {
    opacity: 1;
}

.bento-box>* {
    position: relative;
    z-index: 1;
}

.box-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title-icon {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* --- Specific Bento Boxes --- */

/* 1. Hero / About */
.hero-box {
    grid-column: span 2;
    /* 2 out of 3 columns */
    justify-content: center;
}

.hero-content {
    display: flex;
    gap: 32px;
    align-items: center;
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-border);
    position: relative;
    z-index: 2;
    transition: transform 0.5s var(--spring);
}

.avatar-ring {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(59, 130, 246, 0.3) 25%, transparent 50%, rgba(147, 51, 234, 0.3) 75%, transparent 100%);
    animation: spin 10s linear infinite;
    z-index: 1;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

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

.hero-text {
    flex-grow: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* 2. Skills Box */
.skills-box {
    grid-column: span 1;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s var(--spring);
}

.spin-slow {
    animation: spin 8s linear infinite;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.skill-tag:hover .skill-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* 3. Experience Box */
.experience-box {
    grid-column: span 2;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-border), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 24px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 9px;
    height: 9px;
    background: #a1a1aa;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-surface);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-border);
}

.timeline-content .role {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-content .period {
    font-size: 0.8rem;
    color: #3b82f6;
    display: block;
    margin-bottom: 8px;
}

.timeline-content .company {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timeline-content .description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 4px;
    font-weight: 500;
}

.tag-small {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

/* Expand Button */
.expand-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    position: relative;
    z-index: 2;
}

.expand-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.expand-btn svg {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* 4. Projects Box */
.projects-box {
    grid-column: span 3;
    /* Full width row */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.1s ease-out;
    /* Changed for JS tilt */
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover {
    /* JS 3D Tilt handles transform */
    border-color: var(--accent-border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.project-card:hover::before {
    opacity: 1;
}

.project-info {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.project-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.project-tags {
    margin-top: auto;
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.project-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.project-card:hover .project-arrow {
    color: #fff;
    transform: translate(4px, -4px);
}

/* 5. Academic Box */
.academic-box {
    grid-column: span 1;
}

/* 6. Certifications Box */
.certifications-box {
    grid-column: span 2;
}

.certifications-scrollable {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom Scrollbar for Certifications */
.certifications-scrollable::-webkit-scrollbar {
    width: 6px;
}

.certifications-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.certifications-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.certifications-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edu-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-border);
}

.edu-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.edu-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-mini {
    margin-top: auto;
    padding-top: 24px;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.glow-text {
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s;
}

.glow-text:hover {
    opacity: 0.8;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--spring);
}

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

/* --- Contact Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 24px;
}

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

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.6s var(--spring), opacity 0.4s ease;
}

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

.shadow-premium {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.close-btn svg {
    width: 18px;
    height: 18px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 16px 16px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    outline: none;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.4);
}

/* Floating Labels */
.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.2s ease;
    pointer-events: none;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    background: #111113;
    /* Roughly matches modal bg to mask input border */
    padding: 0 4px;
    color: #60a5fa;
    border-radius: 4px;
}

.form-group input:not(:focus):not(:placeholder-shown)~label,
.form-group textarea:not(:focus):not(:placeholder-shown)~label {
    color: var(--text-secondary);
}

/* Input Glow FX */
.input-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(4px);
}

.form-group input:focus~.input-glow,
.form-group textarea:focus~.input-glow {
    opacity: 0.5;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    margin-top: 8px;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .submit-icon {
    transform: translate(2px, -2px);
}

.form-status {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 8px;
    min-height: 20px;
}

.form-status.success {
    color: #34d399;
}

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

/* --- Utilities --- */
.mt-6 {
    margin-top: 24px;
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray-400 {
    color: #9ca3af;
}

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

    .hero-box,
    .experience-box,
    .projects-box {
        grid-column: span 2;
    }

    .skills-box,
    .academic-box,
    .certifications-box {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .floating-dock {
        padding: 6px 8px;
    }

    .dock-btn {
        flex-direction: column;
        gap: 4px;
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .dock-icon {
        width: 20px;
        height: 20px;
    }

    .dock-divider {
        height: 32px;
    }

    .bento-container {
        grid-template-columns: 1fr;
        margin-top: 40px;
        margin-bottom: 120px;
    }

    .hero-box,
    .experience-box,
    .projects-box,
    .skills-box,
    .academic-box,
    .certifications-box {
        grid-column: span 1;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

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

    .social-links {
        justify-content: center;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }
}