/* ========================================
   CSS Variables & Base Styles
   ======================================== */
:root {
    /* Neutral Base - Cooler & Crisp */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-accent: #f1f5f9;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;

    /* Vibrant Accent Colors */
    --color-accent: #6366f1;
    --color-accent-hover: #4f46e5;
    --color-accent-secondary: #ec4899;
    --color-accent-tertiary: #06b6d4;
    --color-success: #10b981;

    /* Gradient & Effects */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --shadow-glow: rgba(99, 102, 241, 0.4);
    --shadow-soft: rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    cursor: auto;
}

body {
    cursor: auto;
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-circle {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    opacity: 0.5;
}

.custom-cursor.hover .cursor-dot {
    width: 12px;
    height: 12px;
    background: var(--color-accent-secondary);
}

.custom-cursor.hover .cursor-circle {
    width: 60px;
    height: 60px;
    border-color: var(--color-accent-secondary);
    background: rgba(236, 72, 153, 0.1);
    opacity: 0.8;
}

.custom-cursor.click .cursor-dot {
    transform: translate(-50%, -50%) scale(0.8);
}

.custom-cursor.click .cursor-circle {
    transform: translate(-50%, -50%) scale(0.9);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

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

.bg-blob-1 {
    width: 600px;
    height: 600px;
    background: var(--color-accent);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.bg-blob-2 {
    width: 500px;
    height: 500px;
    background: var(--color-accent-secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.bg-blob-3 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

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

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

    75% {
        transform: translate(-50px, -20px) scale(1.05);
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0%;
    z-index: 9998;
    transition: width 0.1s ease-out;
}

/* Disable custom cursor on touch devices */
@media (hover: none) {
    html {
        cursor: auto;
    }

    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 4px 6px -1px var(--shadow-soft);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px var(--shadow-glow), 0 4px 6px -2px var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
    background-color: var(--color-accent);
    color: white;
}

.btn-submit:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px var(--shadow-glow);
}

.btn-loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-normal);
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle,
.nav-close {
    display: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--color-bg);
    overflow: hidden;
}

/* Subtle gradient orbs for vibrancy */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.04) 50%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, rgba(99, 102, 241, 0.03) 50%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.125rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.hero-shape {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

animation: float 6s ease-in-out infinite;
}

.hero-shape svg {
    width: 100%;
    height: auto;
}

@keyframes float {

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

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: var(--color-border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-color: var(--color-text-secondary);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* ========================================
   About Section
   ======================================== */
.about {
    background-color: var(--color-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
}

.about-description {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.skills-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

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

.skill-tag {
    padding: 10px 20px;
    background-color: var(--color-bg-alt);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.skill-tag:hover {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-glow);
}

/* Resume Section */
.resume-section {
    margin-top: 60px;
}

.resume-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: 2px solid var(--color-accent);
    transition: all var(--transition-fast);
}

.timeline-item:hover::before {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.timeline-role {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.timeline-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.timeline-list {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 16px 0;
}

.timeline-list li {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.timeline-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--color-text-muted);
    font-weight: bold;
}

/* ========================================
   Works Section
   ======================================== */
.works {
    background-color: var(--color-bg-alt);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.work-card {
    background-color: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--color-shadow);
}

.work-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slow);
}

.work-card:hover .work-placeholder {
    transform: scale(1.05);
}

.work-placeholder svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-info {
    padding: 24px;
}

.work-category {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: block;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.work-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background-color: var(--color-bg);
}

.contact-content {
    /* display: grid; */
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-text {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

.contact-details {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.contact-item svg {
    color: var(--color-text-muted);
}

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

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -8px var(--shadow-glow);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--color-border);
    border-radius: 0;
    color: var(--color-text);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.footer-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-shape {
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-normal);
        z-index: 1001;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .nav-close {
        position: absolute;
        top: 24px;
        right: 24px;
        display: block;
    }

    .nav-toggle {
        display: block;
    }

    .scroll-indicator {
        display: none;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -34px;
    }

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

/* ========================================
   Tools Section
   ======================================== */
.tools {
    background-color: var(--color-bg-alt);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tool-category {
    background-color: var(--color-bg);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-normal);
}

.tool-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px var(--shadow-glow);
    border-color: var(--color-accent);
}

.tool-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uiux-icon {
    background-color: #ede9fe;
    color: #7c3aed;
}

.graphic-icon {
    background-color: #fce7f3;
    color: #db2777;
}

.dev-icon {
    background-color: #dbeafe;
    color: #2563eb;
}

.marketing-icon {
    background-color: #dbfeeb;
    color: #25eb88;
}

.qa-icon {
    background-color: #fef0db;
    color: #ebb625;
}

.colab-icon {
    background-color: #dbdefe;
    color: #2549eb;
}

.tool-category-title {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

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

.tool-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background-color: var(--color-bg-alt);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.tool-item:hover {
    background-color: var(--color-border);
    transform: translateX(4px);
}

.tool-logo {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text-secondary);
}

.tool-logo svg {
    width: 100%;
    height: 100%;
}

.figma-logo {
    color: #f24e1e;
}

.tool-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Responsive Styles for Tools Grid */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .tool-category {
        padding: 24px;
    }

    .tool-category-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .tool-icon {
        width: 48px;
        height: 48px;
    }

    .tool-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   Carousel Styles
   ======================================== */
.carousel-container1 {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Space between multiple carousels stacked vertically */
.carousel-container1+.carousel-container2 {
    margin-top: 48px;
}

.carousel-track-container {
    overflow: hidden;
    margin-bottom: 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 16px;
}

.carousel-slide-inner {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.carousel-slide-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px var(--shadow-glow);
}

.carousel-image {
    width: 100%;
    overflow: hidden;
}

.carousel-placeholder {
    width: 100%;
    aspect-ratio: 2/1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slow);
}

.carousel-slide-inner:hover .carousel-placeholder {
    transform: scale(1.02);
}

.carousel-placeholder svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    padding: 40px;
}

.carousel-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.carousel-category {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

.carousel-year {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.carousel-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.carousel-description {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 800px;
}

.carousel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.carousel-tag {
    padding: 8px 16px;
    background-color: var(--color-bg-alt);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    transition: all var(--transition-fast);
}

.carousel-tag:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -4px var(--shadow-glow);
}

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

.carousel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.carousel-link:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px var(--shadow-glow);
}

.carousel-link svg {
    flex-shrink: 0;
}

.carousel-link-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background-color: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.carousel-link-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px var(--shadow-glow);
}

.carousel-link-outline svg {
    flex-shrink: 0;
}

/* Carousel Navigation */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    transition: all var(--transition-fast);
    z-index: 10;
}

.carousel-button:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 4px 12px -2px var(--shadow-glow);
}

