/* AI Photo Booths - Modern, Tech-Heavy, Fun Website Styles */

/* Import Inter font family for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Color Palette inspired by AI Photo Booths logo */
:root {
    /* Primary Colors */
    --primary-green: #0e3323;
    --primary-green-dark: #0a2419;
    --accent-lime: #86d61f;
    --accent-lime-light: #caff85;
    --accent-lime-glow: rgba(134, 214, 31, 0.3);

    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black: #000000;

    /* Gradient Colors for Tech Feel */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-lime-light) 100%);
    --gradient-tech: linear-gradient(135deg, #0e3323 0%, #1a5c3f 50%, #86d61f 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    /* Border Radius for Modern Look */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-round: 50px;

    /* Shadows for Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px var(--accent-lime-glow);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--primary-green);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
}

a {
    color: var(--accent-lime);
    text-decoration: none;
    transition: all var(--transition-normal);
}

a:hover {
    color: var(--accent-lime-light);
}

/* Container System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-lg);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header & Navigation - FUN VERSION */
header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(134, 214, 31, 0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: all var(--transition-normal);
    border-bottom: 2px solid transparent;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(134, 214, 31, 0.15);
    border-bottom-color: var(--accent-lime);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-normal);
    animation: slideInLeft 0.6s ease;
}

.logo:hover {
    transform: scale(1.08) rotate(-2deg);
}

.logo img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(134, 214, 31, 0.2));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    margin: 0;
    align-items: center;
    animation: slideInRight 0.6s ease;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--primary-green);
    font-weight: 700;
    padding: var(--spacing-sm) var(--spacing-md);
    display: block;
    border-radius: var(--radius-round);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 10px;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-lime);
    transform: translateY(-2px);
}

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

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

/* Dropdown Menu - Click-based with better connection */
.nav-menu li.has-dropdown {
    position: relative;
}

.nav-menu li.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu li.has-dropdown > a::after {
    content: '▼';
    font-size: 0.625rem;
    transition: transform 0.3s ease;
}

.nav-menu li.has-dropdown.active > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 240px;
    border: 2px solid var(--accent-lime);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.nav-menu li.has-dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: block;
    color: var(--primary-green);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--accent-lime);
    color: var(--primary-green);
    transform: translateX(4px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--primary-green);
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: transform var(--transition-fast);
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-green);
    margin: 5px 0;
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* Hero Section - Tech-Heavy */
.hero {
    position: relative;
    background: var(--gradient-tech);
    color: var(--white);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(134, 214, 31, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(134, 214, 31, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero .lead {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
}

.hero-accent {
    color: var(--accent-lime-light);
    font-weight: 800;
}

/* Buttons - Modern & Fun */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(134, 214, 31, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(134, 214, 31, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 3px solid var(--accent-lime);
    color: var(--accent-lime);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: var(--primary-green);
    border-color: var(--accent-lime-light);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background: var(--gradient-accent);
    border-color: var(--accent-lime);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    margin-bottom: var(--spacing-sm);
}

.section-title .subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid - Modern Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-lime-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Product Cards - Tech Style */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--gradient-primary);
}

.product-content {
    padding: var(--spacing-lg);
}

.product-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-accent);
    color: var(--primary-green);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-round);
    margin-bottom: var(--spacing-sm);
}

/* Background Variations - FUN VERSION */
.bg-light {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
}

.bg-white {
    background-color: var(--white);
    position: relative;
}

.bg-dark {
    background-color: var(--primary-green);
    color: var(--white);
    position: relative;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: var(--white);
}

.bg-gradient {
    background: var(--gradient-tech);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(134, 214, 31, 0.2) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.bg-gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(202, 255, 133, 0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

/* Fun Section Dividers */
.section-curve-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: inherit;
    clip-path: ellipse(50% 100% at 50% 0%);
    transform: translateY(-99%);
}

.section-wave-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--accent-lime);
    opacity: 0.1;
    clip-path: polygon(0 40%, 10% 50%, 20% 60%, 30% 70%, 40% 80%, 50% 70%, 60% 60%, 70% 50%, 80% 40%, 90% 50%, 100% 60%, 100% 100%, 0 100%);
}

/* Footer - Modern Tech Style */
footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-lime), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--accent-lime);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-lime);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-lime);
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.py-1 { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
.py-2 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-3 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-4 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-5 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

/* Animations - FUN VERSION */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

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

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

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

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Responsive Design */
@media (max-width: 809px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
        animation: fadeInDown 0.3s ease;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: var(--spacing-md);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: var(--spacing-md);
        margin-top: var(--spacing-sm);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo img {
        height: 60px;
    }

    .hero {
        padding: var(--spacing-xl) 0;
    }

    .features-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: var(--spacing-xl) 0;
    }

    /* Homepage responsive fixes */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    [style*="order: 1"],
    [style*="order: 2"] {
        order: unset !important;
    }
}

@media (min-width: 810px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    header, footer, .btn {
        display: none;
    }
}
