/* CSS Variables */
:root {
    --primary: #d4af37;
    --primary-glow: rgba(212, 175, 55, 0.3);
    --secondary: #f5f5f5;
    --text: #333333;
    --bg: #ffffff;
    --card-bg: #fffdf6;
    --border: #e8e8e8;
    --accent-line: #d4af37;
    --gold-light: #f0e6d2;
    --gold-dark: #b38b2d;
}

[data-theme="dark"] {
    --primary: #d4af37;
    --primary-glow: rgba(212, 175, 55, 0.2);
    --secondary: #333333;
    --text: #f5f5f5;
    --bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --border: #444444;
    --accent-line: #d4af37;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn i {
    font-size: 20px;
}

.whatsapp-btn:hover {
    background-color: #1ebe5b;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.logo-carousel {
    margin: 30px auto;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: calc(250px * 10);
}

.carousel-slide {
    width: 200px;
    padding: 0 25px;
    display: flex;
    align-items: center;
}

.carousel-slide img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.carousel-slide img:hover {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 5));
    }
}

/* Pause on hover */
.logo-carousel:hover .carousel-track {
    animation-play-state: paused;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/back.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.8);
    z-index: -3;
    opacity: 0.5;
}

/* Overlay gradient */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--bg), 0.7) 0%, rgba(var(--bg), 0.3) 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    padding: 0 auto;
}

/* Header */
header {
    background-color: rgba(var(--bg), 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold-dark));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

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

.nav-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--primary);
    color: white;
}

/* Language Toggle with Flags */
.lang-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.lang-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--primary);
}

.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: cover;
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.flag-en {
    background-image: url('/img/icons/en.webp');
}

.flag-ka {
    background-image: url('/img/icons/ge.png');
}

body[data-lang="en"] .flag-ka {
    transform: translateY(100%) scale(0.8);
    opacity: 0;
}

body[data-lang="ka"] .flag-en {
    transform: translateY(-100%) scale(0.8);
    opacity: 0;
}

body[data-lang="en"] .flag-en {
    transform: translateY(0) scale(1);
    opacity: 1;
}

body[data-lang="ka"] .flag-ka {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-menu {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.3s;
}

.mobile-menu:hover {
    transform: scale(1.1);
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: glow 8s infinite alternate;
    z-index: -1;
}

@keyframes glow {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20%, 20%);
    }
    100% {
        transform: translate(-20%, -20%);
    }
}

.hero-content {
    max-width: 50%;
    background-color: rgba(var(--bg), 0.85);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 auto;
}

.hero-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--gold-dark));
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-dark), var(--primary));
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: all 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

/* LED Line */
.led-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), #ffffff, var(--primary), transparent);
    margin: 30px 0;
    opacity: 0.8;
    position: relative;
}

.led-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), #ffffff, var(--primary), transparent);
    filter: blur(5px);
    opacity: 0.5;
}

/* Features */
.features {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold-dark));
    transition: width 0.3s;
}

.section-title:hover h2::after {
    width: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: rgba(var(--card-bg), 0.9);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--gold-dark));
    transition: height 0.3s;
}

.feature-card:hover::before {
    height: 0;
    top: 100%;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}

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

/* Reviews */
.reviews {
    padding: 60px 0;
    background: rgba(var(--card-bg), 0.9);
    backdrop-filter: blur(5px);
    position: relative;
}

.reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    z-index: -1;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: rgba(var(--bg), 0.9);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 50px;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
    transition: all 0.3s;
}

.review-card:hover::before {
    transform: scale(1.1);
    opacity: 0.15;
}

.review-text {
    margin-bottom: 15px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.review-card:hover .author-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.author-info h4 {
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.author-info p {
    opacity: 0.7;
    font-size: 0.85rem;
}

.stars {
    color: var(--primary);
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stars i {
    transition: transform 0.3s;
}

.review-card:hover .stars i {
    transform: scale(1.2);
}

/* CTA */
.cta {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    z-index: -1;
}

.cta h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: rgba(var(--card-bg), 0.95);
    padding: 30px 0 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    z-index: -1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold-dark));
    transition: width 0.3s;
}

.footer-column:hover h3::after {
    width: 45px;
}

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

.footer-column ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.footer-column ul li:hover {
    transform: translateX(5px);
}

.footer-column ul li i {
    color: var(--primary);
    transition: all 0.3s;
}

.footer-column ul li:hover i {
    transform: scale(1.2);
}

.footer-column ul li a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-column ul li:hover a {
    opacity: 1;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    color: var(--text);
    font-size: 18px;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
}

.social-links a:hover {
    opacity: 1;
    color: white;
    background: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Gold Coin Decoration */
.gold-coin {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, #d4af37 0%, #f9d423 50%, #d4af37 100%);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    opacity: 0.3;
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Language toggle */
[lang="ka"] {
    display: none;
}

body[data-lang="ka"] [lang="ka"] {
    display: block;
}

body[data-lang="ka"] [lang="en"] {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        gap: 15px;
    }
    
    .hero-content {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg);
        flex-direction: column;
        padding: 15px;
        gap: 12px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding-top: 80px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        max-width: 90%;
        padding: 20px;
    }
    
    .features-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .hero-content {
        padding: 15px;
        max-width: 95%;
    }
    
    .feature-card, .review-card {
        padding: 15px;
    }
    
    .feature-icon {
        font-size: 28px;
    }
    
    .btn {
        padding: 8px 20px;
    }
}

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