/* Production Site - Creative High-End Theme (Refined) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('carousel.css');

:root {
    --bg-main: #020617;
    /* Deepest Slate/Black */
    --bg-sec: #0f172a;
    --primary: #f97316;
    /* Fox Orange */
    --primary-glow: rgba(249, 115, 22, 0.4);
    --accent: #3b82f6;
    /* Blue (previous primary, now accent) */
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 25px var(--primary-glow), 0 0 10px var(--accent);
    }

    100% {
        box-shadow: 0 0 10px var(--primary-glow);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    /* Tighter layout for large text */
    color: white;
}

h1 {
    font-size: 4.5rem;
    /* Reduced from 5.5rem */
    line-height: 1.2;
    /* Increased line height for descenders */
    margin-bottom: 24px;
    padding-bottom: 0.2em;
    /* Extra space for descenders */
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 3.5rem;
    /* Larger Section Headers */
}

h3 {
    font-size: 2rem;
    /* Larger Card Headers */
}

p {
    font-size: 1.15rem;
    /* Larger Body Text */
    line-height: 1.7;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    /* Larger Nav */
    background: rgba(2, 6, 23, 0.95);
    /* Nearly solid */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    /* Larger Logo */
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-links a {
    color: #ffffff;
    /* Pure white for visibility */
    font-weight: 600;
    text-decoration: none;
    margin-left: 40px;
    /* Larger Links */
    font-size: 1.1rem;
    /* Larger Links */
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.3s;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu-toggle i {
    width: 28px;
    height: 28px;
}

/* Buttons in Hero/CTA */
.btn {
    display: inline-flex;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -5px var(--primary-glow);
}

.btn-outline {
    display: inline-flex;
    padding: 14px 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    z-index: 1;
    /* Above canvas */
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Base layer */
    pointer-events: none;
}

/* Background Effects */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    top: -10%;
    right: -5%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    bottom: -10%;
    left: -5%;
    animation-delay: 2s;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Cards (Glassmorphism + Tilt) */
.services {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    /* Above canvas */
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 60px 48px;
    /* Larger padding */
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-links a.btn {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-links a.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Process Section */
.process {
    padding: 120px 0;
    position: relative;
    border-top: 1px solid var(--border);
    background: transparent;
    z-index: 1;
    /* Above canvas */
}

.step-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    opacity: 0;
    /* JS Reveal */
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    opacity: 0.8;
    position: relative;
}

.step-num::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    border-radius: 12px;
}

/* CTA */
.cta-box {
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    margin-bottom: 16px;
    transition: 0.3s;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   =============================================== */

/* Tablet View (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .process>div>div:first-child {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Mobile View (< 768px) */
@media (max-width: 768px) {

    /* Container */
    .container {
        padding: 0 20px;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1rem;
    }

    /* Navigation */
    nav {
        padding: 16px 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 36px !important;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-content {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.05rem;
        padding: 8px 0;
    }

    .nav-links .btn {
        text-align: center;
        justify-content: center;
    }

    /* Buttons */
    .btn,
    .btn-outline {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        padding-top: 120px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content>div {
        flex-direction: row !important;
        gap: 10px !important;
        width: 100%;
        justify-content: center;
    }

    .hero-content .btn,
    .hero-content .btn-outline {
        width: auto;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        border-radius: 50px;
        white-space: nowrap;
    }

    .hero-content .btn-secondary {
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px);
    }

    .hero-content .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
    }

    .hero-content p {
        font-size: 1.05rem !important;
        margin: 16px 0 32px !important;
    }

    /* Glow Orbs */
    .glow-orb {
        filter: blur(60px);
    }

    .orb-1,
    .orb-2 {
        width: 300px;
        height: 300px;
    }

    /* Grids */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cards */
    .card {
        padding: 32px 24px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        width: 28px;
        height: 28px;
    }

    /* Services Section */
    .services {
        padding: 60px 0;
    }

    .services h2 {
        font-size: 2rem !important;
    }

    .services p {
        font-size: 1rem !important;
    }

    /* Projects Section */
    #projects h2 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    #projects>div>div>p {
        font-size: 0.95rem !important;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Process Section */
    .process {
        padding: 60px 0;
    }

    .process>div>div:first-child {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .step-num {
        font-size: 2rem;
    }


    /* Process Section (Why Choose Us) */
    .process {
        padding: 60px 0;
    }

    .process>div>div:first-child {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }

    /* Hide the gif image on mobile */
    .process>div>div:first-child>div:last-child {
        display: none;
    }

    .process h2 {
        font-size: 2rem !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }

    .process>div>div>div>p {
        font-size: 1rem !important;
        margin-bottom: 40px !important;
        text-align: center !important;
    }

    .step-item {
        flex-direction: row !important;
        gap: 20px !important;
        margin-bottom: 32px !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .step-num {
        font-size: 1.8rem !important;
        min-width: 60px;
        flex-shrink: 0;
        color: var(--primary) !important;
        opacity: 1 !important;
    }

    .step-num::after {
        display: none;
    }

    .step-item h3 {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }

    .step-item p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .step-number {
        font-size: 2rem;
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .step-content h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .step-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }


    /* CTA Box */
    .cta-box {
        padding: 40px 24px;
        text-align: center;
    }

    .cta-box h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .cta-box p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }


    /* Form Inputs */
    .form-input {
        font-size: 0.95rem;
        padding: 14px 16px;
    }

    .contact-form {
        max-width: 100% !important;
    }

    /* Footer */
    footer {
        padding: 40px 20px !important;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn,
    .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .card {
        padding: 24px 20px;
    }

    .cta-box {
        padding: 32px 20px;
    }

    .cta-box h2 {
        font-size: 1.75rem !important;
    }
}