:root {
    /* Modern color palette */
    --clr-bg: #0a0a0c;
    --clr-surface: #111116;
    --clr-surface-light: #1d1d25;
    --clr-primary: #6b4bff;
    --clr-secondary: #ff3e6c;
    --clr-accent: #00e9c0;
    --clr-text-light: #f8f8ff;
    --clr-text-mid: #c5c5d2;
    --clr-text-dark: #70707a;
    --gradient-primary: linear-gradient(135deg, var(--clr-primary), #9747ff);
    --gradient-secondary: linear-gradient(135deg, var(--clr-secondary), #ff7e54);
    --gradient-accent: linear-gradient(135deg, var(--clr-accent), #4cffce);

    /* Typography */
    --ff-heading: 'Syne', sans-serif;
    --ff-body: 'Inter', sans-serif;

    /* Borders & Shadows */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.25);

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

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #0a0a0c 0%, #1a0d2e 50%, #2d1b4e 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--clr-text-mid);
    font-family: var(--ff-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Cursor styles removed - unused */

img,
video {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-heading);
    color: var(--clr-text-light);
    font-weight: 800;
    text-wrap: balance;
    line-height: 1.2;
}

.wrapper {
    width: 100%;
    max-width: 1480px;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* Responsive wrapper adjustments for tighter margins */
@media (min-width: 768px) {
    .wrapper {
        padding-inline: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .wrapper {
        padding-inline: 2rem;
    }
}

section {
    padding-block: 5rem;
    /* Reduced from 8rem to 5rem */
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-align: center;
    margin-bottom: 3rem;
    /* Reduced from 4rem to 3rem */
    position: relative;
    z-index: 2;
}

.section-title-small {
    font-size: clamp(1.75rem, 3vw, 3rem);
    text-align: center;
    margin-bottom: 2rem;
    /* Reduced from 3rem to 2rem */
}

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

.section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(45deg, var(--clr-primary), #9747ff, var(--clr-secondary));
    background-size: 200% 200%;
    color: var(--clr-text-light);
    box-shadow: 0 8px 25px rgba(107, 75, 255, 0.4);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

.btn-outline {
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--clr-primary), #9747ff) border-box;
    color: var(--clr-text-light);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(107, 75, 255, 0.6);
}

.btn:hover::before {
    left: 100%;
}

.btn i {
    font-size: 0.9rem;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(3px);
}

/* --- Background Elements --- */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.25;
}

.bg-circle-1 {
    width: 500px;
    height: 500px;
    background: var(--clr-primary);
    top: 5%;
    right: -200px;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    background: var(--clr-secondary);
    bottom: 10%;
    left: -200px;
}

.bg-circle-3 {
    width: 350px;
    height: 350px;
    background: var(--clr-accent);
    top: 40%;
    left: 10%;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.5;
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-normal);
    background: rgba(10, 10, 12, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 12, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(30px);
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .main-header {
        padding: 1rem 0;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
    }

    .main-header.scrolled {
        padding: 0.75rem 0;
        background: rgba(10, 10, 12, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
}

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

.logo {
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    bottom: 5px;
    right: -8px;
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 2.5rem;
    }
}

.main-nav a {
    color: var(--clr-text-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
    padding-bottom: 0.25rem;
}

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

.main-nav a:hover {
    color: var(--clr-text-light);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Enhanced Mobile Menu Button */
.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: var(--clr-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-button i {
    transition: transform 0.3s ease;
}

.mobile-menu-button.active i {
    transform: rotate(90deg);
}

.mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.mobile-menu-button:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1001;
    transform: translateX(100%);
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: var(--clr-text-light);
    font-family: var(--ff-heading);
    font-size: 2rem;
    text-decoration: none;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all var(--transition-fast);
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:hover {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(107, 75, 255, 0.3);
}

.mobile-menu a:active {
    transform: translateY(-2px);
}

/* Mobile menu animation delay for each item */
.mobile-menu.active a:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.active a:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu.active a:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-menu.active a:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-menu.active a:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu.active a {
    animation: menuSlideIn 0.3s ease-out forwards;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 992px) {
    .hero-content {
        align-items: flex-start;
        text-align: left;
    }
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    animation: morphing 10s infinite;
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.hero-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    opacity: 0.5;
    filter: blur(30px);
    animation: morphing 10s infinite;
}

.hero-text h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--clr-text-mid);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-text #typed-container {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    min-height: 1.2em;
    margin-bottom: 1.5rem;
}

.hero-text .bio {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 50ch;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-socials a {
    color: var(--clr-text-mid);
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.hero-socials a:hover {
    color: var(--clr-primary);
    transform: translateY(-5px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--clr-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 75, 255, 0.1), transparent);
    z-index: -1;
    transition: opacity var(--transition-normal);
    opacity: 0;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(107, 75, 255, 0.3);
}

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

.stat-card h3 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    transition: all var(--transition-normal);
}

.stat-card p {
    font-weight: 500;
    color: var(--clr-text-mid);
    font-size: 0.9rem;
}

/* --- Modern Hero Section Redesign --- */
.hero-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1200px) {
    .hero-main-grid {
        grid-template-columns: 1fr 1.2fr 1fr;
        gap: 4rem;
    }
}

/* Left - Enhanced Image Container */
.hero-image-container {
    position: relative;
    order: 1;
}

@media (min-width: 768px) {
    .hero-image-container {
        order: 1;
    }
}

@media (min-width: 1200px) {
    .hero-image-container {
        order: 1;
    }
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 25% 75% 75% 25% / 25% 25% 75% 75%;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(107, 75, 255, 0.3);
    animation: morphing 12s infinite;
    border: 3px solid rgba(107, 75, 255, 0.2);
}

.hero-image-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* Middle - Main Content */
.hero-content-main {
    text-align: center;
    order: 2;
}

@media (min-width: 768px) {
    .hero-content-main {
        grid-column: 1 / -1;
        order: 2;
    }
}

@media (min-width: 1200px) {
    .hero-content-main {
        grid-column: auto;
        text-align: left;
        order: 2;
    }
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--clr-text-mid);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--clr-text-light);
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.hero-profession {
    margin-bottom: 2rem;
}

.profession-label {
    display: none;
    /* Hide the "I'm a" label to reduce text */
}

.profession-typed {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    min-height: 1.2em;
    position: relative;
}

.typing-cursor {
    color: var(--clr-primary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    margin-bottom: 1.8rem;
}

.hero-description p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--clr-text-mid);
    max-width: 420px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .hero-description p {
        margin: 0;
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 1200px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

.btn-primary-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(107, 75, 255, 0.3);
    border: none;
    font-size: 1rem;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(107, 75, 255, 0.4);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    color: var(--clr-text-light);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (min-width: 1200px) {
    .hero-social-proof {
        justify-content: flex-start;
    }
}

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

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-mid);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--clr-primary);
    color: white;
    transform: translateY(-3px);
}

/* Right - Modern Stats */
.hero-stats-showcase {
    order: 3;
}

@media (min-width: 768px) {
    .hero-stats-showcase {
        grid-column: 1 / -1;
        order: 3;
    }
}

@media (min-width: 1200px) {
    .hero-stats-showcase {
        grid-column: auto;
        order: 3;
    }
}

.stats-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stats-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-text-light);
    margin-bottom: 0.5rem;
}

