/* ==========================================================================
   CSS VARIABLES & THEME SETUP
   ========================================================================== */
   :root {
    /* Foundation Colors */
    --bg:           #FDFBF7;
    --bg-dark:      #0F1117;
    --bg-secondary: #F0EDE8;
    
    /* Typography Colors */
    --ink:          #1C1917;
    --ink-muted:    #78716C;
    
    /* Brand & Accents */
    --accent:       #1C4ED8; /* Deep Blue */
    --accent-warm:  #B45309; /* Amber */
    --accent-teal:  #0D9488; /* From DraftFlow / general use */
    --accent-purple:#7C3AED; /* ShiftCopy theme */
    
    /* Surfaces */
    --surface:      #FFFFFF;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'DM Mono', monospace;
    
    /* Shadows - Physical style */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(28,25,23,0.08), 0 1px 3px rgba(28,25,23,0.04);
    --shadow-lg: 0 12px 24px rgba(28,25,23,0.12), 0 4px 8px rgba(28,25,23,0.04);
    --shadow-hover: 0 20px 30px rgba(28,25,23,0.15), 0 8px 12px rgba(28,25,23,0.05);
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   UTILITY CLASSES & BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #0F766E;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

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

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--ink);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid rgba(28, 25, 23, 0.05);
    transition: background-color 0.3s;
}

/* When navigating over dark section */
.navbar.scrolled-dark {
    background-color: rgba(15, 17, 23, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar.scrolled-dark .nav-brand, .navbar.scrolled-dark .nav-link {
    color: white;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--ink);
    transition: var(--transition);
}

.navbar.scrolled-dark .menu-toggle .bar {
    background-color: white;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

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

.grid-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.availability-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-title .word {
    display: inline-block;
}

.hero-subtext {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.6);
    max-width: 650px;
    margin: 0 auto 3rem;
}

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

.stat-pills-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.stat-pill {
    background-color: var(--surface);
    color: var(--ink);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9375rem;
    box-shadow: var(--shadow-md);
}

.pill-1 {
    transform: rotate(-2deg);
}

/* ==========================================================================
   WORK SECTION
   ========================================================================== */
.work {
    padding: 8rem 0;
    background-color: var(--bg);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    transform: rotate(var(--rotation, 0deg));
}

.project-card:hover {
    transform: translateY(-8px) rotate(0deg);
    box-shadow: var(--shadow-hover);
}

.card-thumbnail {
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.vance-theme { background-color: #18181B; }
.shiftcopy-theme { background-color: #2E1065; }
.draftflow-theme { background-color: #115E59; }
.bongi-theme { background-color: #1a2e10; }
.rashid-theme { background-color: #1a1200; }
.restaurant-theme { background-color: #0D1F0E; }

.thumbnail-wordmark {
    font-family: var(--font-heading);
    color: white;
    font-size: 2rem;
    opacity: 0.8;
    transition: var(--transition);
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}

.project-card:hover .thumbnail-overlay {
    opacity: 1;
}

.project-card:hover .card-thumbnail {
    transform: scale(1.02);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    background-color: var(--surface);
    z-index: 3;
}

.project-tag {
    position: absolute;
    top: -16px;
    right: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    color: white;
    transform: rotate(2deg);
    box-shadow: var(--shadow-sm);
    z-index: 4;
}

.tag-warm { background-color: var(--accent-warm); transform: rotate(-2deg); }
.tag-purple { background-color: var(--accent-purple); transform: rotate(3deg); }
.tag-teal { background-color: var(--accent-teal); transform: rotate(1deg); }

.project-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-desc {
    color: var(--ink-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-stack {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(28,25,23,0.1);
}

.project-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--accent-teal);
    display: inline-flex;
    align-items: center;
}

.project-link:hover {
    color: var(--ink);
}

/* ==========================================================================
   WHO HIRES ME SECTION
   ========================================================================== */
.who-hires {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.buyer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.buyer-card {
    background-color: var(--surface);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.buyer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--stripe, var(--accent));
}

.buyer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.buyer-icon {
    margin-bottom: 1.5rem;
}

.buyer-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.buyer-subtitle {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.buyer-desc {
    color: var(--ink-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.buyer-footer {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-muted);
    border-top: 1px solid rgba(28,25,23,0.05);
    padding-top: 1rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
    padding: 8rem 0;
    background-color: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--surface);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(28,25,23,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: white;
}

.tag-popular { background-color: var(--accent-warm); }
.tag-value { background-color: var(--accent); }

.service-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-price-tag {
    font-family: var(--font-heading);
    color: var(--accent-warm);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-desc {
    color: var(--ink-muted);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.service-bullets {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink);
}

.service-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.service-bullets .check {
    color: var(--accent-teal);
    font-weight: bold;
}

.services-footer {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--ink-muted);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    padding: 8rem 0;
    background-color: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--ink-muted);
}

.about-card {
    background-color: var(--bg-dark);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    color: white;
}

.stack-section:not(:first-child) {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stack-header {
    font-family: var(--font-mono);
    color: var(--accent-teal);
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
}

.stack-list {
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.stack-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.8);
}

.stack-list li:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: var(--accent-teal);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
    position: relative;
    padding: 8rem 0;
    background-color: var(--ink);
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.label-amber {
    color: var(--accent-warm);
}

.text-white {
    color: white;
}

.contact-subtext {
    color: rgba(255,255,255,0.6);
    font-size: 1.125rem;
}

.contact-form-wrapper {
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.1);
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.btn-submit {
    background-color: white;
    color: var(--ink);
    width: 100%;
    padding: 1rem;
}

.btn-submit:hover {
    background-color: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.form-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    font-family: var(--font-body);
}

.hidden {
    display: none !important;
}

.contact-footer {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg);
    border-top: 1px solid rgba(28,25,23,0.1);
    padding: 3rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--ink-muted);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.animate-blur-up {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}

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

/* Add delays using CSS variables set in HTML */
[style*="--delay"] {
    transition-delay: calc(var(--delay) * 0.1s);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

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

    .navbar.scrolled-dark .nav-links {
        background-color: var(--bg-dark);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .stat-pills-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .pill-1 { transform: none; }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }
}
