/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0B0D10;
    --gold-primary: #D4AF37;
    --gold-light: #E3C878;
    --warm-white: #F7F5EF;
    --gold-glow: rgba(212, 175, 55, 0.6);
    --neural-blue: #1e3a8a;
    --spacing-unit: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--warm-white);
    background-color: var(--primary-dark);
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 13, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--warm-white);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo:hover .logo-glow {
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--warm-white);
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.neural-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridFloat 20s ease-in-out infinite;
}

@keyframes gridFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
}

.light-beam {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 2px;
    height: 200%;
    background: linear-gradient(to bottom, transparent, var(--gold-primary), transparent);
    transform: translateX(-50%) rotate(15deg);
    animation: beamPulse 4s ease-in-out infinite;
}

@keyframes beamPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--gold-glow) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, var(--gold-glow) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, var(--gold-glow) 1.5px, transparent 1.5px);
    background-size: 400px 400px, 300px 300px, 500px 500px;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 3rem;
}

.logo-animation {
    position: relative;
    display: inline-block;
}

.logo-main {
    font-size: 4rem;
    font-weight: 200;
    color: var(--warm-white);
    letter-spacing: 0.1em;
    display: block;
}

.logo-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    animation: logoReveal 2s ease-out 0.5s forwards;
}

@keyframes logoReveal {
    to { width: 100%; }
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--warm-white);
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(247, 245, 239, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Section Styles */
.section-intro {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 200;
    color: var(--warm-white);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.section-description {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(247, 245, 239, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 8rem 0;
    position: relative;
}

.section-content {
    position: relative;
    z-index: 2;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.pillar {
    position: relative;
    padding: 3rem;
    background: rgba(11, 13, 16, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.pillar:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.pillar-icon {
    margin-bottom: 2rem;
    position: relative;
}

.neural-icon, .circuit-icon {
    width: 60px;
    height: 60px;
    position: relative;
}

.neural-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, var(--gold-primary) 3px, transparent 3px),
        radial-gradient(circle at 70% 30%, var(--gold-primary) 2px, transparent 2px),
        radial-gradient(circle at 50% 70%, var(--gold-primary) 2.5px, transparent 2.5px);
    background-size: 100% 100%;
}

.neural-icon::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 1px;
    background: var(--gold-primary);
    transform: rotate(45deg);
}

.circuit-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(var(--gold-primary) 2px, transparent 2px),
        linear-gradient(90deg, var(--gold-primary) 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 0, 0 0;
}

.pillar-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.pillar-description {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(247, 245, 239, 0.8);
    line-height: 1.7;
}

.pillar-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--gold-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.pillar:hover .pillar-glow {
    opacity: 0.3;
}

/* What We Build Section */
.build {
    padding: 8rem 0;
    background: rgba(11, 13, 16, 0.95);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    position: relative;
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-frame {
    position: relative;
    height: 250px;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

.project-visual {
    width: 100%;
    height: 100%;
    position: relative;
}

.ai-visual {
    background: 
        radial-gradient(circle at 30% 40%, var(--gold-primary) 2px, transparent 2px),
        radial-gradient(circle at 70% 60%, var(--gold-primary) 1.5px, transparent 1.5px),
        linear-gradient(45deg, rgba(212, 175, 55, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(212, 175, 55, 0.1) 25%, transparent 25%);
    background-size: 40px 40px, 30px 30px, 20px 20px, 20px 20px;
    animation: aiPulse 3s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.design-visual {
    background: 
        conic-gradient(from 0deg, transparent, var(--gold-primary), transparent),
        radial-gradient(circle at center, transparent 40%, rgba(212, 175, 55, 0.2) 41%, rgba(212, 175, 55, 0.2) 60%, transparent 61%);
    animation: designRotate 8s linear infinite;
}

@keyframes designRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.software-visual {
    background: 
        linear-gradient(90deg, var(--gold-primary) 1px, transparent 1px),
        linear-gradient(var(--gold-primary) 1px, transparent 1px);
    background-size: 15px 15px;
    animation: softwareFlow 4s ease-in-out infinite;
}

@keyframes softwareFlow {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 15px 15px; }
}

.frame-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gold-primary), transparent, var(--gold-primary));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.project-card:hover .frame-glow {
    opacity: 0.5;
}

.project-info {
    text-align: center;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.project-description {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(247, 245, 239, 0.8);
    line-height: 1.6;
}

/* Philosophy Section */
.philosophy {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(11, 13, 16, 0.95) 0%, rgba(30, 58, 138, 0.1) 100%);
}

.philosophy-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.philosophy-pattern {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(30deg, transparent 40%, rgba(212, 175, 55, 0.05) 41%, rgba(212, 175, 55, 0.05) 42%, transparent 43%),
        linear-gradient(150deg, transparent 40%, rgba(212, 175, 55, 0.05) 41%, rgba(212, 175, 55, 0.05) 42%, transparent 43%);
    background-size: 100px 100px;
    animation: patternShift 20s ease-in-out infinite;
}

@keyframes patternShift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.philosophy-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.philosophy-quote {
    margin: 3rem 0;
}

.quote-text {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--gold-primary);
    line-height: 1.6;
    position: relative;
    padding-left: 2rem;
}

.quote-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--gold-primary);
    opacity: 0.5;
}

.philosophy-principles {
    margin-top: 3rem;
}

.principle {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.principle-marker {
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--gold-glow);
}

.principle h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--warm-white);
    margin-bottom: 0.5rem;
}

