/* ACN Agency - Classic Physics Architecture #060 */
/* ============================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* CSS Variables */
:root {
    --burgundy: #722f37;
    --burgundy-dark: #5a252c;
    --burgundy-light: #8b3a42;
    --gold: #c9a962;
    --gold-light: #d4b978;
    --gold-dark: #b8944d;
    --cream: #faf3e0;
    --cream-dark: #f0e6c8;
    --espresso: #3c2415;
    --espresso-light: #5a3a22;
    --white: #ffffff;
    --shadow: rgba(60, 36, 21, 0.15);
    --shadow-dark: rgba(60, 36, 21, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--espresso);
    background: var(--cream);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--espresso);
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }

a {
    color: var(--burgundy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

/* Physics Canvas Background */
#physics-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--espresso) 0%, var(--burgundy-dark) 100%);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow-dark);
    border-bottom: 3px solid var(--gold);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--cream);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
    width: 80%;
}

nav a:hover {
    color: var(--gold);
}

/* Golden Ratio Container */
.golden-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background: linear-gradient(180deg, 
        rgba(114, 47, 55, 0.05) 0%, 
        rgba(250, 243, 224, 1) 50%,
        rgba(201, 169, 98, 0.05) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--gold-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--gold);
    border-radius: 30px;
    background: rgba(201, 169, 98, 0.1);
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--espresso) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--espresso-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    color: var(--cream);
    box-shadow: 0 8px 30px rgba(114, 47, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(114, 47, 55, 0.5);
    color: var(--cream);
}

.btn-secondary {
    background: transparent;
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
}

.btn-secondary:hover {
    background: var(--burgundy);
    color: var(--cream);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--espresso);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(201, 169, 98, 0.5);
    color: var(--espresso);
}

/* Sacred Geometry Divider */
.geometry-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
}

.geometry-divider::before,
.geometry-divider::after {
    content: '';
    height: 1px;
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.geometry-symbol {
    width: 40px;
    height: 40px;
    position: relative;
    animation: rotate-slow 20s linear infinite;
}

.geometry-symbol::before {
    content: '◆';
    font-size: 1.5rem;
    color: var(--gold);
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Section Styling */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-dark {
    background: linear-gradient(135deg, var(--espresso) 0%, var(--burgundy-dark) 100%);
    color: var(--cream);
}

.section-dark h2,
.section-dark h3 {
    color: var(--cream);
}

.section-cream {
    background: var(--cream);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--espresso-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-dark .section-subtitle {
    color: var(--cream-dark);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(201, 169, 98, 0.2);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold), var(--burgundy));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--shadow-dark);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--gold);
    box-shadow: 0 8px 25px rgba(114, 47, 55, 0.3);
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    color: var(--espresso-light);
    margin-bottom: 1.5rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--espresso-light);
}

.feature-list li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(60, 36, 21, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--cream);
    font-size: 1.2rem;
}

.gallery-overlay p {
    color: var(--gold);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--espresso);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px var(--shadow);
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--espresso);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(201, 169, 98, 0.3);
    border-radius: 12px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    background: var(--cream);
    color: var(--espresso);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--espresso) 0%, var(--burgundy-dark) 100%);
    color: var(--cream);
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 4px solid var(--gold);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--cream-dark);
    line-height: 2;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--cream-dark);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 243, 224, 0.2);
    margin-top: 2rem;
}

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

/* Sacred Geometry Decorations */
.sacred-geo {
    position: absolute;
    pointer-events: none;
    opacity: 0.05;
}

.sacred-geo svg {
    width: 100%;
    height: 100%;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(odd) {
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Golden Ratio Spiral Background */
.golden-spiral {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0.03;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Pendulum Animation */
.pendulum-container {
    position: absolute;
    top: 20px;
    right: 10%;
    width: 100px;
    height: 200px;
    pointer-events: none;
    opacity: 0.15;
}

.pendulum {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 150px;
    background: var(--gold);
    transform-origin: top center;
    animation: pendulum 3s ease-in-out infinite;
}

.pendulum-bob {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--gold);
    border-radius: 50%;
}

@keyframes pendulum {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(30deg); }
}

/* Chain Effect */
.chain-container {
    position: absolute;
    bottom: 0;
    left: 5%;
    pointer-events: none;
    opacity: 0.1;
}

.chain-link {
    width: 20px;
    height: 30px;
    border: 3px solid var(--gold);
    border-radius: 10px;
    position: absolute;
    animation: chain-fall 4s ease-in-out infinite;
}

.chain-link:nth-child(1) { animation-delay: 0s; }
.chain-link:nth-child(2) { animation-delay: 0.2s; }
.chain-link:nth-child(3) { animation-delay: 0.4s; }
.chain-link:nth-child(4) { animation-delay: 0.6s; }
.chain-link:nth-child(5) { animation-delay: 0.8s; }

@keyframes chain-fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(300px) rotate(360deg); opacity: 0; }
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.stat-label {
    color: var(--cream-dark);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Docs Page Styles */
.docs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.doc-section {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.doc-section h2 {
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.doc-section h3 {
    color: var(--espresso);
    margin: 1.5rem 0 1rem;
}

.doc-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
    color: var(--espresso-light);
}

.doc-section code {
    background: var(--cream);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--burgundy);
}

.doc-section pre {
    background: var(--espresso);
    color: var(--cream);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1rem 0;
}

.doc-section pre code {
    background: transparent;
    color: var(--cream);
    padding: 0;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(114, 47, 55, 0.3);
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--espresso-light);
    margin: 0;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 15px 50px var(--shadow);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--gold);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--espresso);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px var(--shadow-dark);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-price {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--burgundy);
    margin: 1.5rem 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--espresso-light);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--espresso-light);
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}
