/* === Custom Properties === */
:root {
    --color-midnight-900: #0A1628;
    --color-midnight-800: #0F1F36;
    --color-mint-500: #5C9E8F;
    --color-mint-300: #9BCDAB;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-midnight-900);
    color: #fff;
    overflow-x: hidden;
}

::selection {
    background: rgba(92, 158, 143, 0.3);
    color: #fff;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-midnight-900);
}
::-webkit-scrollbar-thumb {
    background: rgba(92, 158, 143, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(92, 158, 143, 0.5);
}

/* === Typography === */
.font-cormorant {
    font-family: var(--font-serif);
}
.font-inter {
    font-family: var(--font-sans);
}

/* === Header === */
#header {
    background: transparent;
}

#header.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-mint-300);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-mint-300) !important;
}

/* === Mobile Menu === */
.mobile-link {
    position: relative;
}

/* === Hero === */
.hero-image {
    transition: transform 8s ease;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-image.animate {
    animation: heroZoom 8s ease forwards;
}

/* === Scroll Line === */
.scroll-line {
    background: linear-gradient(to bottom, var(--color-mint-300), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* === Service Cards === */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-mint-500), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(92, 158, 143, 0.05);
}

/* === Fade-in Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* === Button Hover Glow === */
button:hover, a:hover {
    cursor: pointer;
}

/* === Form Styles === */
input:focus, textarea:focus {
    background: rgba(10, 22, 40, 0.7);
}

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

/* === Mobile Menu Transitions === */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* === Menu Lines Animation === */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* === Image Hover === */
.rounded-xl img, .rounded-2xl img {
    transition: transform 0.7s ease;
}

/* === Responsive === */
@media (max-width: 768px) {
    .font-cormorant {
        line-height: 1.1;
    }
}

/* === Print === */
@media print {
    #header, #contact-form, .scroll-line {
        display: none;
    }
    body {
        background: #fff;
        color: #000;
    }
}