.principle p {
    font-weight: 300;
    color: rgba(247, 245, 239, 0.7);
    line-height: 1.6;
}

.philosophy-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.golden-spiral {
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    position: relative;
    animation: spiralGlow 4s ease-in-out infinite;
}

.golden-spiral::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    animation: spiralGlow 4s ease-in-out infinite reverse;
}

.golden-spiral::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 35%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, var(--gold-primary), transparent);
    border-radius: 50%;
    animation: spiralPulse 2s ease-in-out infinite;
}

@keyframes spiralGlow {
    0%, 100% { box-shadow: 0 0 20px var(--gold-glow); }
    50% { box-shadow: 0 0 40px var(--gold-glow); }
}

@keyframes spiralPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--primary-dark);
    position: relative;
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact-intro {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-description {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(247, 245, 239, 0.7);
    margin-top: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-method {
    position: relative;
    padding: 2rem;
    background: rgba(11, 13, 16, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.contact-method:hover {
    border-color: var(--gold-primary);
    transform: translateX(10px);
}

.method-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--gold-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.contact-method:hover .method-glow {
    opacity: 0.2;
}

.contact-method h4 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.contact-method p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--warm-white);
}

.form-container {
    position: relative;
}

.luminous-form {
    padding: 3rem;
    background: rgba(11, 13, 16, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--warm-white);
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.4s ease;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(247, 245, 239, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-glow);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--gold-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.form-group input:focus + .input-glow,
.form-group textarea:focus + .input-glow {
    opacity: 1;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-submit:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.btn-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
    transition: left 0.6s ease;
}

.btn-submit:hover .btn-beam {
    left: 100%;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 200;
    color: var(--warm-white);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(247, 245, 239, 0.6);
    letter-spacing: 0.02em;
}

.footer-section p {
    color: rgba(247, 245, 239, 0.5);
    font-weight: 300;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    position: relative;
}

.footer-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0 auto 2rem;
}

.footer-bottom p {
    color: rgba(247, 245, 239, 0.4);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pillars-grid {
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .logo-main {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pillar {
        padding: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .quote-text {
        font-size: 1.25rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .logo-main {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about, .build, .philosophy, .contact {
        padding: 4rem 0;
    }
    
    .pillar {
        padding: 1.5rem;
    }
    
    .project-frame {
        height: 200px;
    }
    
    .luminous-form {
        padding: 2rem;
    }
    
    .principle {
        gap: 1rem;
    }
    
    .golden-spiral {
        width: 150px;
        height: 150px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--gold-glow);
    color: var(--primary-dark);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}