/* ========================================
   Genesis Global Inc - Custom Styles
   ======================================== */

/* Skip link - hidden until focused */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d4a84b;
    color: #1a1a1a;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Typography
   ======================================== */

/* Display font for headings */
.font-display {
    font-family: 'Playfair Display', serif;
}

/* Sans font */
.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #525252;
}

/* ========================================
   Animations
   ======================================== */

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animation-delay-300 {
    animation-delay: 0.3s;
}

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Navigation
   ======================================== */

#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    overflow: visible;
}

#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-logo-text {
    color: white;
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

#navbar.scrolled .nav-link:hover {
    color: white;
}

/* Ensure logo is never clipped */
#navbar img {
    max-height: none;
    object-fit: contain;
}

/* ========================================
   Hero Section
   ======================================== */

#hero {
    min-height: 100vh;
}

/* ========================================
   Service Cards
   ======================================== */

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4a84b, #2d2d2d);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-secondary {
    position: relative;
    overflow: hidden;
}

/* ========================================
   Form Styles
   ======================================== */

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.3);
}

#contact-form select option {
    background-color: white;
    color: #1a1a1a;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* ========================================
   Loading States
   ======================================== */

.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(26, 26, 26, 0.3);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Success/Error States
   ======================================== */

.form-success {
    background-color: #10b981 !important;
    color: white !important;
}

.form-error {
    background-color: #ef4444 !important;
    color: white !important;
}

/* ========================================
   Focus States for Accessibility
   ======================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    #navbar,
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}
