/* Base Styles & Custom Properties */
:root {
    --color-midnight: #0f172a;
    --color-midnight-light: #1e293b;
    --color-mint: #a7f3d0;
    --color-mint-dark: #6ee7b7;
    --color-cream: #f8fafc;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-midnight);
}

::-webkit-scrollbar-thumb {
    background: var(--color-mint);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-mint-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--color-mint);
    color: var(--color-midnight);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--color-mint-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(167, 243, 208, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--color-mint);
    color: var(--color-mint);
    transform: translateY(-2px);
}

/* Sidebar Navigation */
.sidebar {
    background: var(--color-midnight-light);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-container {
    transition: all 0.4s ease;
}

.logo-icon {
    transition: all 0.4s ease;
}

.logo-icon:hover {
    transform: rotate(10deg) scale(1.05);
    box-shadow: 0 0 30px rgba(167, 243, 208, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(167, 243, 208, 0.1), transparent);
    transition: width 0.4s ease;
}

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

.nav-dot {
    transition: all 0.4s ease;
}

.nav-link:hover .nav-dot,
.nav-link.active .nav-dot {
    background: var(--color-mint);
    box-shadow: 0 0 10px rgba(167, 243, 208, 0.5);
    transform: scale(1.3);
}

.nav-link.active .nav-text {
    color: var(--color-mint) !important;
}

/* Social Links */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(167, 243, 208, 0.3);
}

.mobile-menu-btn.active #menu-icon {
    transform: rotate(90deg);
}

/* Mobile Menu */
.mobile-menu {
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-bg {
    transition: transform 0.1s linear;
}

.scroll-line {
    animation: pulse 2s ease-in-out infinite;
}

/* Section Styles */
section {
    position: relative;
}

/* About Section */
.about-img-main {
    position: relative;
}

.about-img-main::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(167, 243, 208, 0.2);
    z-index: -1;
    transition: all 0.5s ease;
}

.about-img-main:hover::before {
    top: -10px;
    left: -10px;
}

.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(8px);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--color-mint);
    transform: rotate(10deg);
}

.feature-item:hover .feature-icon svg {
    color: var(--color-midnight);
}

/* Menu Section */
.menu-item {
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.menu-item:hover {
    padding-left: 12px;
    border-bottom-color: rgba(167, 243, 208, 0.2);
}

/* Gallery Section */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Contact Section */
.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon {
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--color-mint);
    transform: rotate(10deg);
}

.contact-item:hover .contact-icon svg {
    color: var(--color-midnight);
}

/* Form Styles */
.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
    border-color: var(--color-mint);
    background: rgba(167, 243, 208, 0.03);
    box-shadow: 0 0 0 3px rgba(167, 243, 208, 0.1);
}

.form-input:focus + .form-label,
.form-group:focus-within .form-label {
    color: var(--color-mint);
}

textarea.form-input {
    resize: none;
}

/* Footer */
.social-link-footer {
    transition: all 0.3s ease;
}

.social-link-footer:hover {
    transform: translateY(-3px);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1023px) {
    .desktop-nav {
        display: none !important;
    }
    
    .sidebar {
        width: 6rem;
    }
    
    .logo-text,
    .social-links-desktop {
        display: none;
    }
}

@media (max-width: 767px) {
    .about-img-main img {
        height: 350px;
    }
    
    .about-img-main::before {
        display: none;
    }
    
    .about-img-main .absolute {
        display: none;
    }
    
    .gallery-item.row-span-2 {
        row-span: 1;
    }
    
    .gallery-item.col-span-2 {
        col-span: 1;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}