.stats-header p {
    color: var(--clr-text-mid);
    font-size: 0.9rem;
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .stats-grid-modern {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        max-width: 460px;
        gap: 1.5rem;
    }
}

.stat-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.8rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: float 6s ease-in-out infinite;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 75, 255, 0.1), rgba(255, 62, 108, 0.1));
    transform: scale(0);
    transition: transform 0.4s ease;
    border-radius: var(--radius-lg);
    z-index: 1;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.stat-item:hover {
    transform: translateY(-12px) scale(1.05);
    border-color: rgba(107, 75, 255, 0.4);
    box-shadow: 0 20px 40px rgba(107, 75, 255, 0.3);
}

.stat-item:hover::before {
    transform: scale(1);
}

.stat-item:hover::after {
    transform: scaleX(1);
}

.stat-item:hover .stat-circle {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.2) rotate(360deg);
    color: white;
    box-shadow: 0 10px 25px rgba(107, 75, 255, 0.4);
}

.stat-visual {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
}

.stat-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(107, 75, 255, 0.15), rgba(255, 62, 108, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--clr-primary);
    font-size: 1.8rem;
    border: 2px solid rgba(107, 75, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: pulse 3s ease-in-out infinite;
}

.stat-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat-item:hover .stat-circle::before {
    transform: translateX(100%);
}

