/* ============================================
   VAM Foods — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: #040f1f;
    color: #ffffff;
    overflow-x: hidden;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.04;
}

.geo-circle--1 {
    width: 600px;
    height: 600px;
    background: #2DD4BF;
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 400px;
    height: 400px;
    background: #2DD4BF;
    bottom: 10%;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle--3 {
    width: 200px;
    height: 200px;
    background: #2DD4BF;
    top: 50%;
    right: 5%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 80px 138px 80px;
    border-color: transparent transparent #2DD4BF transparent;
    opacity: 0.04;
    top: 30%;
    left: 5%;
    transform: rotate(15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -60px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 104px 60px;
    border-color: transparent transparent #040f1f transparent;
}

.geo-square {
    position: absolute;
    width: 120px;
    height: 120px;
    background: #2DD4BF;
    opacity: 0.03;
    bottom: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: float-slow 16s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

#navbar.nav-scrolled {
    background-color: rgba(4, 15, 31, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2DD4BF;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu.hidden {
    display: none;
}

.mobile-nav-link {
    display: block;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #2DD4BF;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-title {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Cards */
.hero-float-1 {
    animation: float-card-1 6s ease-in-out infinite;
}

.hero-float-2 {
    animation: float-card-2 7s ease-in-out infinite;
}

.hero-float-3 {
    animation: float-card-3 5s ease-in-out infinite;
}

@keyframes float-card-1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
}

@keyframes float-card-2 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
}

@keyframes float-card-3 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #040f1f;
}

::-webkit-scrollbar-thumb {
    background: #0A2342;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a4a7a;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #ffffff;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle--2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-triangle {
        display: none;
    }
    
    .geo-square {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* ============================================
   Focus Styles for Accessibility
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2DD4BF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .geo-circle, .geo-triangle, .geo-square,
    .hero-float-1, .hero-float-2, .hero-float-3,
    .hero-scroll {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
