/* Base Styles and Variables */
:root {
    --celestial-silver: #E8E9EB;
    --midnight-noir: #0A0B0D;
    --stardust-gold: #C0A080;
    --aurora-blue: #7AA0C0;
    --text-primary: var(--celestial-silver);
    --text-secondary: rgba(232, 233, 235, 0.7);
    --spacing-unit: 8px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--midnight-noir);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.15;
}

/* Remove cursor styles */
.cursor {
    display: none;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: calc(var(--spacing-unit) * 3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10,11,13,0.95) 0%, rgba(10,11,13,0) 100%);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

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

.contact-btn {
    color: var(--stardust-gold) !important;
    position: relative;
}

.contact-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--stardust-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-btn:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 0 calc(var(--spacing-unit) * 8);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: calc(var(--spacing-unit) * 12);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.constellation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(122,160,192,0.1) 0%, rgba(10,11,13,0) 70%);
    opacity: 0.5;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-top: calc(var(--spacing-unit) * 2);
}

.scroll-indicator {
    position: absolute;
    bottom: calc(var(--spacing-unit) * 12);
    left: calc(var(--spacing-unit) * 8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 2);
    color: var(--text-secondary);
    opacity: 0.7;
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: var(--text-secondary);
    animation: scrollLine 2s ease-in-out infinite;
    margin-left: 4px;
}

/* Sections */
section {
    min-height: 100vh;
    padding: calc(var(--spacing-unit) * 16) calc(var(--spacing-unit) * 8);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 8);
    width: 100%;
}

.philosophy-item {
    padding: calc(var(--spacing-unit) * 4);
    border: 1px solid rgba(232, 233, 235, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    backdrop-filter: blur(10px);
    transform-origin: center bottom;
    width: 100%;
}

.philosophy-item h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.philosophy-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.philosophy-item:hover {
    transform: translateY(-8px);
    border-color: var(--stardust-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.number {
    color: var(--stardust-gold);
    font-size: 0.9rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: block;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    width: 100%;
}

.service-item {
    padding: calc(var(--spacing-unit) * 4);
    border-bottom: 1px solid rgba(232, 233, 235, 0.1);
    transition: background-color 0.3s ease;
    position: relative;
    width: 100%;
}

.service-item h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-primary);
}

.service-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--stardust-gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-item:hover {
    background: linear-gradient(90deg, rgba(192,160,128,0.03) 0%, rgba(192,160,128,0) 70%);
}

.service-item:hover::before {
    transform: scaleY(1);
}

/* Contact Section */
.contact {
    text-align: center;
}

.locations {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 4);
    margin: calc(var(--spacing-unit) * 8) 0;
}

.contact-link {
    position: relative;
    color: var(--stardust-gold);
    text-decoration: none;
    font-size: 1.2rem;
    padding-bottom: calc(var(--spacing-unit));
    transition: color 0.3s ease;
}

.contact-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--stardust-gold);
    transform-origin: right;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.contact-link:hover::before {
    transform-origin: left;
    transform: scaleX(0);
}

.locations span {
    position: relative;
    cursor: default;
    transition: color 0.3s ease;
}

.locations span:hover {
    color: var(--stardust-gold);
}

.locations span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--stardust-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.locations span:hover::after {
    transform: scaleX(1);
}

/* Footer */
footer {
    padding: calc(var(--spacing-unit) * 8);
    border-top: 1px solid rgba(232, 233, 235, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Animations */
@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1s ease forwards;
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    section {
        padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
    }
    
    .locations {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: calc(var(--spacing-unit) * 4);
    }
}