.stat-content {
    position: relative;
    z-index: 3;
}

.stat-content h4 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-content h4::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat-item:hover .stat-content h4 {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-primary));
    -webkit-background-clip: text;
    background-clip: text;
    transform: scale(1.1);
}

.stat-content span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text-mid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-content span {
    color: var(--clr-text-light);
    transform: translateY(-2px);
}

/* --- Portfolio Sections --- */
.portfolio-section {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.portfolio-card {
    background: rgba(17, 17, 22, 0.8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    backdrop-filter: blur(10px);
}

.portfolio-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 25px 50px rgba(107, 75, 255, 0.3);
    border-color: rgba(107, 75, 255, 0.5);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 75, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.portfolio-card:hover::before {
    left: 100%;
}

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

.portfolio-card:hover::after {
    width: 100%;
}

.video-embed {
    aspect-ratio: 16 / 9;
    width: 100%;
    position: relative;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    /* Allow clicks to pass through */
}

.portfolio-card:hover .video-embed::before {
    opacity: 1;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--clr-text-dark);
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(107, 75, 255, 0.1);
    color: var(--clr-text-mid);
    border-radius: 50px;
}

/* .portfolio-section-alt class removed - unused */

.portfolio-footer {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

/* --- Graphics Design Section --- */
.graphics-section {
    position: relative;
    overflow: visible;
    padding-block: 8rem;
}

.graphics-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 2rem;
    z-index: 2;
}

.graphics-intro {
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}

.graphics-intro p {
    font-size: 1.1rem;
}

.graphics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.graphics-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.graphics-card:hover {
    transform: translateY(-10px);
}

.graphics-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.graphics-card:hover img {
    transform: scale(1.05);
}

.graphics-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.graphics-card:hover .graphics-overlay {
    opacity: 1;
}

.graphics-overlay-content {
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    width: 100%;
}

.graphics-card:hover .graphics-overlay-content {
    transform: translateY(0);
}

.graphics-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.graphics-overlay-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.graphics-overlay-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #f8f8ff;
}

/* --- Journey / Experience --- */
/* Journey section was replaced by work experience section. This CSS was removed as it's no longer used.
   See work-experience.css for the new styles. */

/* --- Skills Section --- */
/* --- Skills Section with Dynamic Marquee --- */
.skills-section {
    background: rgba(17, 17, 22, 0.8);
    backdrop-filter: blur(20px);
    padding-block: 4rem;
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(107, 75, 255, 0.03), rgba(0, 233, 192, 0.03));
    z-index: 0;
}

.skills-section>* {
    position: relative;
    z-index: 1;
}

.skills-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.skills-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.skills-marquee-track {
    display: flex;
    gap: 2rem;
    width: fit-content;
    will-change: transform;
}

.skills-marquee-right {
    animation: marqueeRight 30s linear infinite;
}

.skills-marquee-left {
    animation: marqueeLeft 35s linear infinite;
}

@keyframes marqueeRight {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Pause animation on hover */
.skills-marquee-wrapper:hover .skills-marquee-track {
    animation-play-state: paused;
}

.skill-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-icon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 75, 255, 0.1), rgba(0, 233, 192, 0.1));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.skill-icon-card:hover::before {
    opacity: 1;
}

.skill-icon-card:hover {
    transform: translateY(-8px);
    border-color: rgba(107, 75, 255, 0.3);
    box-shadow: 0 20px 40px rgba(107, 75, 255, 0.2);
}

.skill-icon-card i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.skill-icon-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(107, 75, 255, 0.5));
}

.skill-icon-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-mid);
    text-align: center;
    transition: color var(--transition-normal);
    position: relative;
    z-index: 1;
}

