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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent-1: #f97316;
    --accent-2: #06b6d4;
    --accent-3: #84cc16;
    --accent-4: #f43f5e;
    --accent-5: #8b5cf6;
    --dark: #1e1b4b;
    --light: #f8fafc;
    --gray: #64748b;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-4) 0%, var(--accent-1) 50%, var(--accent-5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-4);
}

.nav-links a:nth-child(2):hover { color: var(--primary); }
.nav-links a:nth-child(3):hover { color: var(--accent-2); }
.nav-links a:nth-child(4):hover { color: var(--accent-1); }
.nav-links a:nth-child(5):hover { color: var(--accent-3); }
.nav-links a:nth-child(6):hover { color: var(--accent-5); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-4), var(--accent-1));
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 25%, #fecaca 50%, #e0e7ff 75%, #ddd6fe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent-4) 0%, var(--accent-1) 25%, var(--primary) 50%, var(--accent-2) 75%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-4);
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.description {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

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

.skill-tag {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid;
}

.skill-tag:nth-child(5n+1) { background: #fef3c7; color: #d97706; border-color: #fbbf24; }
.skill-tag:nth-child(5n+2) { background: #dbeafe; color: #2563eb; border-color: #60a5fa; }
.skill-tag:nth-child(5n+3) { background: #fce7f3; color: #db2777; border-color: #f472b6; }
.skill-tag:nth-child(5n+4) { background: #d1fae5; color: #059669; border-color: #34d399; }
.skill-tag:nth-child(5n+5) { background: #ede9fe; color: #7c3aed; border-color: #a78bfa; }

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Portfolio Sections */
.portfolio-section {
    padding: 100px 0;
}

/* Colorful alternating backgrounds */
.portfolio-section:nth-child(odd) {
    background: linear-gradient(180deg, #fefce8 0%, #fff 50%, #fefce8 100%);
}

.portfolio-section:nth-child(even) {
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 50%, #f0f9ff 100%);
}

.alt-bg {
    background: linear-gradient(180deg, #fdf4ff 0%, #fff 50%, #fdf4ff 100%) !important;
}

.portfolio-section h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    text-align: center;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* Add decorative colored elements */
.portfolio-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-4));
    margin: 16px auto 0;
    border-radius: 2px;
}

.portfolio-section:nth-child(even) h2::after {
    background: linear-gradient(90deg, var(--primary), var(--accent-2));
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #fef3c7, #fecaca);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:nth-child(3n+1) { background: linear-gradient(135deg, #fef3c7, #fed7aa); }
.gallery-item:nth-child(3n+2) { background: linear-gradient(135deg, #dbeafe, #c7d2fe); }
.gallery-item:nth-child(3n+3) { background: linear-gradient(135deg, #fce7f3, #ddd6fe); }

.gallery-item:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(124, 58, 237, 0.9));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:nth-child(3n+1) .overlay { background: linear-gradient(transparent, rgba(234, 88, 12, 0.9)); }
.gallery-item:nth-child(3n+2) .overlay { background: linear-gradient(transparent, rgba(37, 99, 235, 0.9)); }
.gallery-item:nth-child(3n+3) .overlay { background: linear-gradient(transparent, rgba(219, 39, 119, 0.9)); }

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fbbf24, #f472b6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-section > .container > p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 48px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.contact-item {
    font-size: 1.1rem;
}

.contact-item .label {
    opacity: 0.6;
    margin-right: 8px;
}

.contact-item a {
    color: #fbbf24;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.contact-item a:hover {
    color: #f472b6;
}

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

.social-link {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, #f472b6, #a78bfa);
    color: white;
    border-color: transparent;
}

/* Floating animation for gallery items */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.gallery-item:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.gallery-item:nth-child(even) {
    animation: float 6s ease-in-out infinite reverse;
}

.gallery-item:hover {
    animation: none;
    transform: translateY(-8px) rotate(1deg);
}

/* Video Section */
.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.video-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #f472b6, #a78bfa, #60a5fa);
    border-radius: 19px;
    z-index: -1;
}

.video-container video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-info {
    background: white;
    padding: 24px;
    text-align: center;
}

.video-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.video-info p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f0a1e 0%, #1e1b4b 100%);
    color: rgba(255, 255, 255, 0.5);
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 16px;
    }
    
    .portfolio-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }
}
