/* ============================================
   VirtuaX Studio - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #cccccc;
    --accent: #f5f5f5;
    --border: #2a2a2a;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   Navigation
   ============================================ */

nav {
    /*position: fixed;*/
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: var(--black);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.logo svg {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-cta {
    display: flex;
    gap: 1rem;
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    background: var(--white);
    color: var(--black);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-nav:hover {
    background: var(--accent);
}

.btn-nav.outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-nav.outline:hover {
    background: var(--white);
    color: var(--black);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    /*min-height: 100vh;*/
    display: flex;
    align-items: center;
    padding: 100px 5% 0;
    background: var(--white);
}

.hero-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-tag {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-tag::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gray);
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--gray);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

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

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

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

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

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

.hero-character {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-character img, .portfolio-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-character::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgb(255 255 255 / 3%) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   Featured Grid
   ============================================ */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
    margin: 0;
}

.featured-item {
    background: var(--white);
    padding: 4rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.featured-item:hover {
    background: var(--accent);
}

.featured-item.dark {
    background: var(--black);
    color: var(--white);
}

.featured-item.dark:hover {
    background: var(--dark);
}

.featured-item.with-image {
    padding: 0;
    min-height: 600px;
}

.featured-image {
    width: 100%;
    height: 100%;
    max-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.featured-item.dark .featured-label {
    color: var(--light-gray);
}

.featured-title {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.featured-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
    max-width: 500px;
}

.featured-item.dark .featured-description {
    color: var(--light-gray);
}

/* ============================================
   Section Styles
   ============================================ */

.section {
    padding: 8rem 5%;
    background: var(--white);
}

.section.dark {
    background: var(--black);
    color: var(--white);
}

.section-header {
    max-width: 800px;
    margin-bottom: 5rem;
}

.section-tag {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section.dark .section-tag {
    color: var(--light-gray);
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -2px;
}

/* ============================================
   Services Section
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--black);
    transform: translateY(-5px);
}

.section.dark .service-card {
    border-color: var(--border);
}

.section.dark .service-card:hover {
    border-color: var(--white);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    display: block;
    stroke: var(--black);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.section.dark .service-icon {
    stroke: var(--white);
}

.service-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.service-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.section.dark .service-description {
    color: var(--light-gray);
}

/* ============================================
   Portfolio Section
   ============================================ */

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

.portfolio-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    background: var(--accent);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.portfolio-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
    padding: 6rem 5%;
    background: var(--black);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Sora', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-gray);
    letter-spacing: 1px;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 8rem 5%;
    background: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 5%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
}

.footer-bottom a {
    color: var(--gray);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--gray);
    transition: color 0.3s ease;
    display: inline-flex;
}

.footer-social a:hover {
    color: var(--white);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ============================================
   Mobile Menu
   ============================================ */

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ============================================
   Animations
   ============================================ */

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
}

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

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        height: 400px;
    }

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

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

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

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding-top: 100px;
    }

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

    .featured-item {
        padding: 3rem 2rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom a {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    nav,
    .mobile-toggle,
    .footer-social {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