.skill-icon-card:hover span {
    color: var(--clr-text-light);
}

/* Special styling for AI tools */
.skill-icon-card:has(i.fa-robot) i,
.skill-icon-card:has(i.fa-brain) i,
.skill-icon-card:has(i.fa-sparkles) i,
.skill-icon-card:has(i.fa-magic) i,
.skill-icon-card:has(i.fa-wand-magic-sparkles) i,
.skill-icon-card:has(i.fa-microchip) i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skill-icon-card:has(i.fa-robot):hover,
.skill-icon-card:has(i.fa-brain):hover,
.skill-icon-card:has(i.fa-sparkles):hover,
.skill-icon-card:has(i.fa-magic):hover,
.skill-icon-card:has(i.fa-wand-magic-sparkles):hover,
.skill-icon-card:has(i.fa-microchip):hover {
    border-color: rgba(0, 233, 192, 0.3);
    box-shadow: 0 20px 40px rgba(0, 233, 192, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-marquee-container {
        gap: 1.5rem;
    }

    .skill-icon-card {
        min-width: 100px;
        height: 100px;
    }

    .skill-icon-card i {
        font-size: 2rem;
    }

    .skill-icon-card span {
        font-size: 0.8rem;
    }

    .skills-marquee-right {
        animation-duration: 25s;
    }

    .skills-marquee-left {
        animation-duration: 30s;
    }
}

/* Performance optimizations */
.skills-marquee-track {
    backface-visibility: hidden;
    perspective: 1000px;
}

.skill-icon-card {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* --- Contact Section --- */
.contact-section {
    background: rgba(17, 17, 22, 0.8);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding-bottom: 0;
    margin-top: 8rem;
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--clr-surface-light);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--clr-primary);
}

.contact-form {
    background: var(--clr-surface-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--clr-text-mid);
    font-family: var(--ff-body);
    transition: all var(--transition-normal);
}

.form-input::placeholder {
    color: var(--clr-text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(107, 75, 255, 0.2);
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: -12px;
    left: 12px;
    font-size: 0.8rem;
    padding: 0 0.5rem;
    background: var(--clr-surface-light);
}

.form-label {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    font-size: 1rem;
    color: var(--clr-text-dark);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-submit {
    margin-top: 1rem;
}

/* --- Footer --- */
.footer {
    background: rgba(17, 17, 22, 0.6);
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    position: relative;
    margin-bottom: 1rem;
}

.footer-logo::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    bottom: 5px;
    right: -8px;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--clr-text-mid);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-nav a:hover {
    color: var(--clr-primary);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-surface-light);
    color: var(--clr-text-mid);
    transition: all var(--transition-normal);
}

.footer-social-link:hover {
    transform: translateY(-5px);
    color: var(--clr-text-light);
    background: var(--clr-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--clr-text-dark);
    font-size: 0.9rem;
}

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    position: relative;
    transform: translateY(30px) scale(0.9);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

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

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-body {
    padding: 2rem;
}

.modal-body h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-body p {
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: var(--clr-text-light);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: var(--clr-primary);
    transform: rotate(90deg);
}

.modal-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-tool {
    padding: 0.5rem 1rem;
    background: rgba(107, 75, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
}

/* --- Enhanced Modal Styles for Gallery --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

/* In styles.css */

.modal-content {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    max-width: 1200px;
    /* CHANGE: Use max-width instead of width */
    width: 90vw;
    /* ADD: Make it responsive to the viewport */
    max-height: 90vh;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

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

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text-light);
}

.modal-header p {
    color: var(--clr-text-mid);
    line-height: 1.6;
}

