/* =========================================================================
   VARIABLES & DESIGN TOKENS
   ========================================================================= */
:root {
    --bg-main: #0A0F1A;
    --bg-secondary: #0F1C2E;
    --accent-color: #5CA9FF;
    --accent-glow: rgba(92, 169, 255, 0.4);
    --text-primary: #FFFFFF;
    --text-muted: #8E9FB8;

    --glass-bg: rgba(15, 28, 46, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --chrome-reflection: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.05) 100%);

    --font-main: 'Outfit', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   RESET & GLOBAL BASE
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cinematic radial gradients for depth instead of noise */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle at 15% 50%, rgba(92, 169, 255, 0.04), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.02), transparent 50%);
    transform: translateZ(0);
    /* Force GPU composite layer */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1,
h2,
h3 {
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FFFFFF, #B0C4DE);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property for compatibility */
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3.5rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* =========================================================================
   LAYOUT & SHARED COMPONENTS
   ========================================================================= */
.section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    contain: layout style;
    /* Limits reflow/repaint scope to this section */
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--chrome-reflection);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.dark-glass {
    background: rgba(15, 28, 46, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-border {
    border: 1px solid var(--glass-border);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(92, 169, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(92, 169, 255, 0.6);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(92, 169, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.btn-sm:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(92, 169, 255, 0.3);
}

.glass-glow-hover {
    transition: var(--transition-slow);
}

.glass-glow-hover:hover {
    border-color: rgba(92, 169, 255, 0.5);
    box-shadow: 0 0 40px rgba(92, 169, 255, 0.1);
    transform: translateY(-5px);
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-main) 0%, rgba(10, 15, 26, 0) 100%);
    backdrop-filter: blur(10px) mask(linear-gradient(black, transparent));
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-sm) {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-sm):hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* =========================================================================
   1) HERO SECTION
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

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

.hero-visual .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-slow);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-visual .image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.9);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    z-index: 1;
    filter: blur(60px);
}

/* =========================================================================
   2) WORK SECTION
   ========================================================================= */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Restored smooth scroll for track */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    padding: 60px calc(50% - 160px);
    /* Space for box shadows and centering */
    align-items: center;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.visual-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    padding: 10px;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    opacity: 0.45;
    transform: scale(0.88) translateZ(0);
    will-change: transform, opacity;
}

.visual-card.active {
    opacity: 1;
    transform: scale(1.12) translateZ(0);
    z-index: 2;
}

.visual-card:not(.active):hover {
    opacity: 0.65;
}

.visual-card.active:hover .card-image-wrapper img {
    transform: scale(1.05);
    /* slightly zoom inner image on hover */
}

.carousel-btn {
    position: absolute;
    top: calc(50% - 10px);
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.card-image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 1rem;
    background: rgba(10, 15, 26, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-fast);
    border: 1px solid var(--glass-border);
}

.visual-card:hover .card-label {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   3) SERVICES SECTION
   ========================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--accent-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* =========================================================================
   4) ABOUT SECTION
   ========================================================================= */
.about {
    display: flex;
    justify-content: center;
}

.about-content {
    max-width: 900px;
    padding: 5rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-size: 1.5rem !important;
    color: var(--text-primary) !important;
    font-weight: 500;
    margin-top: 3rem;
}

/* =========================================================================
   5) CONTACT SECTION
   ========================================================================= */
.contact-container {
    padding: 6rem 4rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.contact-info {
    flex: 1;
    text-align: left;
}

.contact-portrait {
    flex: 0 0 350px;
    display: flex;
    justify-content: flex-end;
}

.portrait-wrapper {
    position: relative;
    width: 300px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.portrait-glow {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    z-index: 1;
    filter: blur(40px);
    pointer-events: none;
}

.portrait-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: var(--transition-slow);
}

.portrait-wrapper:hover img {
    transform: scale(1.05);
}

.contact-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200px;
    background: var(--accent-color);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
}

.contact-container>div:not(.contact-glow) {
    position: relative;
    z-index: 1;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.contact-link .icon {
    font-weight: 700;
    color: var(--accent-color);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.5;
}


/* =========================================================================
   CHROME HEARTS AESTHETIC
   ========================================================================= */

/* Gothic ornamental section dividers */
.gothic-divider {
    width: 100%;
    height: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: -10px 0;
    /* Pull slightly into adjacent sections for seamless look */
    position: relative;
    z-index: 1;
}

.gothic-divider svg {
    width: 100%;
    height: 70px;
    display: block;
    flex-shrink: 0;
}

/* Navbar gothic cross mark */
.logo-cross {
    display: inline-block;
    margin-right: 8px;
    opacity: 0.75;
    transition: opacity 0.4s ease;
    vertical-align: middle;
    line-height: 1;
}

/* Ghost gothic cross accents on service cards — pure SVG, zero text rendering = no iOS emoji issues */
.service-card::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 18px;
    width: 13px;
    height: 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 17'%3E%3Cpath d='M5.5 0 L7.5 0 L7.5 5.5 L13 5.5 L13 7.5 L7.5 7.5 L7.5 17 L5.5 17 L5.5 7.5 L0 7.5 L0 5.5 L5.5 5.5 Z' fill='%238ab4d4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: ch-cross-shimmer 5s ease-in-out infinite alternate;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 18px;
    width: 10px;
    height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 17'%3E%3Cpath d='M5.5 0 L7.5 0 L7.5 5.5 L13 5.5 L13 7.5 L7.5 7.5 L7.5 17 L5.5 17 L5.5 7.5 L0 7.5 L0 5.5 L5.5 5.5 Z' fill='%237aaad0'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(180deg);
    pointer-events: none;
    animation: ch-cross-shimmer 5s ease-in-out 2.5s infinite alternate;
}

@keyframes ch-cross-shimmer {
    0% {
        opacity: 0.08;
    }

    100% {
        opacity: 0.38;
        filter: drop-shadow(0 0 5px rgba(90, 165, 220, 0.45));
    }
}

/* Hero section: ultra-subtle gothic cross watermark pattern */
.hero {
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M28 5 L32 5 L32 23 L42 23 L42 27 L32 27 L32 55 L28 55 L28 27 L18 27 L18 23 L28 23 Z' fill='%23c0dcf5' opacity='0.45'/%3E%3C/svg%3E");
    background-size: 72px 72px;
    background-repeat: repeat;
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
}

/* =========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================= */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Initial Load Animations */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-content {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .nav-links a:not(.btn-sm) {
        display: none;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .contact-container {
        padding: 4rem 1.5rem;
    }

    .carousel-track {
        padding: 40px calc(50% - 130px);
    }

    .carousel-track .visual-card {
        flex: 0 0 260px;
    }

    .carousel-container {
        padding: 0 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .contact-grid {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-methods {
        justify-content: center;
    }

    .contact-portrait {
        justify-content: center;
        flex: none;
    }
}