/* ============================================
   PRISM CREATIVE - Custom Styles
   A distinctive, geometric-inspired design
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Primary Colors - Light Orange Theme */
    --color-primary: #E07B39;
    --color-primary-light: #F4A261;
    --color-primary-dark: #C45C1A;
    --color-accent: #F4A261;
    --color-accent-glow: rgba(244, 162, 97, 0.4);
    
    /* Neutrals */
    --color-bg: #0A0A0F;
    --color-bg-elevated: #12121A;
    --color-bg-card: #1A1A24;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(244, 162, 97, 0.3);
    
    /* Text */
    --color-text: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-text-subtle: rgba(255, 255, 255, 0.4);
    
    /* Typography */
    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Sizing */
    --container-max: 1200px;
    --header-height: 80px;
    --section-padding: clamp(80px, 12vh, 140px);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-glow: 0 0 40px var(--color-accent-glow);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   BACKGROUND PATTERN
   ============================================ */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(74, 63, 107, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 127, 212, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(74, 63, 107, 0.15), transparent);
}

.bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 52H0L30 0z' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.5;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1px;
    background: var(--color-accent);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-label {
    padding-left: 0;
}

.section-header .section-label::before {
    display: none;
}

.section-header .section-desc {
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, #FFCF9F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-base);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: var(--color-text);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px var(--color-accent-glow);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.btn-full {
    width: 100%;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 50px;
    height: 38px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #666666;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #1A1A1A;
}

.nav-link.active {
    background: #F5F5F5;
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: var(--color-text) !important;
    margin-left: 1rem;
}

.nav-cta:hover {
    box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1A1A1A;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
    padding: 1.5rem;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-link {
    display: block;
    padding: 1rem;
    font-size: 1rem;
    color: #666666;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.mobile-link:hover {
    background: #F5F5F5;
    color: #1A1A1A;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: calc(var(--header-height) + 4rem) clamp(20px, 5vw, 40px) 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(139, 127, 212, 0.1);
    border: 1px solid rgba(139, 127, 212, 0.2);
    border-radius: 100px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* SDVOSB Badge */
.hero-credentials {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.sdvosb-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sdvosb-icon {
    width: 64px;
    height: 64px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.sdvosb-badge span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Hero Image */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image {
        max-height: 250px;
    }
    
    .hero-credentials {
        justify-content: center;
    }
    
    .sdvosb-badge {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--section-padding) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    padding: 2.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all var(--transition-base);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(244, 162, 97, 0.1) 100%);
    border-color: var(--color-border-hover);
}

.service-card.featured::before {
    opacity: 1;
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    background: var(--color-accent);
    border-radius: 100px;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-accent);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-subtle);
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, var(--color-bg-elevated) 50%, transparent 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-desc {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-desc strong {
    color: var(--color-text);
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-subtle);
}

/* Code Block Visual */
.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 450px;
}

.code-block {
    background: #1E1E2E;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.code-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28CA42; }

.code-content {
    padding: 1.5rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-content .keyword { color: #C678DD; }
.code-content .variable { color: #E06C75; }
.code-content .property { color: #61AFEF; }
.code-content .string { color: #98C379; }

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        justify-content: space-between;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    padding: var(--section-padding) 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-border-hover);
}

.faq-item[open] {
    background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(244, 162, 97, 0.1) 100%);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question span {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    transition: transform var(--transition-base);
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, var(--color-bg-elevated) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item span {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* Contact Form */
.contact-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-sdvosb {
    margin-bottom: 1.5rem;
}

.sdvosb-seal {
    width: 80px;
    height: 80px;
    color: var(--color-accent);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--color-text-subtle);
    font-size: 0.9375rem;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--color-text-subtle);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-text);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-text-subtle);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

