:root {
    --bg-dark: #0a0a0f;
    --surface: rgba(20, 20, 30, 0.6);
    --surface-hover: rgba(30, 30, 45, 0.8);
    --accent-primary: #8b5cf6;
    /* Violet */
    --accent-secondary: #ec4899;
    /* Pink */
    --accent-glow: rgba(236, 72, 153, 0.4);
    --text-main: #ffffff;
    --text-secondary: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-dark);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 3D Grid/Plane Effect */
.hero-3d-plane {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 79px,
            rgba(236, 72, 153, 0.15) 79px,
            rgba(236, 72, 153, 0.15) 80px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 79px,
            rgba(139, 92, 246, 0.15) 79px,
            rgba(139, 92, 246, 0.15) 80px);
    transform: perspective(500px) rotateX(60deg) translateY(50%);
    transform-origin: center bottom;
    pointer-events: none;
}

/* Ensure content is above background */
.hero>* {
    z-index: 2;
    position: relative;
}

.hero-logo {
    width: 160px;
    margin-bottom: 2.5rem;
    animation: float 6s ease-in-out infinite;
    /* Removed drop-shadow to blend better with background */
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 4rem;
    font-weight: 300;
}

.scroll-down {
    position: absolute;
    bottom: 3rem;
    color: var(--text-secondary);
    animation: fadeInDown 2s infinite;
    font-size: 1.2rem;
    cursor: pointer;
    /* Clickable indication */
    transition: color 0.3s;
    z-index: 10;
}

.scroll-down:hover {
    color: var(--accent-secondary);
}

/* --- Services Section --- */
.services-section {
    padding: 6rem 2rem;
    /* Differentiated Background: Slightly lighter/different tone than Hero */
    background-color: var(--bg-dark);
    position: relative;
    border-top: 1px solid var(--border-color);
    /* Subtle separator */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 3rem 2rem;
    border-radius: 16px;
    background-color: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    /* CENTERED ALIGNMENT UPDATE */
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    /* Lighter hover for contrast */
    background-color: var(--surface-hover);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.service-icon {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.8));
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.3);
}

.service-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* BUTTON STYLING UPDATE */
.pricing-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    /* Solid Button Color */
    color: #ffffff;
    /* Text contrast */
    border: none;
    padding: 0.8rem 1.8rem;
    /* Proper padding for button shape */
    border-radius: 50px;
    /* Rounded pill shape */
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Ensure no underline */
}

.pricing-btn:hover {
    gap: 0.8rem;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.pricing-btn::after {
    content: '\f178';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8em;
}

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

.section-header {
    margin-bottom: 4rem;
    text-align: left;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

.project-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Slightly adjusted shadow */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-image-container {
    height: 260px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    filter: blur(3px) brightness(0.7);
    transform: scale(1.05);
}

.project-card:hover .card-image {
    filter: blur(2px) brightness(0.9);
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.view-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #0f1c25;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    transition: all 0.3s;
    transform: translateY(10px);
}

.project-card:hover .view-btn {
    transform: translateY(0);
    opacity: 1;
}

.card-info {
    padding: 2rem;
    text-align: left;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    margin-bottom: 0.8rem;
    display: block;
    font-weight: 600;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Floating Contact Button --- */
.contact-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #ffffff;
    color: #0f1c25;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* --- Mods & Popups --- */
.modal,
.pricing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal.active,
.pricing-modal.active {
    display: flex;
    opacity: 1;
}

.pricing-content {
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-main);
}

.pricing-header-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding-bottom: 0.5rem;
    position: relative;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--text-main);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1.2rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.tab-panel {
    display: none;
    animation: fadeUp 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* Adjusted for better fit */
    gap: 1.5rem;
}

.package-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.package-card.featured {
    background: var(--surface-hover);
    border-color: var(--accent-secondary);
    transform: scale(1.02);
    box-shadow: 0 10px 30px var(--accent-glow);
    position: relative;
    z-index: 10;
}

.pkg-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.pkg-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-secondary);
}

.pkg-features {
    list-style: none;
    text-align: left;
    width: 100%;
}

.pkg-features li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
}

.pkg-features li i {
    color: var(--accent-secondary);
    margin-top: 4px;
    flex-shrink: 0;
}


/* Preview Modal */
.iframe-container {
    width: 100%;
    max-width: 450px;
    height: 85vh;
    background: #000;
    border-radius: 24px;
    border: 4px solid #2a3b4c;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    /* Context */
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-preview-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 2005;
    transition: background 0.3s;
}

.close-preview-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    /* Stack on mobile */
}

/* Animated Glow Orbs */
.glow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Behind canvas and content */
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: drift 10s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    animation-duration: 12s;
    animation-delay: -5s;
}

.orb-3 {
    top: 30%;
    left: 60%;
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    animation-duration: 15s;
    animation-delay: -2s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}