:root {
    --primary: #9B51E0;
    --primary-light: #D4A5F3;
    --primary-dark: #6B2C91;
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --text-dark: #2D3748;
    --text-light: #F7FAFC;
    --bg-light: #F8F4FD;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(107, 44, 145, 0.15);
    --font-primary: 'Outfit', 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--bg-light) 0%, #E9D5FF 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Typography support for Kurdish */
html[dir="rtl"] {
    font-family: 'Vazirmatn', var(--font-primary);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
}

.logo span {
    background: linear-gradient(to right, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.controls {
    display: flex;
    gap: 1rem;
}

.lang-switcher {
    display: flex;
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 0.25rem;
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #4A5568;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(107, 44, 145, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 44, 145, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.contact-phone {
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
}

.contact-phone i {
    color: var(--gold);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatShadow {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.6; }
}

@keyframes particleUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

.anti-gravity {
    animation: float 6s ease-in-out infinite;
}

.product-shadow {
    width: 200px;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(107,44,145,0.4) 0%, rgba(0,0,0,0) 70%);
    margin: 20px auto 0;
    border-radius: 50%;
    animation: floatShadow 6s ease-in-out infinite;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

/* Section styling */
section {
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary-dark);
}

/* Glass Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.features-grid .glass-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    text-align: center;
}

.product-card .img-wrapper {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-card img {
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    margin-top: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-dark, #B8860B);
    margin: 1rem 0;
}

.product-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* Sun Protection Section */
.sun-highlight {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.sun-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.sun-content h2 {
    color: var(--gold-light);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.sun-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer Section */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Background Particles Container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleUp linear infinite;
    filter: blur(2px);
}

/* Reveal Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile approach for now */
    }
    .hero-content h1 {
        font-size: 2.2rem;
        margin-top: 2rem;
        word-wrap: break-word; /* Prevent long words from causing overflow */
    }
    .container {
        flex-direction: column;
        text-align: center;
        padding: 0 1.25rem;
        gap: 2rem; /* Less gap on mobile */
    }
    section {
        padding: 4rem 1.25rem; /* Reduce vertical padding */
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    .btn-group {
        justify-content: center;
    }
    .contact-phone {
        justify-content: center;
    }
    
    /* Make glass cards more compact vertically */
    .features-grid {
        gap: 1rem;
    }
    .glass-card {
        padding: 1.5rem 1rem;
    }
    .icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    /* Fix About section specifically */
    #about .glass-card {
        text-align: center !important;
    }
    #about .glass-card h3 {
        font-size: 1.5rem !important;
    }
    #about .glass-card p {
        font-size: 1rem !important;
    }
    #about .badges-wrapper {
        justify-content: center;
        margin-top: 1.5rem !important;
    }
    
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
}
