/* Portfolio Design System */
:root {
    /* Colors */
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(240, 10%, 12%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(240, 10%, 12%);
    --primary: hsl(250, 84%, 54%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-glow: hsl(250, 100%, 70%);
    --secondary: hsl(240, 5%, 96%);
    --secondary-foreground: hsl(240, 6%, 10%);
    --muted: hsl(240, 5%, 96%);
    --muted-foreground: hsl(240, 4%, 46%);
    --accent: hsl(250, 100%, 95%);
    --accent-foreground: hsl(250, 84%, 54%);
    --border: hsl(240, 6%, 90%);
    --input: hsl(240, 6%, 90%);
    --ring: hsl(250, 84%, 54%);
    --section-bg: hsl(0, 0%, 99%);
    --work-card-hover: hsl(250, 100%, 98%);
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, hsl(250, 84%, 54%), hsl(280, 100%, 70%));
    
    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsl(240, 10%, 12%, 0.1);
    --shadow-hover: 0 8px 30px -6px hsl(250, 84%, 54%, 0.3);
    --shadow-glow: 0 0 40px hsl(250, 100%, 70%, 0.4);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --radius: 0.75rem;
    --section-padding: 5rem 0;
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Utility Classes */
.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.gradient-text {
    background: var(--hero-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Moving Shapes Background */
.moving-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(250, 84%, 54%, 0.1), hsl(280, 100%, 70%, 0.1));
    animation: floatMove 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 20%;
    animation-duration: 22s;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 20%;
    animation-duration: 28s;
    animation-delay: -15s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 60%;
    animation-duration: 18s;
    animation-delay: -8s;
}

.shape-6 {
    width: 90px;
    height: 90px;
    top: 80%;
    left: 70%;
    animation-duration: 32s;
    animation-delay: -12s;
}

.shape-7 {
    width: 70px;
    height: 70px;
    top: 15%;
    left: 50%;
    animation-duration: 26s;
    animation-delay: -6s;
}

.shape-8 {
    width: 50px;
    height: 50px;
    bottom: 10%;
    left: 40%;
    animation-duration: 24s;
    animation-delay: -18s;
}

.shape-9 {
    width: 110px;
    height: 110px;
    top: 5%;
    right: 5%;
    animation-duration: 27s;
    animation-delay: -3s;
}

.shape-10 {
    width: 35px;
    height: 35px;
    top: 70%;
    right: 40%;
    animation-duration: 19s;
    animation-delay: -14s;
}

.shape-11 {
    width: 75px;
    height: 75px;
    bottom: 30%;
    left: 15%;
    animation-duration: 31s;
    animation-delay: -9s;
}

.shape-12 {
    width: 95px;
    height: 95px;
    top: 35%;
    right: 25%;
    animation-duration: 23s;
    animation-delay: -16s;
}

.shape-13 {
    width: 45px;
    height: 45px;
    bottom: 5%;
    right: 10%;
    animation-duration: 21s;
    animation-delay: -7s;
}

.shape-14 {
    width: 65px;
    height: 65px;
    top: 25%;
    left: 35%;
    animation-duration: 29s;
    animation-delay: -11s;
}

.shape-15 {
    width: 85px;
    height: 85px;
    bottom: 15%;
    right: 35%;
    animation-duration: 33s;
    animation-delay: -20s;
}

@keyframes floatMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, -100px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50px, -200px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translate(-150px, -100px) rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.3;
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.logo:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--foreground);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-btn:hover {
    background: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.nav-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    color: var(--foreground);
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--background) 0%, var(--section-bg) 100%);
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--foreground);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Section Styles */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.gif-wrap {
  width: 100%;
  max-width: 500px; /* change as needed */
  margin: 0 auto;
  display: block;
}

.gif-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px; /* optional */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08); /* optional */
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.work-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.work-image {
    position: relative;
    overflow: hidden;
}

.work-image video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}

.video-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, hsl(250, 84%, 54%, 0.1), hsl(280, 100%, 70%, 0.1));
    opacity: 0;
    transition: var(--transition-smooth);
}

.work-card:hover .video-preview::after {
    opacity: 1;
}

.work-content {
    padding: 2rem;
}

.work-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.work-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.work-tools {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Wrapper for horizontal alignment */
.work-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem; /* spacing between the two cards */
  margin-top: 2rem;
}

/* Make vertical videos narrower */
.vertical-card {
  flex: 1 1 50%;
  max-width: 400px;
}

/* Ensure vertical GIFs fit properly */
.vertical-card .gif-img.vertical {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .work-row {
    flex-direction: column;
    align-items: center;
  }

  .vertical-card {
    max-width: 100%;
  }
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--section-bg) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: var(--primary-glow);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .work-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}