/* -------------------------------------------------------------------------- */
/*                               DESIGN SYSTEM                                */
/* -------------------------------------------------------------------------- */
:root {
    /* Colors - Premium Dark Theme */
    --color-bg-main: #050507;
    --color-bg-secondary: #0f0f13;
    --color-bg-card: rgba(20, 20, 25, 0.6);

    --color-primary: #7000ff;
    /* Electric Purple */
    --color-secondary: #00d2ff;
    /* Cyan */
    --color-accent: #ff0055;
    /* Hot Pink */

    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a5;

    --gradient-main: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    --gradient-text: linear-gradient(90deg, #fff, #a0a0a5);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.3), transparent 70%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Borders & Effects */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --backdrop-blur: blur(12px);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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


.reveal {
    /* opacity: 0; - Disabled to ensure visibility */
    /* transform: translateY(30px); */
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}


/* -------------------------------------------------------------------------- */
/*                                 COMPONENTS                                 */
/* -------------------------------------------------------------------------- */

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: var(--backdrop-blur);
    padding: 1rem 0;
    border-bottom: var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: var(--gradient-glow);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    /* Reset max-width as it's controlled by grid */
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Floating Visuals */
.hero-visual {
    position: relative;
    /* Changed from absolute */
    width: 100%;
    height: 600px;
    /* Fixed height for the visual container */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Reset other props */
    right: auto;
    top: auto;
    transform: none;
}

.glow-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-main);
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: -1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 380px;
    /* Increased slightly */
    transform: rotate(-5deg);
    transition: transform 0.3s;
}

.glass-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.window-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-content {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.keyword {
    color: #ff79c6;
}

.variable {
    color: #8be9fd;
}

.function {
    color: #50fa7b;
}

.string {
    color: #f1fa8c;
}

.property {
    color: #bd93f9;
}

.indent {
    padding-left: 20px;
}

.comment {
    color: #6272a4;
    margin-top: 10px;
    font-style: italic;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(15, 15, 19, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

.badge-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
    color: #61dafb;
    /* React Color */
}

.badge-2 {
    bottom: 20%;
    right: 0%;
    animation-delay: -2s;
    color: #2ecc71;
    /* Secure Green */
}

.badge-3 {
    bottom: 30%;
    left: -5%;
    animation-delay: -4s;
    color: #f1c40f;
    /* Fast Yellow */
}

.badge-php {
    top: 10%;
    left: 10%;
    animation-delay: -1s;
    color: #8892BF;
    /* PHP Purple */
}

.badge-flutter {
    bottom: 15%;
    left: 40%;
    animation-delay: -3s;
    color: #02569B;
    /* Flutter Blue */
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        height: 400px;
        order: -1;
        /* Show visual first/top on mobile? Or keep bottom? Let's keep distinct */
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        padding: 2rem;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
}

/* Services Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.service-card {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(112, 0, 255, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.service-card:hover .icon-box {
    background: var(--color-primary);
    color: white;
    transform: rotate(-5deg);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

/* Portfolio Section */
.bg-secondary {
    background-color: var(--color-bg-secondary);
}

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

.portfolio-item {
    background: var(--color-bg-main);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: var(--glass-border);
}

.portfolio-image {
    height: 250px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .placeholder-img,
.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Agency Section */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--color-secondary);
}

.agency-visual {
    display: flex;
    flex-wrap: wrap;
}

.visual-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: var(--glass-border);
    min-width: 200px;
    box-shadow: var(--shadow-card);
}

.visual-card h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.visual-card p {
    font-weight: 600;
}

/* Contact Section */
.max-w-800 {
    max-width: 800px;
}

.contact-form {
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.contact-info {
    margin-top: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: var(--glass-border);
    margin-top: 4rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(112, 0, 255, 0.6);
}