/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    /* Color Palette - Darker Premium Purple */
    --primary-purple: #4B0082;       /* Indigo/Deep Purple */
    --primary-dark: #2E0052;         /* Very Dark Purple for text/headings */
    --primary-light: #6A0DAD;        /* Lighter Purple for accents/gradients */
    
    --accent-gold: #D4AF37;          /* Metallic Gold */
    --accent-gold-hover: #B5952F;    
    --white: #FFFFFF;
    --off-white: #F4F4F9;
    --text-dark: #222222;
    --text-light: #555555;
    --border-color: #E0E0E0;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(75, 0, 130, 0.15);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--white); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. Utilities & Typography
   ========================================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-purple { color: var(--primary-purple); }
.text-gold { color: var(--accent-gold); }
.text-center { text-align: center; }

.section { padding: 80px 0; }
.section-title { font-size: 2.5rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto 50px auto; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: var(--transition-fast); font-size: 1rem; }
.btn-primary { background-color: var(--primary-purple); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(75, 0, 130, 0.4); }
.btn-secondary { background-color: transparent; border-color: var(--primary-purple); color: var(--primary-purple); }
.btn-secondary:hover { background-color: var(--primary-purple); color: var(--white); }
.btn-gold { background-color: var(--accent-gold); color: var(--white); }
.btn-gold:hover { background-color: var(--accent-gold-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-outline { border: 1px solid var(--primary-purple); color: var(--primary-purple); background: transparent; }
.btn-outline:hover { background: var(--primary-purple); color: var(--white); }

/* =========================================
   3. Header & Navigation
   ========================================= */
#navbar { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); z-index: 1000; box-shadow: var(--shadow-sm); transition: var(--transition-fast); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -1px; }
.nav-list { display: flex; gap: 30px; }
.nav-link { font-weight: 500; color: var(--text-dark); position: relative; padding: 10px 0; }
.nav-link:hover, .nav-link.active { color: var(--primary-purple); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-gold); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 200px; box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition-fast); border-top: 3px solid var(--accent-gold); }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { border-bottom: 1px solid #f0f0f0; }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu a { display: block; padding: 12px 20px; font-size: 0.95rem; color: var(--text-dark); }
.dropdown-menu a:hover { background-color: var(--off-white); color: var(--primary-purple); padding-left: 25px; }

/* Hamburger */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--primary-dark); transition: var(--transition-fast); }

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: linear-gradient(135deg, #fff 0%, #f4f0ff 100%);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(75, 0, 130, 0.1);
    color: var(--primary-purple);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(75, 0, 130, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.trust-badges {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.trust-badges i { margin-right: 5px; }

/* Hero Visual Animation */
.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-visual {
    position: relative;
    width: 100%;
    height: 100%;
}

.circle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-purple), #9d4edd);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s infinite ease-in-out;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    animation: float 6s infinite ease-in-out;
    z-index: 2;
}

.floating-card i { font-size: 1.5rem; color: var(--accent-gold); }

.card-1 { top: 20%; left: 10%; animation-delay: 0s; }
.card-2 { bottom: 20%; right: 10%; animation-delay: 3s; }

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

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

/* =========================================
   5. About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 { font-size: 2rem; margin-bottom: 20px; color: var(--primary-dark); }
.about-text p { margin-bottom: 20px; color: var(--text-light); }

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

.feature-card {
    background: var(--off-white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(75, 0, 130, 0.1);
    color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 15px auto;
}

.feature-card h4 { margin-bottom: 10px; color: var(--primary-dark); }
.feature-card p { font-size: 0.9rem; color: var(--text-light); }

/* =========================================
   6. Products Section
   ========================================= */
.products-section { background-color: var(--off-white); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

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

.product-img {
    height: 180px;
    background: linear-gradient(135deg, #f4f0ff 0%, #e0d4fc 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--primary-purple);
}

.product-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--primary-dark); }
.product-info p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; flex-grow: 1; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--primary-purple); margin-bottom: 15px; }

/* =========================================
   7. CTA Section
   ========================================= */
.cta-section {
    background-color: var(--primary-purple);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.cta-content h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-content p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }

.cta-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 1rem;
}

/* =========================================
   8. Footer
   ========================================= */
footer { background-color: #1a1a1a; color: #ccc; padding-top: 80px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333;
}

.footer-logo { color: var(--white); margin-bottom: 20px; display: inline-block; }
.footer-col h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background-color: var(--accent-gold); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--accent-gold); padding-left: 5px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }

