:root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --secondary-text-color: #86868b;
    --accent-color: #bf5af2;
    --nav-bg: rgba(0, 0, 0, 0.5); /* Slightly more transparent for glass feel */
    --card-bg: rgba(28, 28, 30, 0.4); /* Glass card background */
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 24px;
    --spacing: 2rem;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(191, 90, 242, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader.loaded {
    transform: translateY(-100%);
}

.preloader-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.preloader-main-logo {
    height: 100px;
    width: auto;
    animation: preloaderPulse 2s infinite ease-in-out;
}

.preloader-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: #bf5af2;
    animation: loadBar 2s forwards ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 10px rgba(191, 90, 242, 0.3)); }
    50% { opacity: 1; filter: drop-shadow(0 0 25px rgba(191, 90, 242, 0.6)); }
}

@keyframes loadBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Ambient Background Blobs */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #000;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.05;
    pointer-events: none;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIvPjwvc3ZnPg==');
}

.spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear;
}

.ambient-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(120px);
    z-index: -1;
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    opacity: 0.2;
    animation: move 20s infinite alternate linear;
}

.blob-1 {
    background: var(--accent-color);
    top: -10%;
    left: -10%;
}

.blob-2 {
    background: #5e5ce6;
    bottom: -10%;
    right: -10%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.blob-3 {
    background: #af52de;
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    animation-duration: 30s;
    animation-delay: -10s;
}

.blob-4 {
    position: absolute;
    background: #5ac8fa;
    width: 25vw;
    height: 25vw;
    top: 20%;
    right: 20%;
    border-radius: 50%;
    opacity: 0.15;
    animation: move 22s infinite alternate linear reverse;
}

@keyframes move {
    from { transform: translate(0, 0) rotate(0deg) scale(1); }
    to { transform: translate(20%, 20%) rotate(360deg) scale(1.2); }
}

/* Glassmorphism Navigation */
.glass {
    background-color: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s var(--transition);
}

#navbar.scrolled {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(0, 0, 0, 0.5);
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out, height 0.4s var(--transition), background-color 0.4s var(--transition), backdrop-filter 0.4s var(--transition);
}

#navbar.nav-visible {
    opacity: 1;
    pointer-events: all;
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

#main-logo {
    height: 48px; /* Increased from 32px */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s var(--transition);
}

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

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

.btn-nav-cta {
    padding: 10px 24px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s var(--transition);
    border: 1px solid rgba(255, 255, 255, 1);
}

.btn-nav-cta:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Sections */
main {
    padding-top: 60px;
}

section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.color-fivem {
    background: linear-gradient(135deg, #fff 0%, #bf5af2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(191, 90, 242, 0.2));
}

.color-tebex {
    background: linear-gradient(135deg, #bf5af2 0%, #5e5ce6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(94, 92, 230, 0.2));
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.5s var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s;
    z-index: -1;
}

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

.btn-primary {
    background: rgba(191, 90, 242, 0.2);
    color: #fff;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px 0 rgba(191, 90, 242, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    background: rgba(191, 90, 242, 0.35);
    box-shadow: 
        0 15px 45px 0 rgba(191, 90, 242, 0.4),
        0 0 20px rgba(191, 90, 242, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.3);
}

.hero-visual {
    margin-top: 80px;
    width: 100%;
    max-width: 1200px;
}

.hero-slider {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .hero-slider { height: 300px; }
}

.hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Custom Swiper Pagination */
.hero-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    background: #bf5af2;
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(191, 90, 242, 0.6);
}

/* Section Styles */
section {
    padding: 120px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Updated Asymmetrical Work Grid */
/* Selected Works & Bento Grid */
.work {
    position: relative;
    padding: 150px 0;
}

.section-bg-text {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: -1;
    letter-spacing: 0.2em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent, rgba(191,90,242,0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
}

.project-magnetic-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(40px);
}

.project-card:hover .project-magnetic-glow {
    opacity: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 4;
}

.card-large { grid-column: span 8; height: 600px; }
.card-medium { grid-column: span 4; height: 600px; }
.card-full { grid-column: span 12; height: 500px; }

.project-number-vertical {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    z-index: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.section-outline-text {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    letter-spacing: 0.5em;
    pointer-events: none;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tags span {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-color);
    border: 1px solid rgba(191, 90, 242, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.1em;
    background: rgba(191, 90, 242, 0.05);
}

@media (max-width: 968px) {
    .card-large, .card-medium, .card-full {
        grid-column: span 12;
        height: 400px;
    }
}

/* Card Specific Spans for Desktop */
@media (min-width: 900px) {
    .work-card.large {
        grid-column: span 7;
    }
    .work-card.medium {
        grid-column: span 5;
        align-self: center; /* Offset effect */
    }
    .work-card.full {
        grid-column: span 12;
    }
}

.work-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    transform-style: preserve-3d;
    position: relative;
}

.work-card:hover .work-image {
    border-color: rgba(191, 90, 242, 0.3);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--transition);
}

.work-card:hover .work-image img {
    transform: scale(1.1) translateZ(30px);
}

.work-info {
    padding: 0;
}

.work-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--secondary-text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.work-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: -0.02em;
    transition: color 0.4s var(--transition);
}

.work-card:hover .work-info h3 {
    color: var(--accent-color);
}

.work-info p {
    color: var(--secondary-text-color);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 450px;
}

/* About Section */
.about {
    text-align: center;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.25rem;
    color: var(--secondary-text-color);
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--secondary-text-color);
    margin: 0 auto 2.5rem;
    max-width: 700px;
}
/* Footer (Contact) */
footer {
    background-color: #000;
    padding: 100px 5% 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.footer-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.footer-content p {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    margin: 0;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom {
    font-size: 0.8rem;
    color: #424245;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards var(--transition);
}

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-cta {
        flex-direction: column;
    }
    .section-header h2 {
        font-size: 2.25rem;
    }
    .nav-links {
        display: none;
    }
}

/* Maintenance Mode Styles */
#maintenance-site {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px;
}

section.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px;
}

.maintenance-container {
    max-width: 600px;
    z-index: 10;
}

.maint-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.maint-logo {
    height: 90px;
    width: auto;
}

.maint-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 50px;
}

.maint-tebex-logo {
    height: 60px; /* Tebex logo is taller/vertical, needs more height to match visual weight */
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity 0.3s var(--transition);
}

.maint-social-icon img {
    height: 32px; /* Circular/Rectangular icons look bigger, so we keep them slightly smaller than Tebex */
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity 0.3s var(--transition), transform 0.3s var(--transition);
}

.maint-actions a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.maint-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #86868b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.maint-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-text-color);
    margin-bottom: 48px;
    line-height: 1.6;
}

.maint-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(191, 90, 242, 0.15);
    color: #bf5af2;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    margin: 0 auto 30px;
    animation: spin 1s ease-in-out infinite;
}

.store-link-container {
    display: flex;
    justify-content: center;
}

.store-link {
    transition: transform 0.3s var(--transition);
}

.store-link img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity 0.3s var(--transition);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 42px;
    width: auto;
    transition: transform 0.3s var(--transition);
    display: block;
}

.logo:hover img {
    transform: scale(1.05);
}

.store-link:hover {
    transform: scale(1.1);
}

.store-link:hover img {
    opacity: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .maint-title { font-size: 2.75rem; }
    .maint-subtitle { font-size: 1.1rem; }
}

.maint-socials {
    display: flex;
    gap: 24px;
}

.maint-socials a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Footer Social Icons */
.social-icon-link img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity 0.3s var(--transition);
}

.social-icon-link:hover img {
    opacity: 1;
}
