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

:root {
    /* Colors - Dark Theme */
    --background: hsl(240, 3%, 4%);
    --foreground: hsl(0, 0%, 97%);
    --foreground-90: hsla(0, 0%, 97%, 0.9);
    --border: hsl(240, 3%, 11%);
    --card: hsl(240, 3%, 6%);
    --card-border: hsl(240, 3%, 9%);
    --primary: hsl(203, 89%, 61%);
    --primary-foreground: hsl(0, 0%, 98%);
    --primary-hover: hsl(203, 89%, 71%);
    --muted-foreground: hsl(0, 0%, 71%);
    --accent: hsl(203, 6%, 14%);
    --accent-foreground: hsl(0, 0%, 97%);
    --footer-bg: hsl(0, 0%, 7%);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --radius: 0.375rem;
    
    /* Shadows */
    --shadow-xl: 0px 2px 0px 0px hsl(0 0% 0% / 0.35), 0px 8px 10px -1px hsl(0 0% 0% / 0.55);
    --shadow-2xl: 0px 2px 0px 0px hsl(0 0% 0% / 0.60);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(11, 11, 12, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(29, 29, 31, 0.5);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-desktop {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 1.5rem 0;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

/* Mobile Navigation */
.nav-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
}

.hidden {
    display: none;
}

.mobile-menu {
    background-color: var(--background);
    border-bottom: 1px solid rgba(29, 29, 31, 0.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 400px;
}

.mobile-nav-list {
    list-style: none;
    padding: 1rem 1.5rem;
}

.mobile-nav-list li {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: rgba(63, 169, 245, 0.1);
    color: var(--foreground);
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: block;
    }
    
    .nav-mobile,
    .mobile-menu {
        display: none !important;
    }
}

/* Main Content */
#main-content {
    padding-top: 5rem;
}

.page {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page.active {
    display: block;
    opacity: 1;
}

/* Home Page */
.home-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gradient-circle {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    filter: blur(96px);
}

.gradient-circle-1 {
    top: 25%;
    left: 25%;
    background-color: rgba(63, 169, 245, 0.05);
}

.gradient-circle-2 {
    bottom: 25%;
    right: 25%;
    background-color: rgba(63, 169, 245, 0.03);
}

.home-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.home-title {
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
}

.home-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--foreground-90);
    line-height: 1.6;
    max-width: 960px;
    margin: 0 auto 4rem;
}

.home-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--muted-foreground);
    line-height: 1.6;
    max-width: 768px;
    margin: 0 auto 4rem;
}

.home-cta {
    padding-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-lg {
    padding: 1.75rem 2.5rem;
    font-size: 1.125rem;
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10rem 1.5rem 5rem;
}

.page-header {
    text-align: center;
    margin-bottom: 8rem;
}

.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.page-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--muted-foreground);
    line-height: 1.6;
    max-width: 768px;
    margin: 0 auto;
}

/* Projects */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 10rem;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
}

.placeholder-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--card) 0%, var(--card) 50%, rgba(15, 15, 16, 0.5) 100%);
    border: 1px solid rgba(29, 29, 31, 0.3);
    color: var(--muted-foreground);
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-square.centered {
    max-width: 768px;
    margin: 0 auto;
}

.placeholder-icon {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.placeholder-label {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    opacity: 0.5;
}

.project-content {
    text-align: center;
    max-width: 768px;
    margin: 0 auto;
}

.project-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.project-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.tag {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: rgba(203, 206, 214, 0.5);
    color: var(--accent-foreground);
    border-radius: 9999px;
}

/* Video Placeholder */
.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--card) 0%, var(--card) 50%, rgba(15, 15, 16, 0.5) 100%);
    border: 1px solid rgba(29, 29, 31, 0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, var(--card) 0%, var(--card) 40%, rgba(63, 169, 245, 0.05) 100%);
}

.play-button {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: rgba(63, 169, 245, 0.1);
    border: 2px solid rgba(63, 169, 245, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: rgba(180, 180, 180, 0.6);
}

/* Gallery */
.gallery-section {
    margin-top: 8rem;
}

.gallery-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.gallery-item {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--card) 0%, rgba(15, 15, 16, 0.5) 100%);
    border: 1px solid rgba(29, 29, 31, 0.3);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(63, 169, 245, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

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

.gallery-icon {
    color: rgba(63, 169, 245, 0.3);
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.gallery-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 10;
}

.gallery-item-platform {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    position: relative;
    z-index: 10;
}

/* Footer */
#footer {
    border-top: 1px solid rgba(29, 29, 31, 0.5);
    background-color: var(--footer-bg);
    margin-top: 8rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.footer-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-quote {
    max-width: 768px;
    margin: 0 auto 2rem;
}

.footer-quote p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted-foreground);
    font-style: italic;
    line-height: 1.6;
}

.footer-copy {
    font-size: 0.875rem;
    color: rgba(180, 180, 180, 0.6);
}

/* Fixed Contact Button */
.contact-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

.contact-button:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-2px);
}

.gallery-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.fade-in-up:nth-child(1) { animation-delay: 0s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }

/* Responsive */
@media (min-width: 1024px) {
    .page-container {
        padding: 12rem 4rem 8rem;
    }
    
    .home-container {
        padding: 4rem 6rem;
    }
}

@media (min-width: 1280px) {
    #main-content {
        padding-top: 6rem;
    }
}