.carousel-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-button:disabled:hover {
    background-color: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-dot:hover {
    background-color: var(--color-accent);
    opacity: 0.7;
}

.carousel-dot.active {
    background-color: var(--color-accent);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Carousel Responsive */
@media (max-width: 768px) {
    .carousel-container1 {
        padding: 0 56px;
    }

    .carousel-container2 {
        padding: 0 56px;
    }

    .carousel-content {
        padding: 28px;
    }

    .carousel-title {
        font-size: 1.5rem;
    }

    .carousel-description {
        font-size: 1rem;
    }

    .carousel-links {
        flex-direction: column;
    }

    .carousel-link,
    .carousel-link-outline {
        width: 100%;
        justify-content: center;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 48px;
    }

    .carousel-content {
        padding: 20px;
    }

    .carousel-title {
        font-size: 1.375rem;
    }

    .carousel-tags {
        gap: 8px;
    }

    .carousel-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* ========================================
   3D Tilt Card Effect
   ======================================== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: translateZ(0);
}

.tilt-card-inner {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.tilt-card-content {
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

.tilt-card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%, transparent 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    mix-blend-mode: overlay;
    transform: translateZ(1px);
}

/* ========================================
   Floating Animation Elements
   ======================================== */
@keyframes float {

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

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }

    75% {
        transform: translateY(-25px) rotate(3deg);
    }
}

@keyframes floatReverse {

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

    25% {
        transform: translateY(20px) rotate(-5deg);
    }

    50% {
        transform: translateY(10px) rotate(3deg);
    }

    75% {
        transform: translateY(25px) rotate(-3deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.float-element {
    animation: float 6s ease-in-out infinite;
}

.float-element-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

.float-element-reverse {
    animation: floatReverse 7s ease-in-out infinite;
}

.pulse-element {
    animation: pulse 3s ease-in-out infinite;
}

/* ========================================
   Enhanced Button Ripple Effect
   ======================================== */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   Typing Effect for Hero
   ======================================== */
.typing-container {
    display: inline-block;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--color-accent);
    animation: blinkCursor 0.8s step-end infinite;
    white-space: nowrap;
}

@keyframes blinkCursor {

    0%,
    100% {
        border-color: var(--color-accent);
    }

    50% {
        border-color: transparent;
    }
}

/* ========================================
   Glow Effects
   ======================================== */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.5;
    filter: blur(10px);
}

.glow-text {
    text-shadow: 0 0 20px var(--shadow-glow), 0 0 40px var(--shadow-glow);
}

/* ========================================
   Magnetic Button Effect
   ======================================== */
.magnetic {
    position: relative;
    transition: transform 0.3s ease-out;
}

/* ========================================
   Parallax Elements
   ======================================== */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ========================================
   Reveal Animations
   ======================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

/* ========================================
   Gradient Border Animation
   ======================================== */
.gradient-border {
    position: relative;
    background: var(--color-bg);
    border-radius: inherit;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-primary);
    z-index: -1;
    background-size: 200% 200%;
    animation: shimmer 3s linear infinite;
}

.gradient-border-inner {
    position: relative;
    background: var(--color-bg);
    border-radius: inherit;
}

/* ========================================
   Interactive Tool Items
   ======================================== */
.tool-item {
    position: relative;
    overflow: hidden;
}

.tool-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.tool-item:hover::after {
    width: 300px;
    height: 300px;
}

.tool-item:hover .tool-logo {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.tool-logo {
    transition: transform 0.3s ease;
}

/* ========================================
   Enhanced Timeline Animation
   ======================================== */
.timeline-item {
    position: relative;
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: 2px solid var(--color-accent);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover::before {
    background-color: var(--color-accent);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2);
    transform: scale(1.3);
}

.timeline-item:hover .timeline-role {
    color: var(--color-accent);
    transition: color 0.3s ease;
}

/* ========================================
   Skill Tag Wave Animation
   ======================================== */
.skill-tag {
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

/* ========================================
   Hover Scale Cards
   ======================================== */
.hover-scale {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-scale:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px -12px var(--shadow-glow);
}

/* ========================================
   Shimmer Loading Effect
   ======================================== */
.shimmer {
    background: linear-gradient(90deg, var(--color-bg-alt) 25%, var(--color-bg-accent) 50%, var(--color-bg-alt) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ========================================
   Interactive Form Enhancements
   ======================================== */
.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-accent);
    box-shadow: 0 1px 0 0 var(--color-accent);
}

.form-group label {
    transition: color 0.3s ease, transform 0.3s ease;
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* ========================================
   Noise Texture Overlay
   ======================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
}

/* ========================================
   Celebration/Confetti Canvas
   ======================================== */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

/* ========================================
   Section Dividers
   ======================================== */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
    fill: var(--color-bg-alt);
}

.wave-divider {
    animation: waveMove 10s linear infinite;
}

@keyframes waveMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 0;
    }
}