/* --- Global Styles & Variables --- */
:root {
    --bg-color: #2b0a3d;
    --surface-color: #3e0f5c;
    --text-color: #ffd9e8;
    --primary-color: #ff6f61; /* Coral */
    --accent-color: #ffcdb2;
    --border-color: #5a1f73;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;
}



body.light-theme {
    --bg-color: #f0f6fc;
    --surface-color: #ffffff;
    --text-color: #24292f;
    --primary-color: #ff6f61;
    --border-color: #d0d7de;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; text-transform: uppercase; letter-spacing: 2px;}
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    background: transparent;
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(255, 111, 97, 0.5);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(255, 111, 97, 0.8);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* --- Header --- */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-color);
}

.logo span {
    color: var(--primary-color);
}

#main-nav ul {
    display: flex;
    gap: 30px;
}

#main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

#main-nav ul li a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Theme Toggle --- */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* --- Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 17, 23, 0.7), rgba(13, 17, 23, 0.7)), url('../img/hero.jpg') no-repeat center center/cover;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- About Section --- */
#about {
    text-align: center;
}

.about-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    display: block;
}

/* --- Why Choose Us --- */
#why-us {
    background-color: var(--surface-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 111, 97, 0.2);
}

.icon-wrapper {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.5s ease;
}

.feature-card.animate-on-scroll .icon-wrapper {
    animation: icon-float 2s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Services Section --- */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 111, 97, 0.5);
}

.service-panels .panel {
    display: none;
}

.service-panels .panel.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-card {
    background-color: var(--surface-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 111, 97, 0.3);
}

/* --- Testimonials --- */
#testimonials {
    background-color: var(--surface-color);
}

.testimonial-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.video-placeholder {
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    box-shadow: 0 0 20px rgba(255, 111, 97, 0.5);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 15px;
}

.text-reviews {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background-color: var(--bg-color);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* --- FAQ --- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--surface-color);
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.accordion-question {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-question:hover {
    color: var(--primary-color);
}

.accordion-question::after {
    content: '\002B';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.accordion-item.active .accordion-question::after {
    content: '\2212';
}

.accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}

.accordion-item.active .accordion-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* --- Contact Form --- */
.chatbot-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--surface-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header i {
    font-size: 1.5rem;
}

.chat-body {
    padding: 30px;
}

.chat-body .form-group {
    margin-bottom: 20px;
}

.chat-body input,
.chat-body textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-body);
}

.chat-body input::placeholder,
.chat-body textarea::placeholder {
    color: #6e7681;
}

.confirmation-message {
    display: none;
    text-align: center;
    color: var(--primary-color);
}

.confirmation-message i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* --- Footer --- */
#main-footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 20px rgba(255, 111, 97, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column p {
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

/* --- Popup Modules --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Glassmorphism Popup */
.popup-content.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Cyber Theme Popup */
.popup-content.cyber-theme {
    background: var(--bg-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 111, 97, 0.5), inset 0 0 20px rgba(255, 111, 97, 0.1);
    color: #00ff41; /* Matrix green */
    font-family: 'Courier New', Courier, monospace;
}

.popup-content.cyber-theme h2 {
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
}

/* Neon Theme Popup */
.popup-content.neon-theme {
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color), inset 0 0 20px var(--primary-color);
}

.popup-content.neon-theme h2 {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.popup-content.neon-theme input,
.popup-content.neon-theme button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    margin-bottom: 15px;
    padding: 10px;
    width: 100%;
}

.popup-content.neon-theme .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: 1fr; }
    .testimonial-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 3rem; }
    #main-header .container { flex-direction: column; gap: 15px; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
}