@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0056b3;
    --secondary-color: #ff6600;
    --background-color: #ffffff;
    --text-color: #333;
    --card-bg-color: #fff;
    --card-shadow-color: rgba(0, 0, 0, 0.1);
    --section-bg-color: #f9f9f9;
    --error-color: #e74c3c;
}

body.dark-theme {
    --primary-color: #ff6600; /* Orange for primary elements in dark mode */
    --secondary-color: #FFA500; /* Prominent Orange */
    --background-color: #000000; /* Black */
    --text-color: #e0e0e0; /* Light Gray for text */
    --card-bg-color: #1a1a1a; /* Very Dark Gray for cards */
    --card-shadow-color: rgba(255, 255, 255, 0.1);
    --section-bg-color: #0a0a0a; /* Slightly different black for sections */
}

/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 4px var(--card-shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 65px; /* Slightly bigger logo */
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-left: 2.5rem; /* Adjusted margin for modern spacing */
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem; /* Slightly smaller for modern look */
    font-weight: 500; /* Added font-weight */
    padding: 5px 0; /* Added padding for clickable area */
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px); /* Subtle hover effect */
}

/* Removed dropdown specific styles */
.dropdown .fa-chevron-down {
    display: none; /* Hide chevron */
}

.dropdown-menu {
    display: none; /* Hide dropdown menu */
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    margin-left: 2.5rem; /* Adjusted margin */
}

.theme-toggle {
    display: none;
}

.theme-label {
    background-color: #ccc;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    height: 30px;
    position: relative;
    width: 60px;
    transition: background-color 0.3s, border-color 0.3s;
    overflow: hidden;
}

.theme-label::after {
    background-color: #fff;
    border-radius: 50%;
    content: "\f185"; /* Sun icon by default */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #f39c12; /* Sun color */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    width: 26px;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease, color 0.3s ease; /* Animate color */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 1.2rem; /* Icon size */
}

.theme-toggle:checked + .theme-label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.theme-toggle:checked + .theme-label::after {
    transform: translateX(30px);
    content: "\f186"; /* Moon icon when checked */
    color: #f1c40f; /* Moon color */
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #0056b3, #ff6600);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

body.dark-theme .hero-section {
    background: linear-gradient(to right, var(--background-color), #00004d, var(--secondary-color));
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInFromLeft 1s ease-in-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: slideInFromRight 1s ease-in-out;
}

/* Products Section (Services) */
.products-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Changed to 6 columns */
    gap: 20px; /* Adjusted gap */
}

.product-card {
    background-color: var(--card-bg-color);
    border-radius: 10px; /* Slightly smaller border-radius */
    box-shadow: 0 4px 10px var(--card-shadow-color); /* Slightly less pronounced shadow */
    overflow: hidden;
    padding: 20px 15px; /* Reduced padding */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px); /* Slightly less lift */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Slightly less strong shadow on hover */
    border-color: var(--secondary-color);
}

.product-icon {
    font-size: 2.5rem; /* Reduced icon size */
    color: var(--primary-color);
    margin-bottom: 15px; /* Reduced margin */
    transition: color 0.3s ease;
}

.product-card:hover .product-icon {
    color: var(--secondary-color);
}

.product-title {
    font-size: 1.3rem; /* Reduced title size */
    margin: 0 0 10px 0; /* Reduced margin */
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--secondary-color);
}

.product-description {
    font-size: 0.9rem; /* Reduced description size */
    line-height: 1.5;
    margin: 0;
    color: var(--text-color);
}

/* Packages Section */
.packages-section {
    background-color: var(--section-bg-color);
    padding: 80px 0;
}

.plan-category-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.plan-category-header {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.package-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--card-shadow-color);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.package-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.package-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 18px 35px rgba(0,0,0,0.35);
    border-color: var(--secondary-color);
}

.package-subtitle {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.package-price {
    font-size: 2rem; /* Reduced font size */
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.price-per-month {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
    flex-grow: 1;
}

.package-features li {
    font-size: 0.9rem;
    margin-bottom: 7px;
    color: var(--text-color);
    position: relative;
    padding-left: 22px;
}

.package-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

.package-card .btn {
    margin-top: auto;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.95rem;
    border-radius: 8px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--section-bg-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--card-shadow-color);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-card-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 1rem;
    margin: 5px 0;
    color: var(--text-color);
}

.contact-card .small-text {
    font-size: 0.9rem;
    color: #777;
}

.sub-title {
    margin-top: 60px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto 60px auto;
    padding: 30px;
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--card-shadow-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--card-bg-color);
    color: var(--text-color);
    box-sizing: border-box;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%01-13%205.4H18.4c-6.5%200-12.1-4.6-13-11.1-1-6.5%202-12.1%207.4-13l133-133c2.8-2.8%206.7-4.4%2010.6-4.4s7.8%201.6%2010.6%204.4l133%20133c5.4%205.4%206.4%2012.1%203.6%2017.6z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 35px;
}

.contact-form .error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    position: absolute;
    bottom: -18px;
    left: 0;
    display: none;
}

.contact-form .form-group.error .error-message {
    display: block;
}

.contact-form .form-group.error input,
.contact-form .form-group.error textarea,
.contact-form .form-group.error select {
    border-color: var(--error-color);
}

.contact-form button {
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background-color: #e65c00;
}

.additional-info {
    margin-top: 60px;
    grid-template-columns: repeat(3, 1fr); /* Changed to 3 columns */
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 1rem;
    line-height: 1.6;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-links h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul a:hover {
    color: var(--secondary-color);
}

.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-contact ul i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    display: none;
    transition: opacity 0.3s, transform 0.3s;
}

.back-to-top-btn:hover {
    background-color: #e65c00;
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #e65c00;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #004494;
}

/* Scroll-triggered Animations */
.product-card,
.package-card,
.section-title,
.plan-category-header,
.contact-card,
.section-subtitle,
.contact-description,
.sub-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.product-card.visible,
.package-card.visible,
.section-title.visible,
.plan-category-header.visible,
.contact-card.visible,
.section-subtitle.visible,
.contact-description.visible,
.sub-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: var(--card-bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 2rem;
    }

    .nav-links li {
        opacity: 0;
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 10px 0;
    }

    .theme-switcher {
        margin-top: 1.5rem;
        margin-left: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    /* Contact Form Mobile Fix */
    .contact-section .container {
        padding: 0 15px;
    }

    .contact-form {
        max-width: 100%;
        padding: 0;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button,
    .contact-form select {
        width: calc(100% - 2px);
        box-sizing: border-box;
    }

    /* Force contact cards to stack on small screens */
    .contact-cards-grid,
    .additional-info,
    .product-grid { /* Added product-grid to stack on small screens */
        grid-template-columns: 1fr;
    }
}
