/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #4f46e5;
    /* Indigo */
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --accent: #ec4899;
    /* Pink */

    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-light-alt: #f8fafc;
    /* Very light slate */
    --bg-card: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);

    /* Text Colors */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #94a3b8;
    /* Slate 400 */

    /* Gradients */
    --text-gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 15px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --section-pad: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* For custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: var(--section-pad);
    position: relative;
}

.bg-light-alt {
    background-color: var(--bg-light-alt);
}

.text-center {
    text-align: center;
}


.accent {
    color: var(--primary);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 4rem;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(79, 70, 229, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-family: var(--font-main);
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: none;
    /* Let custom cursor handle it */
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--text-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: 0 10px 20px -10px var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: none;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for navbar */
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #fbcfe8;
    bottom: 100px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #bae6fd;
    top: 30%;
    left: 40%;
    animation-duration: 25s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 50px) scale(0.9);
    }
}

.hero-content {
    max-width: 800px;
}

.greeting {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-down a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.scroll-down a:hover {
    color: var(--primary);
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: currentColor;
    border-radius: 2px;
    margin-top: 6px;
    animation: scroll 2s infinite;
    z-index: 1000;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text-content .lead {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-text-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.modern-card {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-box {
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--text-gradient);
    opacity: 0;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-num {
    font-size: 2.5rem;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.stat-plus {
    display: inline-block;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.about-visual {
    position: relative;
}

.abstract-artwork {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    box-shadow: var(--shadow-lg);
}

.blob-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #a7f3d0, #3b82f6);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    mix-blend-mode: multiply;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blob-2 {
    position: absolute;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #fbcfe8, #ec4899);
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    animation: morph 10s ease-in-out infinite reverse;
    mix-blend-mode: multiply;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -30%);
}

.glass-layer {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    color: var(--text-main);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.glass-desc {
    font-size: 1.125rem;
    font-weight: 500;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

/* ==========================================================================
   Clients Marquee Section
   ========================================================================== */
.clients {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    background: var(--bg-main);
}

.clients-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 3rem;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    gap: 3rem;
    min-width: 100%;
    animation: scroll-x 30s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-x {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 3rem));
    }
}

.client-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-main);
    border-radius: var(--radius-full);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.client-logo img {
    height: 24px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-gradient);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.client-logo:hover {
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
    border-color: transparent;
}

.client-logo:hover::before {
    opacity: 1;
}

.marquee-fade {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}

.marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

/* ==========================================================================
   Skills Section (Bento Box)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.bento-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.span-2 {
    grid-column: span 2;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.bg-blue-grad {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.bg-orange-grad {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

.bg-green-grad {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.bg-purple-grad {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
}

.bg-teal-grad {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
}

.bento-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bento-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-light-alt);
    color: var(--text-main);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.bento-hover:hover .tag {
    background: white;
    border-color: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.project-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge.copyright {
    color: var(--text-muted);
}

.badge.active {
    background: #10b981;
    color: white;
}

.project-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.project-hover:hover .project-img-overlay {
    opacity: 1;
}

.overlay-icon {
    font-size: 3rem;
    transform: scale(0.5);
    transition: var(--transition-slow);
}

.project-hover:hover .overlay-icon {
    transform: scale(1);
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.project-tech span::after {
    content: '•';
    color: var(--text-light);
    margin-left: 0.5rem;
}

.project-tech span:last-child::after {
    content: '';
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 0.95rem;
}

.project-link:hover:not(.disabled) {
    color: var(--primary);
    gap: 0.75rem;
    /* slight movement of arrow */
}

.project-link.disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

/* ==========================================================================
   Experience Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 26px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-light), var(--accent), var(--primary-light));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-logo {
    position: absolute;
    left: 0;
    top: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 5px;
}

.timeline-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.timeline-item:hover .timeline-logo {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 0 4px var(--accent), 0 0 20px rgba(236, 72, 153, 0.4);
    border-color: var(--primary-light);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
}

.timeline-content {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content.experience-card {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.timeline-content.experience-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0;
    border-radius: 50%;
    transition: opacity 0.6s ease;
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: translate(30%, -30%);
}

.timeline-content.experience-card:hover {
    transform: translateY(-8px) translateX(5px);
    box-shadow: var(--shadow-hover), 0 10px 30px rgba(79, 70, 229, 0.15);
    border-color: var(--primary-light);
}

.timeline-content.experience-card:hover::after {
    opacity: 0.15;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.25rem;
    color: var(--text-main);
}

.timeline-header .date {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info-side {
    padding: 4rem;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-light-alt) 100%);
    display: flex;
    flex-direction: column;
}

.contact-text {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.c-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.social-icon {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: white;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-form-side {
    padding: 4rem;
    background: white;
}

.modern-form .form-group {
    margin-bottom: 1.5rem;
}

.modern-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 1);
    background: var(--bg-light-alt);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-main);
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-main);
    border-top: 1px solid rgba(226, 232, 240, 1);
    padding: 4rem 0 2rem;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-top {
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 500;
    cursor: none;
    transition: var(--transition);
}

.scroll-top:hover {
    color: var(--primary);
}

/* ==========================================================================
   Animations
   ========================================================================== */

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Cursor hover class */
.cursor-hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(79, 70, 229, 0.1);
    border-color: transparent;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 1024px) {

    .about-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-logo {
        left: -8px;
        width: 45px;
        height: 45px;
    }
}