.modal-gallery {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.gallery-main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--clr-surface-light);
    /* Add flex properties to center the image */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-main {
    /* Let the image scale naturally based on its own aspect ratio */
    max-width: 100%;
    max-height: 70vh;
    /* Limits the height for tall images to fit on screen */
    object-fit: contain;
    /* Ensures the entire image is visible without cropping */
    transition: transform var(--transition-normal);
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-main:hover .gallery-navigation {
    opacity: 1;
}

.gallery-nav-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--clr-text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
    background: rgba(107, 75, 255, 0.8);
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.gallery-thumbnail {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    border-color: var(--clr-primary);
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: var(--clr-accent);
    box-shadow: 0 0 20px rgba(0, 233, 192, 0.3);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-tools {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-tool {
    padding: 0.5rem 1rem;
    background: rgba(107, 75, 255, 0.2);
    border: 1px solid rgba(107, 75, 255, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--clr-text-light);
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-action-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--clr-text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 62, 108, 0.8);
    transform: scale(1.1);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .gallery-thumbnails {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .gallery-thumbnail {
        min-width: 80px;
        width: 80px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

/* --- Grid Layout View --- */
.graphics-grid-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.graphics-grid-view.active {
    opacity: 1;
    visibility: visible;
}

.grid-view-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.grid-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.grid-view-title {
    color: var(--clr-text-light);
    font-size: 2rem;
    font-weight: 700;
}

.grid-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--clr-text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.grid-close-btn:hover {
    background: var(--clr-primary);
    transform: scale(1.1);
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.grid-image-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--clr-surface);
}

.grid-image-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(107, 75, 255, 0.3);
}

.grid-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-image-item:hover img {
    transform: scale(1.05);
}

.grid-project-info {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.grid-project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--clr-text-light);
}

.grid-project-info p {
    color: var(--clr-text-mid);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.grid-project-tools {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.grid-tool-tag {
    padding: 0.5rem 1rem;
    background: rgba(107, 75, 255, 0.2);
    border: 1px solid rgba(107, 75, 255, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--clr-text-light);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .graphics-grid-view {
        padding: 1rem;
    }

    .grid-view-header {
        margin-bottom: 2rem;
    }

    .grid-view-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.75rem 0;
    }

    .mobile-menu a {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .mobile-menu-button {
        font-size: 1.25rem;
        padding: 0.4rem;
    }
}

/* Prevent horizontal scroll when menu is open */
.mobile-menu-open {
    overflow-x: hidden;
}

/* Improved header container for mobile */
@media (max-width: 767px) {
    .header-container {
        padding: 0 1rem;
    }

    .main-nav {
        display: none;
    }
}

/* Smooth focus states for mobile menu */
.mobile-menu a:focus {
    outline: 2px solid var(--clr-primary);
    outline-offset: 2px;
}

.mobile-menu-button:focus {
    outline: 2px solid var(--clr-primary);
    outline-offset: 2px;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

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

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

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(107, 75, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(107, 75, 255, 0.6);
    }
}

@keyframes float {

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

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

.animate-fade-up {
    animation: fadeUp 0.8s forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 1s forwards;
    opacity: 0;
}

.animate-scale {
    animation: scale 0.8s forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slideInLeft 0.8s forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slideInRight 0.8s forwards;
    opacity: 0;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

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

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* Modern Interactive Elements */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-5px);
}

/* Enhanced Modal Styling */
.modal-tool {
    padding: 0.5rem 1rem;
    background: rgba(107, 75, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    margin: 0.25rem;
    display: inline-block;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading * {
    cursor: wait !important;
}

/* Enhanced Form States */
.form-input:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(107, 75, 255, 0.2);
    transform: scale(1.02);
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Enhanced Graphics Design Section with Marquee Animation --- */
.graphics-section {
    padding-block: 5rem;
    position: relative;
    overflow: hidden;
}

.graphics-marquee-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(107, 75, 255, 0.05), rgba(255, 62, 108, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
}

/* Sticky Information Card */
.graphics-info-card {
    position: sticky;
    top: 0;
    left: 0;
    width: 450px;
    height: 600px;
    background: linear-gradient(135deg, rgba(10, 10, 12, 0.95), rgba(17, 17, 22, 0.95));
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 3rem;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    flex-shrink: 0;
}

.graphics-info-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.graphics-info-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--clr-text-mid);
    margin-bottom: 2rem;
}

.graphics-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--clr-text-light);
    font-family: var(--ff-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--clr-text-mid);
    margin-top: 0.25rem;
}

.graphics-cta {
    margin-top: 1rem;
}

/* Marquee Animation Container */
.graphics-marquee-wrapper {
    flex: 1;
    height: 100%;
    overflow: hidden;
    mask: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.graphics-marquee-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
    padding: 2rem;
    height: 100%;
    /* Remove CSS animation - now controlled by JavaScript */
}

/* CSS keyframes removed - animation now controlled by JavaScript */

/* Animation now controlled by JavaScript for seamless loop */

/* Individual Marquee Cards */
.graphics-card-marquee {
    position: relative;
    width: 380px;
    height: 480px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--clr-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.graphics-card-marquee:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(107, 75, 255, 0.3);
    border-color: rgba(107, 75, 255, 0.5);
    z-index: 5;
}

.graphics-card-marquee img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.graphics-card-marquee:hover img {
    transform: scale(1.1);
}

.graphics-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3), transparent);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.graphics-card-marquee:hover .graphics-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.graphics-card-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--clr-text-light);
}

