/* --- Universal Styles & Color Variables --- */
:root {
    --bg-dark: #0c0b1e;
    --bg-black: #000000;
    --header-bg: #1a1a2e;
    --bg-card: #1a1a2e;
    --bg-card-blurry: rgba(26, 26, 46, 0.8);
    --primary-purple: #8A2BE2;
    --highlight-pink: #ff3bff;
    --highlight-blue: #8c8cff;
    --highlight-white: #ffffff;
    --text-light: #ffffff;
    --text-muted: #a0a0c0;
    --accent-green: #00ff9d;
    --border-color: #302d64;
    --gradient-button: linear-gradient(90deg, #8A2BE2, #4B0082);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden; /* Prevents horizontal scroll */
}

/* Stops body from scrolling when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- Pre-loader & Widgets --- */
#preloader { background: var(--bg-dark); height: 100vh; width: 100%; position: fixed; z-index: 9999; display: flex; justify-content: center; align-items: center; }
.spinner { width: 50px; height: 50px; border: 5px solid #ffffff; border-top-color: var(--primary-purple); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-to-top { position: fixed; left: -45px; top: 50%; transform: rotate(-90deg); transform-origin: top left; z-index: 100; color: var(--text-muted); font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 15px; }
.scroll-to-top span { display: block; width: 40px; height: 1px; background-color: var(--primary-purple); }

/* --- Header --- */
/* --- FINAL HEADER with smaller size --- */
header {
    padding: 10px 5%; /* Vertical padding kam kiya hai */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a2e;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.logo {
    font-size: 18px; /* Font size chhota kiya hai */
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}
.desktop-nav {
    display: flex;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Links ke beech ka gap kam kiya hai */
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px; /* Font size chhota kiya hai */
    display: flex;
    align-items: center;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Buttons ke beech ka gap kam kiya hai */
}
.currency-btn, .login-btn {
    padding: 8px 22px; /* Buttons ka size chhota kiya hai */
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px; /* Font size chhota kiya hai */
    text-align: center;
}
.currency-btn {
    display: flex; /* To align text and caret */
    align-items: center;
}


.login-btn {
    background: linear-gradient(90deg, #8A2BE2, #4B0082);
}
/* Dropdown Menu Styles */
.has-dropdown { position: relative; }
.caret { border: solid white; border-width: 0 2px 2px 0; display: inline-block; padding: 3px; transform: rotate(45deg); margin-left: 8px; }
.dropdown-menu { display: none; position: absolute; top: 150%; left: 50%; transform: translateX(-50%); background-color: #000; list-style: none; padding: 10px 0; border-radius: 8px; min-width: 200px; z-index: 100; border: 1px solid #302d64; opacity: 0; transition: opacity 0.3s ease, top 0.3s ease; }
.has-dropdown:hover .dropdown-menu { display: block; opacity: 1; top: 100%; }
.dropdown-menu li { border-bottom: 1px solid #333; }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu li a { display: block; padding: 12px 20px; color: #a0a0c0; }
.dropdown-menu li a:hover { background-color: #8A2BE2; color: #ffffff; }

.hamburger-menu { display: none; cursor: pointer; z-index: 1001; }
.hamburger-menu div { width: 25px; height: 3px; background-color: white; margin: 5px 0; transition: all 0.3s ease; }
.hamburger-menu.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger-menu.toggle .line2 { opacity: 0; }
.hamburger-menu.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 5% 60px 5%;
    min-height: 90vh;
    overflow: hidden;
    /* CSS for the background image, which is controlled by index.html */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-section::before { content: ''; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 50px 50px; transform-origin: center; transform: translate(-50%, -50%) perspective(800px) rotateX(75deg); opacity: 0.8; }
.hero-content { position: relative; z-index: 2; }
.hero-section h1 { font-size: 56px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero-subheading { font-size: 22px; font-weight: 600; color: var(--text-light); margin-bottom: 30px; }
.hero-paragraph { max-width: 700px; margin: 0 auto; color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* --- Common Section Styles --- */
.section-tag { display: inline-block; border: 1px solid var(--border-color); padding: 8px 20px; border-radius: 30px; font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.section-title { text-align: center; font-size: 42px; font-weight: 700; margin-bottom: 50px; line-height: 1.2; }
.section-title .highlight { color: var(--primary-purple); }
.section-title-left { text-align: left; font-size: 42px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.section-paragraph { color: var(--text-muted); font-size: 16px; line-height: 1.8; }

/* --- Packages Section --- */
/* --- FINAL PACKAGES SECTION --- */
.packages-section {
    padding: 100px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.packages-intro { text-align: center; margin-bottom: 50px; }
.section-subtitle { display: inline-block; border: 1px solid var(--border-color); padding: 8px 20px; border-radius: 30px; font-size: 16px; color: var(--text-muted); margin-bottom: 20px; }
.section-title { text-align: center; font-size: 42px; font-weight: 700; margin-bottom: 50px; line-height: 1.2; }
.section-title .highlight { color: var(--primary-purple); }

/* Unified Packages Grid & Card */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.package-card { background-color: var(--bg-card); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s; }
.package-card:hover { transform: translateY(-5px); }
.package-header { position: relative; }
.package-header img { width: 100%; height: auto; display: block; border-radius: 20px 20px 0 0; }
.discount-badge { position: absolute; top: 15px; left: 15px; background: rgba(0, 0, 0, 0.7); color: #fff; padding: 5px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.package-body { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; text-align: center; }
.package-body h3 { font-size: 24px; font-weight: 600; margin-bottom: 25px; }
.feature-list { list-style: none; margin-bottom: 30px; text-align: left; color: var(--text-muted); flex-grow: 1; }
.feature-list li { margin-bottom: 12px; font-size: 15px; }
.feature-list li::before { content: '✓'; color: var(--accent-green); margin-right: 10px; font-weight: bold; }
.price-box { margin-bottom: 30px; }
.price-box p { color: var(--text-muted); }
.price { font-size: 36px; font-weight: 700; }
.price span { font-size: 16px; color: var(--text-muted); }
.details-button { width: 100%; padding: 16px; border: none; border-radius: 12px; color: white; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--gradient-button); }

/* --- Performance Section --- */
.performance-section { padding: 100px 0; }
.performance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.performance-image img { max-width: 100%; height: auto; }
.performance-content .section-title-left { font-size: 48px; font-weight: 700; line-height: 1.3; }
.highlight-pink { color: var(--highlight-pink); }
.highlight-blue { color: var(--highlight-blue); }
.highlight-white { color: var(--highlight-white); }

/* --- FAQ Section --- */
.faq-section { padding: 100px 0; }
.large-title { font-size: 56px !important; margin-bottom: 40px !important; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item { background-color: var(--bg-card); border-radius: 12px; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px; font-size: 16px; color: var(--text-light); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-icon { display: block; width: 24px; height: 24px; background-color: var(--primary-purple); border-radius: 5px; position: relative; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background-color: white; transform: translate(-50%, -50%); transition: transform 0.3s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { max-height: 0; overflow: hidden; color: var(--text-muted); font-size: 15px; transition: max-height 0.5s ease; }
.faq-answer p { padding: 0 20px 20px 20px; line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 200px; }

/* --- Payment Section --- */
.payment-section { padding: 100px 0; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; margin-bottom: 40px; }
.payment-icons img { height: 30px; }
.view-all-button { display: inline-block; padding: 15px 30px; background: var(--gradient-button); color: white; text-decoration: none; border-radius: 10px; font-weight: 600; }

/* --- Footer --- */
footer { background-color: #101024; padding: 60px 5%; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 18px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); text-decoration: none; }
.footer-bottom { text-align: center; color: var(--text-muted); padding-top: 20px; border-top: 1px solid var(--border-color); }

/* --- Animation On Scroll Styles --- */
.hidden { opacity: 0; filter: blur(5px); transform: translateY(50px); transition: all 0.8s ease-out; }
.show { opacity: 1; filter: blur(0); transform: translateY(0); }
.package-card.hidden:nth-child(2) { transition-delay: 200ms; }
.package-card.hidden:nth-child(3) { transition-delay: 400ms; }
.package-card.hidden:nth-child(4) { transition-delay: 600ms; }


/*
==============================================
MOBILE RESPONSIVE STYLES (992px and below)
==============================================
*/
@media (max-width: 992px) {
    .hamburger-menu { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
        transform: translateX(-100%);
        transition: transform 0.5s ease-in-out;
    }

    .main-nav.nav-active {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .nav-links a { font-size: 22px; }
    
    .header-actions {
        flex-direction: column;
        gap: 30px;
    }
}

/*
==============================================
SMALLER MOBILE RESPONSIVE STYLES (768px and below)
==============================================
*/
/*
==============================================
MOBILE RESPONSIVE STYLES (768px and below)
==============================================
*/
@media (max-width: 768px) {
    .scroll-to-top { display: none; }
    .logo { font-size: 18px; }
    
    .container { padding: 60px 0; }
    .section-title { font-size: 34px; }
    .section-title-left { font-size: 30px; }

    /* Background Image Fix for Mobile */
    .hero-section, .packages-section {
        background-attachment: scroll; /* Parallax effect ko mobile par band karne ke liye */
    }

    .hero-section { min-height: auto; }
    .hero-section h1 { font-size: 40px; }
    .hero-subheading { font-size: 18px; }
    .hero-paragraph { font-size: 15px; }

    .packages-section { padding: 60px 0; }
    .packages-grid { grid-template-columns: 1fr; }
    
    .ticker-section { padding: 25px 0; }
    .ticker-item span { font-size: 32px; }
    .ticker-item img { height: 25px; width: 25px; }

    .performance-section { padding: 60px 0; }
    .performance-grid { grid-template-columns: 1fr; text-align: center; }
    .performance-content .section-title-left { text-align: center; font-size: 34px; }
    
    .faq-section { padding: 60px 0; }
    .large-title { font-size: 38px !important; }
    .faq-grid { grid-template-columns: 1fr; }
    
    .payment-section { padding: 60px 0; text-align: center; }
    .payment-section .section-title-left { text-align: center; }
    .payment-icons { justify-content: center; }

    footer { text-align: left; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* --- UPDATED: Ticker Section --- */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-section {
    /* New faded background */
    background: linear-gradient(to bottom, rgba(76, 17, 71, 0.3), var(--bg-black) 15%, var(--bg-black) 85%, rgba(76, 17, 71, 0.3));
    padding: 40px 0;
    width: 100%;
    overflow: hidden;
}
.ticker-move {
    display: flex;
    width: 200%;
    animation: ticker 25s linear infinite;
}
.ticker-move:hover {
    animation-play-state: paused;
}
.ticker-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.ticker-item span {
    font-size: 80px;
    font-weight: 700;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(to bottom, #888, #333);
    -webkit-background-clip: text;
    background-clip: text;
}
.ticker-item img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
}
.has-dropdown {
    position: relative; /* This is crucial for positioning the dropdown */
}
.caret {
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    margin-left: 8px;
}
/* --- NEW: Dropdown Menu Styles --- */
.has-dropdown {
    position: relative; /* Dropdown ko iske hisaab se position karne ke liye */
}

/* Ye chhota sa arrow banata hai */
.caret {
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 8px;
}

.dropdown-menu {
    display: none; /* Pehle se chhupa hua rahega */
    position: absolute;
    top: 150%; /* Shuruaat mein thoda neeche rakha hai animation ke liye */
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    min-width: 200px; /* Dropdown ki chaudai */
    z-index: 100;
    border: 1px solid #302d64;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
}

/* Mouse le jaane par (hover) dropdown dikhega */
.has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    top: 100%; /* Sahi position par aa jayega */
}

.dropdown-menu li {
    border-bottom: 1px solid #333; /* Links ke beech mein line */
}

.dropdown-menu li:last-child {
    border-bottom: none; /* Aakhri link ke neeche line nahi hogi */
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #a0a0c0;
    text-decoration: none; /* Yeh line add karein */
    transition: background-color 0.2s, color 0.2s;
}

/* Dropdown ke links par hover karne par color badlega */
.dropdown-menu li a:hover {
    background-color: #8A2BE2; /* Purple */
    color: #ffffff;
}
.dropdown-menu.currency-dropdown {
    min-width: 100px; /* Chhota width currency dropdown ke liye */
}

.has-dropdown:hover .dropdown-menu {
    top: 120%; /* Dropdown ki position theek karne ke liye */
}
/*
==============================================
NEW PAGE STYLES (For mini-hosting.html, etc.)
==============================================
*/

/* --- Page Title Section --- */
.page-title-section {
    padding-top: 150px; /* Header ke liye jagah */
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(110deg, #1e1147 0%, #4c1147 100%);
}
.page-title-section h1 {
    font-size: 48px;
    margin-bottom: 15px;
}
.page-title-section p {
    font-size: 18px;
    color: var(--text-muted);
}

/* --- Pricing Section --- */
.pricing-section {
    padding-top: 100px;
    padding-bottom: 100px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.pricing-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.2);
}
.pricing-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
}
.card-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}
.pricing-card .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 30px;
}
.pricing-card .price span {
    font-size: 16px;
    color: var(--text-muted);
}
.pricing-card .feature-list {
    text-align: left;
    margin-bottom: 40px;
}
.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--primary-purple);
    color: white;
    padding: 5px 30px;
    font-size: 14px;
    font-weight: 600;
    transform: rotate(45deg);
}
/*
==============================================
NEW PAGE STYLES (For domain.html)
==============================================
*/

/* --- Domain Search Section --- */
.domain-search-section {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(110deg, #1e1147 0%, #4c1147 100%);
}
.domain-search-section h1 {
    font-size: 48px;
    margin-bottom: 15px;
}
.domain-search-section p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.search-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 10px;
}
.search-box input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 18px;
    background: none;
}
.search-box button {
    border: none;
    background: var(--gradient-button);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 0 40px;
    border-radius: 8px;
    cursor: pointer;
}

/* --- TLD Pricing Section --- */
.tld-pricing-section {
    padding: 100px 0;
}
.tld-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.tld-item {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}
.tld-name {
    font-size: 24px;
    font-weight: 600;
}
.tld-price {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-purple);
}
/*
==============================================
NEW PAGE STYLES (For support.html)
==============================================
*/
.support-section {
    padding: 100px 0;
}
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.support-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.support-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
}
.support-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}
.support-card .details-button {
    text-decoration: none;
    display: inline-block;
}
/*
==============================================
NEW PAGE STYLES (For about.html & contact.html)
==============================================
*/

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}
.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-purple);
}
.about-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Yeh image ko stretch hone se bachata hai */
    border-radius: 20px;
    min-height: 500px; /* Ek minimum height set kar di hai */
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info column is smaller */
    gap: 50px;
}
.contact-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
}
.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}
.contact-info ul {
    list-style: none;
}
.contact-info li {
    margin-bottom: 15px;
    color: var(--text-muted);
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 16px;
}
.contact-form button {
    width: 100%;
    border: none;
}