/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #ff3366;
    --primary-glow: rgba(255, 51, 102, 0.4);
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --bg-dark: #020617;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Nav */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: 0.4s;
}

nav:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#nav-logo {
    height: 40px;
    /* Fixed height */
    max-width: 150px;
    /* Safety limit */
    width: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--primary-glow);
    display: block;
    transition: 0.3s;
}

#nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-toggle {
    display: none !important;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 400;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--text-light);
    /* Keeping it white */
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 100%);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #ff3366 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 77, 77, 0.5);
}

/* Services Section */
.section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title div {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Portfolio Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    color: var(--text-light);
    /* Explicitly white */
    text-align: center;
    padding: 20px;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.gallery-overlay p {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav {
        padding: 10px 20px;
        width: 95%;
    }

    .menu-toggle {
        display: block !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 0;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        text-align: center;
        gap: 20px;
        transition: 0.3s;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links .nav-btn {
        margin-top: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 5%;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    /* Bottom Nav Styles */
    .bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 92% !important;
        max-width: 500px;
        background: rgba(15, 23, 42, 0.9) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 25px !important;
        padding: 12px 0 !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 9999 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    }

    .bottom-nav-item {
        text-decoration: none !important;
        color: #94a3b8 !important;
        /* var(--text-muted) fallback */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 11px !important;
        transition: 0.3s;
        flex: 1;
    }

    .bottom-nav-item i {
        font-size: 1.3rem !important;
        color: inherit !important;
    }

    .bottom-nav-item:active,
    .bottom-nav-item:hover {
        color: #ff3366 !important;
        /* var(--primary-color) fallback */
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

/* Footer */
footer {
    padding: 50px 10%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}