/* ==========================================
   1. RESET & GLOBAL STYLES
   ========================================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

html{
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Rich, luxury cyber-dark gradient instead of a flat gray background */
    background: radial-gradient(circle at top right, #161224, #0b0910);
    color: #f1f5f9;
}

body{
    line-height: 1.6;
}

/* ==========================================
   2. NAVIGATION BAR
   ========================================== */
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    /* Sleek translucent background effect (Glassmorphism) */
    background-color: rgba(11, 9, 16, 0.85);
    backdrop-filter: blur(12px); 
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container{
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 42px;
    height: 42px;
    background-color: #1e1b29;
    border: 2px dashed #6366f1; /* Glowing accent border */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
    color: #a5b4fc;
    border-radius: 8px;
}

.company-name {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* Three-line Menu Button (Mobile View) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #f1f5f9;
    border-radius: 2px;
    transition: all 0.3s ease; 
}

/* Navigation Links */
.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #4f46e5; /* Neon indigo pop */
}

/* ==========================================
   3. HERO SECTION (With CSS Animated Grid)
   ========================================== */
.hero-section {
    min-height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    text-align: center;
    position: relative; /* Sets a boundary layer for absolute background elements */
    overflow: hidden;
}

/* The Magic Tech Grid Background */
.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%; /* Extra height allows the grid to scroll infinitely upwards */
    
    /* Using CSS gradients to draw fine 40px matrix grid lines */
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; /* Size of each individual grid square */
    background-position: center top;
    
    z-index: 1;
    /* Links our custom keyframes animation loop below */
    animation: gridTravel 25s linear infinite; 
}

/* Smooth Infinite Grid Drift Keyframes */
@keyframes gridTravel {
    0% {
        transform: translateY(0);
    }
    100% {
        /* Moves the grid down exactly one square size ratio smoothly */
        transform: translateY(-50%); 
    }
}

/* Dark Tint Overlay to keep text perfectly crisp and uncrowded */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Blends the grid into neon indigo and fades perfectly into the solid background below */
    background: linear-gradient(
        to bottom,
        rgba(11, 9, 16, 0.8) 0%,
        rgba(22, 18, 36, 0.4) 60%,
        #0b0910 100%
    );
    z-index: 2;
}

/* Pushes text elements to the absolute front layer */
.hero-content {
    max-width: 850px; 
    z-index: 3;
}

/* Energetic subline badge */
.hero-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #6366f1;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    background: rgba(79, 70, 229, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -1px;
}

/* Colorful linear text mask gradient */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: #cbd5e1; 
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Neon interactive primary call-to-action button */
.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.6);
    background: linear-gradient(135deg, #5a52e6 0%, #8b4eff 100%);
}