.graphics-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.graphics-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(107, 75, 255, 0.2);
    border: 1px solid rgba(107, 75, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Collapsing Effect - Cards slide under the info card */
.graphics-card-marquee::before {
    content: '';
    position: absolute;
    left: -450px;
    top: 0;
    width: 450px;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0.95) 60%, rgba(10, 10, 12, 0.7) 80%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .graphics-info-card {
        width: 350px;
        padding: 2rem;
    }

    .graphics-card-marquee::before {
        left: -350px;
        width: 350px;
        background: linear-gradient(to right, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0.95) 60%, rgba(10, 10, 12, 0.7) 80%, transparent 100%);
    }
}

@media (max-width: 768px) {
    .graphics-marquee-container {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .graphics-info-card {
        position: relative;
        width: 100%;
        height: auto;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .graphics-marquee-wrapper {
        flex: none;
        width: 100%;
        height: auto;
        /* CHANGE: Use auto height */
        mask: none;
        -webkit-mask: none;
        padding-block: 2rem;
        /* ADD: Add some vertical padding */
    }

    .graphics-card-marquee {
        width: 70vw;
        /* CHANGE: Slightly smaller for more breathing room */
        max-width: 280px;
        height: 380px;
    }

    .graphics-marquee-track {
        animation-duration: 20s;
    }

    .graphics-card-marquee::before {
        display: none;
    }
}

/* Performance Optimizations */
.graphics-marquee-track {
    backface-visibility: hidden;
    perspective: 1000px;
}

.graphics-card-marquee {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Enhanced Hover Effects */
.graphics-card-marquee:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(107, 75, 255, 0.1), rgba(255, 62, 108, 0.1));
    z-index: 1;
    pointer-events: none;
}

/* --- Motion Graphics 2x2 Grid Layout --- */
.motion-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* --- Motion Graphics 2x3 Grid Layout --- */
.motion-grid-2x3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .motion-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .motion-grid-2x3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.motion-card {
    background: linear-gradient(135deg, var(--clr-surface), var(--clr-surface-light));
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    height: 380px;
}

.motion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--clr-primary);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    overflow: hidden;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(107, 75, 255, 0.4);
    z-index: 3;
}

.play-button i {
    color: white;
    font-size: 1.5rem;
    margin-left: 4px;
}

.motion-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(107, 75, 255, 0.6);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    z-index: 2;
}

.motion-card:hover .video-overlay {
    transform: translateY(0);
}

.video-overlay h3 {
    color: var(--clr-text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-overlay p {
    color: var(--clr-text-mid);
    font-size: 0.9rem;
    line-height: 1.4;
}

.motion-info {
    padding: 1rem 1.5rem;
    background: var(--clr-surface);
}

.motion-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.motion-tag {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- Video Modal Styles --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.video-modal-close:hover {
    background: var(--clr-primary);
    transform: scale(1.1);
}

.video-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-header h3 {
    color: var(--clr-text-light);
    margin: 0;
    font-size: 1.5rem;
}

.video-modal-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

.vimeo-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vimeo-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .video-modal-header {
        padding: 1rem;
    }

    .video-modal-header h3 {
        font-size: 1.2rem;
    }

    .motion-card {
        height: 320px;
    }

    .video-thumbnail {
        height: 260px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button i {
        font-size: 1.2rem;
    }
}