/* 
   OmnieFix - Main Stylesheet (Modern Overhaul)
   Theme: Tech Dark, Vibrant, Immersive
*/

:root {
    /* Color Palette */
    --primary-color: #8b2fc9;
    /* Vibrant Neon Purple */
    --primary-dark: #4b0082;
    /* Deep Indigo */
    --primary-light: #d0a3ff;
    /* Bright Lilac Glow */
    --accent-color: #00f2ff;
    /* Cyan/Teal Accent for Tech feel */

    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --text-dark: #0f0518;
    /* Deepest Background Tone */

    --bg-dark: #0f0518;
    /* Main Background */
    --bg-card: rgba(255, 255, 255, 0.03);
    /* Glass Card on Dark */
    --bg-card-hover: rgba(139, 47, 201, 0.1);

    --gradient-hero: linear-gradient(135deg, #0f0518 0%, #240046 100%);
    --gradient-text: linear-gradient(90deg, #fff 0%, #d0a3ff 100%);
    --gradient-primary: linear-gradient(90deg, #8b2fc9 0%, #5e17eb 100%);

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 90px;
    --border-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Effects */
    --shadow-glow: 0 0 40px rgba(139, 47, 201, 0.25);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
    --blur-strong: blur(20px);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

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

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(94, 23, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(94, 23, 235, 0.5);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--primary-dark);
}

/* Header - Fully Transparent, Right Aligned */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent !important;
    /* Force transparency */
    border-bottom: none;
    box-shadow: none;
    padding-top: 20px;
    height: auto;
}

/* Ensure no white bar exists */
header::before,
header::after {
    display: none;
}

.navbar {
    display: flex;
    justify-content: flex-end;
    /* Move menu to the right */
    align-items: center;
    height: var(--header-height);
    padding-right: 40px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    transition: var(--transition);
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    /* Ensure above overlay */
}

/* Scroll Effect (Optional: adds slight dark blur IF scrolled down for readability on content) */
header.scrolled {
    background: rgba(15, 5, 24, 0.9) !important;
    backdrop-filter: blur(10px);
    padding-top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 47, 201, 0.2) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(75, 0, 130, 0.3) 0%, transparent 60%);
    filter: blur(100px);
    z-index: 0;
}

/* Centered Layout */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    /* Prevent edge touching on mobile */
}

.hero-logo-large {
    max-width: 320px;
    filter: drop-shadow(0 0 30px rgba(139, 47, 201, 0.5));
    margin-bottom: 30px;
}

.hero-text h1 {
    font-size: 4.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin: 0 auto 40px;
    max-width: 700px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about {
    background: #0f0518;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.rounded-img {
    border-radius: 30px;
    filter: grayscale(20%) contrast(110%);
    box-shadow: var(--shadow-card);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-glow);
    text-align: center;
}

.experience-badge .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.experience-badge .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.section-subtitle {
    color: var(--primary-light);
    letter-spacing: 3px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
    font-weight: 700;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 24px;
}

.lead {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.5;
}

.check-list li {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.check-list i {
    color: var(--accent-color);
    margin-right: 12px;
}

/* Services */
.services {
    background: #150821;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px 32px;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(139, 47, 201, 0.1) 100%);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

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

/* CTA */
.cta-section {
    background: var(--primary-dark);
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* Contact */
.contact {
    background: var(--bg-dark);
}

.contact-wrapper {
    background: #1a0b29;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item i {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--text-white);
}


.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 47, 201, 0.1);
    background: black;
    outline: none;
}

/* Footer */
footer {
    background: black;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
}

.footer-logo h3 {
    font-size: 2rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================= */

/* Tablet & Smaller Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .about-grid {
        gap: 40px;
    }
}

/* Mobile & Tablet (max-width: 968px) */
@media (max-width: 968px) {

    /* Layout Stacking */
    .contact-wrapper,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero {
        padding-top: 100px;
        /* Less padding on mobile */
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    /* Navigation - Hamburger Menu */
    .navbar {
        justify-content: flex-end;
        /* Keep toggle right */
        padding-right: 24px;
    }

    .hamburger {
        display: block;
        /* Show hamburger */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: rgba(15, 5, 24, 0.98);
        /* Solid dark background */
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 1000;
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .nav-links a {
        font-size: 2rem;
        /* Larger font for mobile tap */
    }

    /* Ensure elements don't overflow */
    .hero-logo-large {
        max-width: 240px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-image {
        order: -1;
    }

    /* Image on top */
    .about-content {
        text-align: left;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 32px 24px;
    }

    .experience-badge {
        right: 0;
        left: 0;
        margin: auto;
        bottom: -20px;
        width: fit-content;
    }
}