/* ==========================================
   4. RESPONSIVE MEDIA QUERIES (Mobile View)
   ========================================== */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0b0910;
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }

    .nav-links a {
        margin: 1.2rem 0;
        font-size: 1.1rem;
        display: block;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* ==========================================
   5. PORTFOLIO SHOWCASE SECTION
   ========================================== */
.portfolio-section {
    min-height: 100vh;
    padding: 8rem 2rem 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-intro {
    text-align: center;
    max-width: 750px; 
    margin-bottom: 5rem;
}

.portfolio-intro h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.portfolio-intro p {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.7;
}

/* Flexbox Grid Container */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 3rem;    
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

/* Clickable Premium Cyber Cards */
.portfolio-card {
    background-color: #12101a;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 2.5rem 1.8rem;
    border-radius: 16px;
    text-decoration: none; 
    color: inherit;         
    flex: 1 1 320px;       
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;   
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Card Hover Evolution: Lift, glow, and spotlight border */
.portfolio-card:hover {
    transform: translateY(-10px); 
    border-color: rgba(99, 102, 241, 0.4);       
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.15); 
}

.portfolio-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.portfolio-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1; 
}

/* Call to action styling inside card */
.view-project {
    font-size: 0.95rem;
    color: #6366f1;
    font-weight: 700;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.portfolio-card:hover .view-project {
    color: #a5b4fc;
    letter-spacing: 0.5px; /* Subtle organic text stretch on hover */
}

/* ==========================================
   6. PORTFOLIO DEVICE MOCKUPS & VIDEO LAYOUT
   ========================================== */
.browser-mockup {
    width: 100%;
    background-color: #1e1b29; /* Deep indigo slate chrome bar */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none; 
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.browser-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.browser-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.portfolio-video {
    width: 100%;
    height: auto;
    display: block;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #0b0910; 
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-video {
    transform: scale(1.02);
}








/* ==========================================
   8. SERVICES & PRICING SECTION
   ========================================== */
.services-section {
    min-height: 100vh;
    padding: 8rem 2rem 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Alternating layout layer depth using our deep cyber background */
    background: radial-gradient(circle at bottom left, #161224, #0b0910);
}

.services-intro {
    text-align: center;
    max-width: 750px;
    margin-bottom: 5rem;
}

.services-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #a855f7; /* Purple accent tagline */
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.services-intro h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.services-intro p {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.7;
}

/* Flexbox Matrix Container */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    align-items: stretch; /* Forces all cards to stretch to the exact same height */
}

/* Core Pricing Card Architecture */
.pricing-card {
    background-color: #12101a;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 2.2rem;
    border-radius: 20px;
    flex: 1 1 320px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

/* Featured 'Design & Launch' Card Pop Elements */
.pricing-card.featured-tier {
    background-color: #161224;
    border: 1px solid rgba(99, 102, 241, 0.3);
    /* Injects a striking indigo neon backlight glow */
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.12);
}

.pricing-card.featured-tier:hover {
    box-shadow: 0 15px 45px rgba(79, 70, 229, 0.22);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Badges styling */
.tier-badge {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.tier-badge.featured-badge {
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    align-self: flex-start; /* Keeps the badge tightly wrapped around text width */
}

.pricing-card h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Bold Typography Focus for Pricing Numbers */
.price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
}

.tier-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
}

/* Uncrowded Clean Checklist Items */
.features-list {
    list-style: none; /* Removes messy default bullets */
    margin-bottom: 3rem;
    flex-grow: 1; /* Automatically aligns all checkout buttons uniformly at the bottom */
}

.features-list li {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 24px;
}

/* Injects a custom purple checkmark symbol before each feature rule item */
.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 900;
}

.featured-tier .features-list li::before {
    color: #a855f7; /* Changes checkmark to pink-purple on featured card */
}

/* Action Buttons Inside Cards */
.tier-btn {
    display: block;
    text-align: center;
    padding: 0.9rem 1.5rem;
    background-color: #1e1b29;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.tier-btn:hover {
    background-color: #252136;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Special Glowing Button for the Main Package */
.tier-btn.primary-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.tier-btn.primary-btn:hover {
    background: linear-gradient(135deg, #5a52e6 0%, #8b4eff 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    transform: translateY(-1px);
}

/* ==========================================
   9. PRICING MOBILE MEDIA RESPONSIVENESS
   ========================================== */
@media screen and (max-width: 768px) {
    .services-intro h2 {
        font-size: 2.2rem;
    }
    
    .pricing-card {
        padding: 2.5rem 1.5rem;
    }
}









/* ==========================================
   10. CONTACT & ABOUT SECTION
   ========================================== */
.contact-section {
    min-height: 100vh;
    padding: 8rem 2rem 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fades back into our core luxury dark theme color palette */
    background: radial-gradient(circle at top left, #161224, #0b0910);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    max-width: 1150px;
    width: 100%;
    align-items: center;
}

/* Left Column Styling */
.contact-info-box {
    flex: 1 1 450px;
}

.contact-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #6366f1; /* Indigo brand focus accent color */
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.contact-info-box h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.about-text {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.direct-details {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.detail-icon {
    font-size: 1.2rem;
    background-color: #1e1b29;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.detail-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Right Column: Premium Form Styling */
.contact-form-box {
    flex: 1 1 400px;
    background-color: #12101a;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.agency-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Clean, Cyber Input Architecture */
.form-group input, 
.form-group select, 
.form-group textarea {
    background-color: #1a1726;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

/* Removes default styling options for select elements on desktop */
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'><path stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Smooth Focus States: Glowing input fields on user click */
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none; /* Strip off the default ugly browser focus line */
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background-color: #1e1b29;
}

/* Form Action Button */
.form-submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    background: linear-gradient(135deg, #5a52e6 0%, #8b4eff 100%);
}

/* ==========================================
   11. CONTACT MEDIA RESPONSIVENESS
   ========================================== */
@media screen and (max-width: 768px) {
    .contact-container {
        gap: 3rem;
    }

    .contact-info-box h2 {
        font-size: 2.2rem;
    }

    .contact-form-box {
        padding: 2rem 1.5rem;
    }
}