@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563EB; /* Royal Blue */
    --primary-dark: #1E40AF;
    --secondary-color: #0F172A; /* Dark Slate */
    --accent-color: #F59E0B; /* Amber */
    --success-color: #10B981;
    --danger-color: #EF4444;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero & Domain Search */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1e293b 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero.hero-compact {
    padding: 4rem 2rem;
    min-height: auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    color: #94a3b8;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero p.no-margin {
    margin-bottom: 0;
}

.domain-search-container {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.domain-input {
    flex: 1;
    border: 2px solid #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.domain-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    min-width: 120px;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Domain Extensions Badges */
.domain-extensions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.extension-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
}

.extension-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--white);
}

.extension-badge:active {
    transform: scale(0.95);
}

.extension-badge.com i {
    color: #60a5fa;
}

.extension-badge.tr i {
    color: #f87171;
}

/* Domain Results */
.domain-results {
    max-width: 700px;
    margin: 2rem auto 0;
    display: none; /* Hidden by default */
}

.domain-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.domain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.domain-card.taken {
    background-color: #f1f5f9;
    opacity: 0.9;
    border-color: #cbd5e1;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.domain-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.domain-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.4), transparent);
}

.icon-com {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.icon-tr {
    background: linear-gradient(135deg, #EF4444, #B91C1C);
}

.icon-net {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.domain-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.domain-status {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2px;
}

.domain-status.success {
    color: var(--success-color);
}

.domain-price {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2px;
}

.text-taken {
    color: var(--danger-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 2px;
}

.btn-buy {
    background: var(--success-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-buy:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* General Section */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Pricing Grid */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-label {
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--primary-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.discount-badge {
    background: #ffedd5;
    color: #c2410c;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 0.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.price-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.price-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.price-card.popular:hover {
    transform: scale(1.05);
}

.price-card.featured {
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom-left-radius: var(--radius);
}

.price-header {
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.price-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.period {
    color: var(--text-light);
    font-size: 0.9rem;
}

.price-body {
    padding: 2rem;
    flex: 1;
}

.price-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.price-features i {
    color: var(--success-color);
}

.price-footer {
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-price {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
}

.btn-price:hover {
    background: var(--primary-color);
}

.btn-price.btn-success {
    background: var(--success-color);
}

.btn-price.btn-success:hover {
    background: #059669;
}

/* FAQ */
.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.faq-item p {
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-col p {
    color: #94a3b8;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        position: relative;
        background: var(--white); /* Ensure header is white */
    }

    .hamburger {
        display: block;
        z-index: 1002;
        color: var(--secondary-color);
        background: transparent;
        padding: 0.5rem;
        border: 2px solid var(--secondary-color); /* Add border for visibility */
        border-radius: 8px;
        transition: var(--transition);
    }

    .hamburger:hover, .hamburger:active {
        background: var(--secondary-color);
        color: var(--white);
    }

    .hamburger.active i::before {
        content: "\f00d"; /* FontAwesome X icon */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Start from top */
        align-items: center;
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 100%;
        height: 100vh;
        background: var(--white); /* Light background for cleaner look */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding: 6rem 2rem 2rem; /* Top padding for header space */
        opacity: 0;
        overflow-y: auto; /* Allow scrolling if menu is long */
    }

    .nav-links.active {
        left: 0; /* Slide in */
        opacity: 1;
    }

    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        border-bottom: 1px solid #f1f5f9; /* Separator */
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for links */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--secondary-color); /* Dark text */
        display: block;
        padding: 1rem;
        border-radius: 8px;
        transition: var(--transition);
        white-space: normal;
        font-weight: 600;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-color);
        background: #eff6ff; /* Light blue background on active/hover */
        transform: translateX(5px);
    }

    .nav-links a i {
        margin-right: 10px;
        color: var(--primary-color);
    }

    .hero {
        padding: 4rem 1rem 3rem; /* Adjust padding for mobile */
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .domain-search-container {
        flex-direction: column;
        padding: 1.5rem;
        margin-top: 2rem;
        gap: 1rem;
    }
    
    .domain-input {
        width: 100%;
    }

    .domain-extensions {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .extension-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.15); /* More visible */
    }

    .search-btn {
        width: 100%;
        padding: 1rem;
        margin-top: 0; /* Gap handled by flex container */
        background: var(--primary-color) !important; /* Force color */
        color: white !important;
    }
    
    /* Improve other sections on mobile */
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .features-grid, .pricing-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 1.5rem;
    }

    /* Fix Buttons on Mobile */
    .btn-buy {
        width: 100%;
        justify-content: center;
        background: var(--success-color) !important;
        color: white !important;
        padding: 1rem;
        margin-top: 1rem;
    }

    .btn-price {
        width: 100%;
        background: var(--secondary-color) !important;
        color: white !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links a:hover {
        padding-left: 0; /* Disable padding shift on mobile for better touch UX */
        color: var(--white);
    }
}

/* Animations & Special Classes */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .8; transform: scale(1.05); }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: fadeUp 1s ease forwards;
}

.loader-logo span {
    color: var(--secondary-color);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Simplified Social Media Cards */
.social-card {
    transition: var(--transition);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.social-header-bronze,
.social-header-silver,
.social-header-diamond,
.social-header-news {
    background: var(--secondary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.social-card .price-header h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.social-card .price {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.social-card .price-features li i {
    color: var(--success-color);
    margin-right: 0.75rem;
}

.social-card .btn-price {
    background: var(--primary-color);
    color: white;
}

.social-card .btn-price:hover {
    background: var(--primary-dark);
}

/* Remove old overrides */
.text-instagram { color: #E1306C; }
.text-tiktok { color: #000000; }

.benefit-card {
    text-align: left;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.benefit-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Background Utility Classes */
.bg-light-blue {
    background-color: #f0f9ff;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-0 {
    margin-bottom: 0;
}