.social-icons { margin-top: 20px; display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; background: #333; display: flex; justify-content: center; align-items: center; border-radius: 50%; transition: var(--transition-fast); }
.social-icons a:hover { background: var(--accent-gold); color: var(--primary-dark); }

.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.9rem; }

/* =========================================
   9. Page Specific Styles (Blog, Contact, Policy)
   ========================================= */

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.blog-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-smooth); border: 1px solid #eee; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-img { height: 220px; background-color: #ddd; position: relative; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-category { position: absolute; top: 15px; left: 15px; background: var(--accent-gold); color: var(--white); padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.blog-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 0.85rem; color: #888; margin-bottom: 10px; }
.blog-title { font-size: 1.4rem; margin-bottom: 10px; color: var(--primary-dark); line-height: 1.3; }
.blog-excerpt { font-size: 0.95rem; color: var(--text-light); margin-bottom: 20px; flex-grow: 1; }
.read-more { color: var(--primary-purple); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.read-more:hover { gap: 10px; color: var(--accent-gold); }

/* Blog Details */
.blog-details-container { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-top: 40px; }
.main-article img { width: 100%; border-radius: var(--radius-md); margin-bottom: 30px; }
.article-header h1 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 15px; }
.article-meta { color: var(--text-light); margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.article-body p { margin-bottom: 20px; font-size: 1.1rem; color: #444; }
.article-body h2 { margin-top: 30px; margin-bottom: 15px; color: var(--primary-purple); }

/* Sidebar */
.sidebar-widget { background: var(--off-white); padding: 30px; border-radius: var(--radius-md); margin-bottom: 30px; }
.widget-title { font-size: 1.2rem; margin-bottom: 20px; color: var(--primary-dark); border-left: 4px solid var(--accent-gold); padding-left: 10px; }
.widget-list li { margin-bottom: 10px; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; }
.widget-list li:last-child { border: none; }
.widget-list a:hover { color: var(--primary-purple); }

/* Reaction Buttons */
.reaction-section { margin-top: 50px; padding-top: 30px; border-top: 2px solid #eee; text-align: center; }
.reaction-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.reaction-btn { background: var(--white); border: 1px solid #ddd; padding: 10px 20px; border-radius: 50px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition-fast); font-weight: 600; color: var(--text-light); }
.reaction-btn:hover { border-color: var(--primary-purple); color: var(--primary-purple); transform: scale(1.05); box-shadow: var(--shadow-sm); }

/* Contact Form */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: var(--white); box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); overflow: hidden; }
.contact-info { background: var(--primary-purple); color: var(--white); padding: 50px; }
.contact-info h3 { font-size: 2rem; margin-bottom: 20px; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 1.1rem; }
.info-item i { color: var(--accent-gold); font-size: 1.2rem; }
.contact-form-box { padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: var(--radius-sm); font-family: inherit; transition: var(--transition-fast); }
.form-control:focus { outline: none; border-color: var(--primary-purple); box-shadow: 0 0 0 3px rgba(75, 0, 130, 0.1); }
textarea.form-control { resize: vertical; min-height: 150px; }

/* Policy Pages */
.policy-content { max-width: 800px; margin: 0 auto; }
.policy-content h1 { margin-bottom: 30px; color: var(--primary-dark); }
.policy-content h2 { margin-top: 30px; margin-bottom: 15px; color: var(--primary-purple); }
.policy-content p, .policy-content li { margin-bottom: 15px; color: var(--text-light); line-height: 1.8; }
.policy-content ul { list-style: disc; padding-left: 20px; }

/* =========================================
   10. Animations & Responsive
   ========================================= */

/* Scroll Animations Classes */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.visible { opacity: 1; transform: translate(0, 0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 2; }
    .hero-image { order: 1; height: 300px; }
    .hero-buttons { justify-content: center; }
    .trust-badges { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .blog-details-container { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1001; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu { position: fixed; left: -100%; top: 0; gap: 0; flex-direction: column; background-color: var(--white); width: 100%; height: 100vh; text-align: center; transition: 0.3s; padding-top: 100px; box-shadow: var(--shadow-lg); }
    .nav-menu.active { left: 0; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link { display: block; padding: 20px; font-size: 1.2rem; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; background-color: #f9f9f9; display: block; padding-left: 20px; }
    .hero-content h1 { font-size: 2.5rem; }
    .cta-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
}