/* ======================
   CSS Variables & Base Styles
   ====================== */
:root {
    --primary: #00a8ff;
    --primary-dark: #0077b6;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f8f9fa;
    --gray: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ======================
   Utility Classes
   ====================== */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.3);
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ======================
   Header & Navigation
   ====================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
	margin-right: 5px;
}

.logo-img-link {
    display: flex; /* or flex depending on your layout */
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
	z-index:1001;
}

/* Logo fallback */
.logo-container::before {
    content: '';
    display: none;
    width: 50px;
    height: 50px;
    background: var(--primary);
}

.logo-img[src=""] {
    display: none;
}

.logo-img[src=""] ~ .logo-container::before {
    display: block;
}

/* ======================
   Hero Section
   ====================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.2) 0%, rgba(10, 10, 10, 0.9) 100%),
                url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover;
    z-index: -1;
    animation: panImage 30s linear infinite alternate;
}

@keyframes panImage {
    0% { transform: scale(1) translateX(0); }
    100% { transform: scale(1.1) translateX(5%); }
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 0.5s;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), #00ffaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
}

/* ======================
   Features Section
   ====================== */
.features {
    padding: 5rem 2rem;
    background: var(--darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--gray);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ======================
   Products Section
   ====================== */
.products {
    padding: 5rem 2rem;
    background: var(--dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--gray);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #aaa;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ======================
   Testimonials Section
   ====================== */
.testimonials {
    padding: 5rem 2rem;
    background: var(--dark);
    text-align: center;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.testimonial-card {
    background: var(--gray);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    width: 100%;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    margin: 1rem 0;
}

.rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary);
}

.testimonial-author h4 {
    margin: 0.5rem 0;
    color: var(--primary);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #aaa;
}

/* ======================
   Contact Section
   ====================== */
.contact {
    padding: 5rem 2rem;
    background: var(--darker);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.3rem;
}

.contact-form {
    background: var(--gray);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--light);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.form-control:invalid {
    border-color: #ff4444;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #00C851;
}

/* ======================
   Footer
   ====================== */
.footer {
    background: var(--darker);
    padding: 3rem 2rem 1.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray);
    border-radius: 50%;
    color: var(--light);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.1);
}

.fa-whatsapp {
    color: #25D366;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* ======================
   Legal Pages (Terms, Privacy)
   ====================== */
.terms-service, .privacy-policy {
    padding: 6rem 2rem 4rem;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.terms-service h1, .privacy-policy h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.last-updated {
    text-align: center;
    margin-bottom: 3rem;
    color: #aaa;
}

.terms-service h2, .privacy-policy h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.terms-service p, .privacy-policy p {
    margin-bottom: 1rem;
}

.terms-service ul, .privacy-policy ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.terms-service li, .privacy-policy li {
    margin-bottom: 0.5rem;
}

.terms-service address, .privacy-policy address {
    font-style: normal;
    margin: 1rem 0;
}

/* ======================
   Cookie Consent Banner
   ====================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--darker);
    color: var(--light);
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cookie-btn.accept {
    background: var(--primary);
    color: var(--dark);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* ======================
   Responsive Design
   ====================== */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
    
    .logo-name {
        font-size: 1.2rem;
    }
    
    .logo-tagline {
        font-size: 0.7rem;
    }

   .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--darker);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0 2rem;
        gap: 1.5rem;
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: clip-path 0.5s ease-out;
        z-index: 1000;
        pointer-events: none;
        opacity: 0;
    }
    
    .nav.active {
        clip-path: circle(1000px at 90% -10%);
        -webkit-clip-path: circle(1000px at 90% -10%);
        pointer-events: auto;
        opacity: 1;
    }
    
    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .terms-service, .privacy-policy {
        padding: 5rem 1rem 3rem;
    }
    
    .terms-service h1, .privacy-policy h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-outline {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ======================
   Accessibility & Performance
   ====================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.feature-card, .product-card, .btn {
    will-change: transform;
}