/* stunning-3d.css */
:root {
    --bg-color: #050510;
    --card-bg: rgba(20, 20, 35, 0.6);
    --primary-color: #ffffff;
    --text-muted: #94a3b8;
    --accent-color: #6366f1;
    /* Indigo 500 */
    --accent-glow: #818cf8;
    --success-color: #10b981;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    --font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    color: var(--primary-color);
    font-family: var(--font-family);
    margin: 0;
    overflow-x: hidden;
}

/* 3D Hero Section */
.hero-wrapper {
    min-height: 80vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    perspective: 1000px;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.hero-content {
    text-align: left;
    z-index: 10;
    transform-style: preserve-3d;
    max-width: 600px;
    margin-right: 4rem;
    animation: float HeroFloat 6s ease-in-out infinite;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    /* Slightly smaller for balance */
    color: var(--text-muted);
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* Domain Evolution Animation */
.evolution-container {
    position: relative;
    width: 450px;
    height: 300px;
    perspective: 1000px;
    /* margin-right: 5%; */
}

.evo-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
    backface-visibility: hidden;
    transition: transform 1s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 1s, border-color 1s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* State 1: New Domain */
.evo-card.new {
    border-color: rgba(255, 255, 255, 0.1);
    transform: rotateY(0deg);
    opacity: 1;
    animation: cycleNew 8s infinite;
}

/* State 2: Aged Domain */
.evo-card.aged {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
    transform: rotateY(180deg);
    opacity: 0;
    animation: cycleAged 8s infinite;
}

.evo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    /* More space for absolute badge */
    margin-top: 1rem;
    display: block;
}

.evo-stat {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.evo-stat span:last-child {
    font-weight: 600;
    color: #fff;
}

.evo-card.aged .evo-stat span:last-child {
    color: var(--success-color);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Icons/Badges */
.status-badge {
    position: absolute;
    top: 0.8rem;
    /* Moved up */
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.evo-card>p {
    position: absolute;
    bottom: 0.8rem;
    /* Moved down */
    left: 0;
    width: 100%;
    margin: 0;
    font-weight: 600;
}

.evo-card.new .status-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.evo-card.aged .status-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

@keyframes cycleNew {

    0%,
    45% {
        transform: rotateY(0deg);
        opacity: 1;
    }

    50%,
    95% {
        transform: rotateY(-180deg);
        opacity: 0;
    }

    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

@keyframes cycleAged {

    0%,
    45% {
        transform: rotateY(180deg);
        opacity: 0;
    }

    50%,
    95% {
        transform: rotateY(0deg);
        opacity: 1;
    }

    100% {
        transform: rotateY(180deg);
        opacity: 0;
    }
}

/* Navigation */
header {
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Cards & Tables */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    margin-bottom: 2rem;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-muted);
}

.data-table th,
.data-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: var(--glass-border);
    transition: background 0.2s;
}

.data-table th {
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-buy {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-buy:hover {
    background: #10b981;
    color: black;
    box-shadow: 0 0 15px #10b981;
}

/* Animations */
@keyframes HeroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes FadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-wrapper {
    animation: FadeUp 0.8s ease-out forwards;
    opacity: 0;
    /* JS will trigger */
}

/* Footer */
footer {
    background: #02020a;
    border-top: var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: 0.3s;
}

/* Services Page */
.services-hero {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #fff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* Carousel Container */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.services-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 1rem 3rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: var(--glass-border);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.scroll-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

/* Service Card - Compact Design */
.service-card {
    flex: 0 0 260px;
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.9), rgba(10, 10, 25, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    scroll-snap-align: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-card.popular {
    border: 1px solid var(--success-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.card-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.card-badge.hot {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.service-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0 0 1rem;
}

.card-price {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.card-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    text-align: left;
}

.service-card li {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card li:last-child {
    border-bottom: none;
}

.card-btn {
    display: block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.6rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.card-btn:hover {
    background: var(--accent-glow);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.service-card.popular .card-btn {
    background: var(--success-color);
    color: #000;
}

.service-card.popular .card-btn:hover {
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.pagination-wrapper a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.pagination-wrapper .page-active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.pagination-wrapper .page-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Badges */
.niche-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-glow);
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    font-size: 0.8rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.code-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c7d2fe;
    font-family: monospace;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 2rem;
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .evolution-container {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Header */
    header {
        padding: 1rem;
    }

    header nav {
        display: none;
    }

    .logo-text {
        font-size: 1.2rem !important;
    }

    /* Hero */
    .hero-wrapper {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .hero-buttons {
        justify-content: center !important;
    }

    .evolution-container {
        width: 100%;
        height: 300px;
    }

    .evo-card {
        padding: 1rem 0.75rem;
    }

    .evo-card .status-badge {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.5rem !important;
        top: 0.5rem !important;
    }

    .evo-card .evo-title {
        font-size: 0.95rem !important;
        margin-top: 1.2rem !important;
        margin-bottom: 0.6rem !important;
    }

    .evo-card .evo-stat {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }

    .evo-card>p {
        font-size: 0.65rem !important;
        bottom: 0.4rem !important;
    }

    /* Services Hero */
    .services-hero {
        padding: 2rem 1rem;
    }

    .services-hero h1 {
        font-size: 2rem;
    }

    .services-hero p {
        font-size: 1rem;
    }

    /* Services Carousel */
    .carousel-wrapper {
        padding: 0 1rem;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .scroll-left {
        left: 5px;
    }

    .scroll-right {
        right: 5px;
    }

    .services-carousel {
        padding: 1rem 0.5rem 2rem;
        gap: 1rem;
    }

    .service-card {
        flex: 0 0 280px;
        padding: 1.2rem;
    }

    .card-price {
        font-size: 1.5rem;
    }

    /* Data Tables */
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .glass-card {
        padding: 1rem;
        border-radius: 12px;
    }

    /* Section Wrappers */
    .section-wrapper {
        margin: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    /* Category Headers */
    .category-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }

    /* Footer */
    .site-footer {
        padding: 2rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .footer-col h4 {
        margin-bottom: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Buttons */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .btn-buy {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Pagination */
    .pagination-wrapper {
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-card {
        padding: 1.25rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .evolution-container {
        height: 180px;
    }

    .service-card {
        flex: 0 0 260px;
    }

    .card-price {
        font-size: 1.3rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }

    .btn-buy {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}