/* ===== CODE & CRAFT 2026 - MODERN DESIGN SYSTEM ===== */
:root {
    /* Primary Palette - Sophisticated Dark */
    --primary: #05070b;
    --primary-light: #0a1220;
    --primary-medium: #101827;
    --primary-accent: #1e3a5f;

    /* Accent - Warm Gold/Elegant */
    --accent: #08429a;
    --accent-light: #f1f2f4;
    --accent-dark: #0b3f91;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8f8f8;
    --light-gray: #e8e8e8;
    --mid-gray: #a0a0a0;
    --dark-gray: #555555;
    --text-primary: #0a1220;
    --text-secondary: #666666;
    --text-muted: #999999;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #05070b 0%, #000000 50%, #000000 100%);
    --gradient-accent: linear-gradient(135deg, #052a62 0%, #3fa9ff 50%, #0f6fff 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(15,111,255,0.18);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1280px;
    --container-padding: 2rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

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

ul { list-style: none; }

/* ===== UTILITIES ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: var(--transition-base);
}

.btn:hover::before { transform: translateX(0); }

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    font-weight: 700;
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1.2rem 2.5rem; font-size: 1rem; }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-accent {
    background: rgba(15,111,255,0.18);
    color: var(--accent-dark);
    border: 1px solid rgba(63,169,255,0.35);
}

.badge-dark {
    background: rgba(0,0,0,0.6);
    color: var(--white);
    backdrop-filter: blur(10px);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

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

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--light-gray);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-slow);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.card:hover .card-icon {
    background: var(--accent);
    color: var(--primary);
    transform: rotateY(180deg);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1200px;
    z-index: 1000;
    background: rgba(5, 7, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(5, 7, 11, 0.95);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.12);
}

.header:hover {
    background: rgba(5, 7, 11, 0.98);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    transform: translateX(-50%) translateY(-2px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
}

.logo span { position: relative; }

.logo span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-base);
}

.logo:hover span::after { width: 100%; }

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition-base);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list a {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }

.nav-list a:hover,
.nav-list a.active { color: var(--white); }

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

.nav-cta .btn-sm { padding: 0.5rem 1.2rem; }

.nav-cta .btn-accent {
    background: var(--accent);
    color: var(--white) !important;
    border-color: var(--accent);
    font-weight: 700;
}

.nav-cta .btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 66, 154, 0.3);
}

.nav-cta .btn-accent i {
    color: var(--white);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-base);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
/* ===== HERO BACKGROUNDS FOR ALL PAGES ===== */

/* About Page Hero */
.about-hero {
    position: relative;
    background-image: url('../assets/images/all-hero.png'); /* change path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh; /* adjust as needed */
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

/* Contact Page Hero */
.contact-hero {
    position: relative;
    background-image: url('../assets/images/all-hero.png'); /* change path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

/* Services Page Hero */
.services-hero {
    position: relative;
    background-image: url('../assets/images/all-hero.png'); /* change path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

/* Dark overlay for all hero sections (improves text contrast) */
.about-hero::before,
.contact-hero::before,
.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55); /* adjust darkness */
    z-index: 1;
}

/* Ensure content sits above the overlay */
.about-hero .container,
.contact-hero .container,
.services-hero .container {
    position: relative;
    z-index: 2;
}

/* Optional: additional text styling for these heroes */
.about-hero h1,
.contact-hero h1,
.services-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.about-hero p,
.contact-hero p,
.services-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--mid-gray);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

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

.footer-brand p {
    color: var(--mid-gray);
    margin: 1.5rem 0;
    line-height: 1.8;
    max-width: 300px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

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

.footer-links a {
    color: var(--mid-gray);
    font-size: 0.95rem;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--mid-gray);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 1rem;
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition-base);
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
    border: 2px solid transparent;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-5px) scale(1.05);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(63,169,255,0.45); }
    50% { box-shadow: 0 0 0 15px rgba(201,169,110,0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-cta { display: none; }
}

@media (max-width: 768px) {
    :root { --section-padding: 4rem; --container-padding: 1.5rem; }

    .hamburger { display: flex; }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--primary);      
        color: rgba(255,255,255,0.85);   
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);  
        border-left: 1px solid rgba(255,255,255,0.08);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transition: var(--transition-slow);
    }

    .nav-list.active { right: 0; }

    .nav-list a { font-size: 1.1rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .btn { padding: 0.9rem 1.5rem; }
}

@media (max-width: 480px) {
    :root { --container-padding: 1rem; }
    .section-title { font-size: 1.8rem; }
}
