/* Custom Properties & Reset */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #fcfcfc;
    --text-muted: #a1a1aa;
    
    --accent-glow: rgba(147, 197, 253, 0.12); /* Soft celestial blue glow */
    --accent-primary: #f8fafc;
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

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

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

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 600;
}

h1 {
    background: linear-gradient(
        135deg,
        var(--text-main) 0%,
        #93c5fd 50%,
        var(--text-main) 100%
    );
    background-size: 200% auto;
    color: var(--text-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradientShift 8s ease-in-out infinite;
}

@keyframes textGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.gradient-text {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.logo span {
    color: var(--text-muted);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn-primary, .btn-primary-sm, .btn-secondary {
    display: inline-block;
    text-decoration: none;
    border-radius: 100px;
    transition: var(--transition-smooth);
    font-weight: 600;
    cursor: pointer;
}

.btn-primary-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255,255,255,0.15);
}

.btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 1rem auto 2rem auto;
    line-height: 1.6;
    font-weight: 300;
}


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

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 6px;
    background: var(--text-main);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .btn-primary-sm {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* =========================================
   CASE STUDY TEMPLATE STYLES
   ========================================= */

.cs-hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
}

.cs-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cs-meta {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.meta-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.cs-section {
    padding: 120px 0;
}

.alt-bg {
    background-color: var(--bg-card);
}

.cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.reverse-grid {
    direction: rtl;
}

.reverse-grid > * {
    direction: ltr;
}

.cs-text-col p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.cs-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 1rem auto 3rem auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

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

.cs-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.cs-span-2 {
    grid-column: span 2;
}

.image-placeholder {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.cs-feature-image {
    aspect-ratio: 1/1;
}

.cs-wide-image {
    aspect-ratio: 21/9;
}

.gallery-item .image-placeholder {
    aspect-ratio: 4/3;
}

.image-placeholder:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
}

.cs-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.metric-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

.metric-value {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.cs-next-section {
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sub-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.next-project-link {
    text-decoration: none;
    color: var(--text-main);
    display: inline-block;
}

.next-project-link h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    transition: var(--transition-smooth);
}

.next-project-link .arrow {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #93c5fd;
}

.next-project-link:hover .arrow {
    transform: translateX(15px);
}

.next-project-link:hover h2 {
    color: #93c5fd;
}

@media (max-width: 992px) {
    .cs-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .reverse-grid {
        direction: ltr;
    }
    
    .cs-feature-image {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .cs-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cs-span-2 {
        grid-column: span 1;
    }
    
    .cs-wide-image {
        aspect-ratio: 16/9;
    }
    
    .cs-metrics-grid {
        gap: 1rem;
    }
    
    .cs-meta {
        gap: 2rem;
    }
}

/* =========================================
   FOOTER STYLES
   ========================================= */

.footer-section {
    background-color: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 6rem;
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-radius: 20px 20px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 4rem;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: #93c5fd;
}

.social-links .icon {
    width: 24px;
    height: 24px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-contact li {
        justify-content: center;
    }
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.footer-nav, .footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-nav a:hover, .footer-contact address:hover {
    color: var(--text-main);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact .icon {
    width: 18px;
    height: 18px;
    color: var(--text-main);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact address {
    font-style: normal;
}

.live-chat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator {
    position: relative;
    display: flex;
    width: 8px;
    height: 8px;
}

.indicator .dot {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
}

.indicator .ping {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--text-main);
    animation: footerPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

@keyframes footerPing {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
