/* ============================================
   Cody's Tint & Audio — Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-300: #6ee7b7;
    --emerald-200: #a7f3d0;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;
    --cream-50: #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;
    --cream-400: #fde047;
    --cream-500: #fbbf24;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', 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-body);
    line-height: 1.6;
    color: var(--emerald-950);
    background-color: var(--cream-50);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Geometric Decorative Shapes --- */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    top: 15%;
    left: -80px;
    width: 200px;
    height: 200px;
    border: 3px solid var(--emerald-200);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    top: 45%;
    right: -60px;
    width: 150px;
    height: 150px;
    background: var(--emerald-100);
    border-radius: 50%;
    opacity: 0.2;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.triangle {
    top: 70%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid var(--emerald-200);
    opacity: 0.12;
    animation: spin-slow 30s linear infinite;
    transform-origin: center;
}

.square {
    top: 25%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: var(--emerald-100);
    opacity: 0.15;
    animation: spin-slow 25s linear infinite;
    transform-origin: center;
}

.circle-3 {
    bottom: 10%;
    right: 20%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--emerald-300);
    border-radius: 50%;
    opacity: 0.2;
    animation: float-slow 18s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Navbar --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.nav-fixed.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08), 0 4px 30px rgba(4, 120, 87, 0.06);
}

.nav-logo-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nav-logo-ring:hover {
    transform: rotate(-5deg) scale(1.05);
}

.nav-logo-text {
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--emerald-800);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--emerald-500);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover {
    color: var(--emerald-700);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--emerald-700);
    color: white !important;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.nav-cta-btn:hover {
    background: var(--emerald-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3);
}

.nav-cta-btn svg {
    transition: transform 0.25s ease;
}

.nav-cta-btn:hover svg {
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--emerald-800);
    transition: background 0.25s ease;
}

.mobile-menu-btn:hover {
    background: var(--emerald-50);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--emerald-100);
    box-shadow: 0 20px 40px rgba(4, 120, 87, 0.1);
    animation: slideDown 0.3s ease;
}

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

.mobile-menu-link {
    color: var(--emerald-800);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover {
    background: var(--emerald-50);
    color: var(--emerald-700);
}

.mobile-menu-cta {
    background: var(--emerald-700);
    color: white !important;
    border-radius: 16px;
}

.mobile-menu-cta:hover {
    background: var(--emerald-600);
}

/* --- Hero Section --- */
.hero-grid-pattern {
    background-image: 
        linear-gradient(rgba(52, 211, 153, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

@keyframes float-card {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.hero-float-card {
    position: absolute;
    z-index: 20;
}

.stat-card-1 {
    top: -20px;
    right: -20px;
    animation: float-card-1 5s ease-in-out infinite;
}

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

.stat-card-2 {
    bottom: 60px;
    left: -30px;
    animation: float-card-2 7s ease-in-out infinite;
}

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

.stat-card-3 {
    bottom: -15px;
    right: 20px;
    animation: float-card-3 6s ease-in-out infinite;
}

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

/* CTA Buttons */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--cream-100);
    color: var(--emerald-950);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.cta-primary:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.cta-secondary svg {
    transition: transform 0.3s ease;
}

.cta-secondary:hover svg {
    transform: translateY(3px);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    animation: bounce-scroll 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* --- Service Cards --- */
.service-card {
    perspective: 1000px;
}

/* --- About Grid Pattern --- */
.about-grid-pattern {
    background-image: 
        linear-gradient(rgba(52, 211, 153, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.15) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Contact Section --- */
.contact-info-card {
    border-radius: 20px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(52, 211, 153, 0.2);
    transform: translateX(4px);
}

/* Contact Form Inputs */
.contact-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--emerald-100);
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--emerald-950);
    background: var(--cream-50);
    transition: all 0.25s ease;
    outline: none;
}

.contact-input::placeholder {
    color: var(--emerald-400);
}

.contact-input:focus {
    border-color: var(--emerald-500);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--emerald-700);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3);
}

.form-submit-btn:hover {
    background: var(--emerald-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 120, 87, 0.4);
}

.form-submit-btn svg {
    transition: transform 0.3s ease;
}

.form-submit-btn:hover svg {
    transform: translate(3px, -3px);
}

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

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* 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; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-float-card {
        display: none;
    }
    
    .hero-card {
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
}