@media screen and (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-info-side,
    .contact-form-side {
        padding: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Disabel custom cursor on mobile */
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .btn,
    .social-icon,
    .scroll-top {
        cursor: pointer;
    }
}

@media screen and (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   PREMIUM UPGRADES & ANIMATIONS
   ========================================================================== */

/* 1. Fluid Gradient Text Animation */
.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent), #ff8a00, var(--primary));
    background-size: 300% auto;
    animation: gradientFlow 4s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* 2. Apple-Style Cinematic Scroll Reveals */
.reveal-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(8px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* 3. Button Shine Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    transition: all 0s ease;
}

.btn-primary:hover::after {
    animation: shine 0.6s ease-out forwards;
}

@keyframes shine {
    0% { left: -60%; }
    100% { left: 150%; }
}

/* 4. Tilted & Dual Marquee Enhancements */
.clients {
    transform: rotate(-2deg) scale(1.05); /* Tilts the whole section */
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    margin: 4rem 0;
    padding: 5rem 0;
    border: none;
}

.clients-subtitle {
    transform: rotate(2deg); /* Straightens the text back up */
}

.marquee-container {
    flex-direction: column; /* Stack the marquees */
    gap: 1.5rem;
}

.marquee-content.reverse {
    animation: scroll-x-reverse 35s linear infinite;
}

@keyframes scroll-x-reverse {
    from { transform: translateX(calc(-100% - 3rem)); }
    to { transform: translateX(0); }
}

/* 5. Glowing Borders on Hover for Cards */
.bento-hover, .project-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-hover:hover, .project-card:hover {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--primary-light), 0 15px 30px rgba(79, 70, 229, 0.15);
    transform: translateY(-8px);
}

/* ==========================================================================
   ULTRA-PREMIUM MICRO-INTERACTIONS
   ========================================================================== */

/* 1. Gradient Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--text-gradient); /* Uses the pink/indigo gradient */
    z-index: 99999; /* Forces it above everything else */
    width: 0%;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
    transition: width 0.1s ease-out;
}

/* 2. Card Spotlight / Flashlight Effect */
.bento-item, .project-card {
    position: relative;
    /* Ensure content stays above the glow */
    z-index: 1; 
}

/* The actual glowing light */
.bento-item::before, .project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
        rgba(79, 70, 229, 0.08), 
        transparent 40%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-item:hover::before, .project-card:hover::before {
    opacity: 1;
}

/* 3. Magnetic Button Smooth Reset */
.btn {
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.3s ease;
    will-change: transform;
}


/* ==========================================================================
   MARQUEE WIDTH & SEAMLESS LOOP FIX
   ========================================================================== */

/* 1. Force the marquee to take up as much horizontal width as it needs */
.marquee-content {
    width: max-content !important; 
    flex-wrap: nowrap !important;
}

/* 2. Fix the blank space issue by translating exactly 50% (half the logos) */
@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 1.5rem)); } 
}

/* 3. Make the bottom row flawlessly flow in the opposite direction */
@keyframes scroll-x-reverse {
    from { transform: translateX(calc(-50% - 1.5rem)); }
    to { transform: translateX(0); }
}

/* 4. Ensure the container doesn't shrink the items */
.client-logo {
    flex-shrink: 0;
}


/* ==========================================================================
   Floating Back To Top Button
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px; /* Positions it at the bottom left */
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  
  cursor: pointer; /* Fallback if mobile */
  border: none;
  background: var(--primary); /* Matched to your theme's indigo */
  color: #fff;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-content: center;
  transition: background 300ms, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms, visibility 300ms;
  font-weight: 600;
  font-family: var(--font-main);
  box-shadow: var(--shadow-lg);
}

/* Class triggered by JavaScript when scrolling */
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--text-main);
  transform: scale(1.05) translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.back-to-top-btn .button__text {
  position: absolute;
  inset: 0;
  animation: text-rotation 8s linear infinite;
}

.back-to-top-btn .button__text > span {
  position: absolute;
  transform: rotate(calc(22.5deg * var(--index))); /* Perfect circle for 16 characters */
  inset: 6px;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.back-to-top-btn .button__circle {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.back-to-top-btn:hover .button__circle {
  color: var(--text-main);
}

.back-to-top-btn .button__icon--copy {
  position: absolute;
  transform: translate(-150%, 150%);
}

.back-to-top-btn:hover .button__icon:first-child {
  transition: transform 0.3s ease-in-out;
  transform: translate(150%, -150%);
}

.back-to-top-btn:hover .button__icon--copy {
  transition: transform 0.3s ease-in-out 0.1s;
  transform: translate(0);
}

@keyframes text-rotation {
  to {
    rotate: 360deg;
  }
}

/* Interactive cursor styling to match your script.js logic */
.back-to-top-btn {
    cursor: none;
}
@media screen and (max-width: 768px) {
    .back-to-top-btn {
        width: 70px;
        height: 70px;
        bottom: 20px;
        right: 30px;
        cursor: pointer;
    }
    .back-to-top-btn .button__circle {
        width: 30px;
        height: 30px;
    }
    .back-to-top-btn .button__text > span {
        font-size: 0.6rem;
        inset: 4px;
    }
}





/* ==========================================================================
   Curved Loop Marquee (Hero Bottom)
   ========================================================================== */
.curved-loop-jacket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 0; /* Kept behind the scroll down button */
    overflow: hidden;
    cursor: grab;
}

.curved-loop-jacket:active {
    cursor: grabbing;
}

.curved-loop-svg {
    width: 100%;
    min-width: 1200px; /* Prevents text crunching on mobile */
    aspect-ratio: 100 / 12;
    overflow: visible;
    display: block;
    font-size: 5rem; /* Adjusted for better proportion */
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    /* Subtle watermark style coloring using your variables */
    fill: rgba(78, 70, 229, 0.197); 
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}