/*
Theme Name: Code Pixels Unlimited
Theme URI: https://codepixels.unlimited
Author: PC Digital Design
Author URI: https://codepixels.unlimited
Description: Premium WordPress theme for web design agency
Version: 1.0
License: GPL v2 or later
Text Domain: codepixels

        /* --- CSS VARIABLES & RESET --- */
        :root {
            /* Brand Palette */
            --color-blue-primary: #1D97C9;
            --color-blue-light: #A9CFE4;
            --color-accent-deep: #BC5F00;
            --color-accent-orange: #FCA502;
            --color-accent-yellow: #FDC601;
            
            /* Neutrals */
            --color-bg: #F8FBFD;
            --color-text-dark: #0F172A;
            --color-text-light: #475569;
            --color-white: #FFFFFF;

            /* Spacing & Layout */
            --container-width: 1200px;
            --header-height: 80px;
            --border-radius: 12px;
            
            /* Animation */
            --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background-color: var(--color-bg);
            color: var(--color-text-dark);
            overflow-x: hidden;
            line-height: 1.6;
        }

        h1, h2, h3, h4 {
            font-family: 'Space Grotesk', sans-serif;
            line-height: 1.1;
            font-weight: 700;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        /* --- UTILITIES --- */
        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 24px;
        }

        .section-padding {
            padding: 100px 0;
        }

        .text-gradient {
            background: linear-gradient(135deg, var(--color-blue-primary), var(--color-accent-deep));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* --- BUTTONS --- */
        .btn {
            display: inline-block;
            padding: 14px 32px;
            border-radius: 50px;
            font-weight: 600;
            letter-spacing: 0.5px;
            transition: var(--transition-smooth);
            cursor: pointer;
            border: none;
            font-size: 1rem;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--color-blue-primary), var(--color-accent-deep)); /* Peacock gradient */
            color: var(--color-white);
            box-shadow: 0 10px 20px -5px rgba(29, 151, 201, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px -5px rgba(29, 151, 201, 0.6);
        }

        .btn-primary::after {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(135deg, var(--color-accent-orange), var(--color-accent-yellow));
            opacity: 0;
            transition: var(--transition-smooth);
            z-index: 1;
        }
        
        .btn-primary span {
            position: relative;
            z-index: 2;
        }

        .btn-primary:hover::after {
            opacity: 0; /* Gradient shift handled by base transform */
            background: var(--color-accent-deep);
        }

        .btn-outline {
            border: 2px solid var(--color-blue-primary);
            color: var(--color-blue-primary);
            background: transparent;
        }

        .btn-outline:hover {
            background: var(--color-blue-primary);
            color: white;
        }

        /* --- NAVIGATION --- */
        .navbar {
            height: var(--header-height);
            display: flex;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(169, 207, 228, 0.3);
            transition: var(--transition-smooth);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--color-text-dark);
        }

        .logo-icon {
            width: 32px;
            height: 32px;
            background: var(--color-blue-primary);
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 2px;
            border-radius: 4px;
        }

        .logo-icon div {
            background: white;
            opacity: 0.8;
        }
        .logo-icon div:nth-child(2) { background: var(--color-accent-yellow); }
        .logo-icon div:nth-child(3) { background: var(--color-accent-orange); }

        .nav-menu {
            display: flex;
            gap: 40px;
            align-items: center;
        }

        .nav-link {
            font-size: 0.95rem;
            font-weight: 500;
            position: relative;
            color: var(--color-text-light);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0%;
            height: 2px;
            background: var(--color-accent-orange);
            transition: var(--transition-smooth);
        }

        .nav-link:hover {
            color: var(--color-blue-primary);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .mobile-toggle {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
        }

        /* --- HERO SECTION --- */
        #hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding-top: var(--header-height);
            overflow: hidden;
        }

        #canvas-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .hero-content {
            position: relative;
            max-width: 700px;
            z-index: 10;
        }

        .hero-tag {
            display: inline-block;
            background: var(--color-blue-light);
            color: var(--color-blue-primary);
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 24px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .hero-title {
            font-size: 4rem;
            margin-bottom: 24px;
            color: var(--color-text-dark);
        }

        .hero-desc {
            font-size: 1.25rem;
            color: var(--color-text-light);
            margin-bottom: 40px;
            max-width: 550px;
        }

        /* --- ABOUT / VALUE PROP --- */
        .value-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .value-text h2 {
            font-size: 2.5rem;
            margin-bottom: 24px;
        }

        .value-card {
            background: white;
            padding: 40px;
            border-radius: 24px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.05);
            position: relative;
            border: 1px solid rgba(169, 207, 228, 0.4);
        }

        .value-card::before {
            content: '';
            position: absolute;
            top: -2px; left: -2px; right: -2px; bottom: -2px;
            background: linear-gradient(45deg, var(--color-blue-primary), var(--color-accent-orange));
            z-index: -1;
            border-radius: 26px;
            opacity: 0.5;
            filter: blur(10px);
        }

        /* --- SERVICE SECTION --- */
        #service {
            background: linear-gradient(180deg, var(--color-bg) 0%, #E6F4FA 100%);
            text-align: center;
        }

        .service-container {
            max-width: 900px;
            margin: 0 auto;
        }

        .service-card {
            background: white;
            border-radius: 32px;
            overflow: hidden;
            box-shadow: 0 30px 60px -10px rgba(29, 151, 201, 0.15);
            margin-top: 50px;
            transition: var(--transition-smooth);
            display: grid;
            grid-template-columns: 1.5fr 1fr;
        }

        .service-info {
            padding: 60px;
            text-align: left;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .service-visual {
            background: var(--color-blue-primary);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Abstract Pixel Art in CSS */
        .pixel-art {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            transform: rotate(-15deg) scale(1.2);
        }
        .px {
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.2);
            border-radius: 4px;
            animation: pulse 3s infinite alternate;
        }
        .px:nth-child(2n) { background: var(--color-accent-yellow); opacity: 0.8; }
        .px:nth-child(3n) { background: var(--color-accent-orange); opacity: 0.8; }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.5; }
            100% { transform: scale(1.1); opacity: 1; }
        }

        .feature-list li {
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.1rem;
            color: var(--color-text-light);
        }

        .check-icon {
            color: var(--color-accent-deep);
            font-weight: bold;
        }

        /* --- WHY US --- */
        .why-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 60px;
        }

        .why-card {
            padding: 30px;
            background: white;
            border-radius: 16px;
            border: 1px solid #eee;
            transition: var(--transition-smooth);
        }

        .why-card:hover {
            transform: translateY(-10px);
            border-color: var(--color-blue-light);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }

        .icon-box {
            width: 50px;
            height: 50px;
            background: var(--color-blue-light);
            color: var(--color-blue-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            font-size: 1.5rem;
            margin-bottom: 20px;
        }

        /* --- CONTACT --- */
        #contact {
            text-align: center;
            background-color: #0F172A; /* Dark contrast */
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        #contact h2 { color: white; }
        #contact p { color: #94A3B8; }

        .cta-box {
            position: relative;
            z-index: 2;
            max-width: 600px;
            margin: 0 auto;
        }

        /* --- FOOTER --- */
        footer {
            background: white;
            padding: 40px 0;
            border-top: 1px solid #eee;
            text-align: center;
            color: var(--color-text-light);
        }

        /* --- ANIMATION UTILS --- */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease-out;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 968px) {
            .hero-title { font-size: 3rem; }
            .value-grid { grid-template-columns: 1fr; }
            .service-card { grid-template-columns: 1fr; }
            .service-visual { height: 200px; }
            
            .nav-menu {
                position: fixed;
                top: var(--header-height);
                left: 0;
                width: 100%;
                background: white;
                flex-direction: column;
                padding: 40px;
                border-bottom: 1px solid #eee;
                transform: translateY(-150%);
                transition: var(--transition-smooth);
                z-index: 900;
            }
            
            .nav-menu.open { transform: translateY(0); }
            .mobile-toggle { display: block; }
        }

        @media (max-width: 480px) {
            .hero-title { font-size: 2.2rem; }
            .btn { width: 100%; text-align: center; }
        }

 /* --- CUSTOM LOGO STYLES --- */
.custom-logo {
    height: 80px;
    width: auto;
    max-height: 80px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-wrapper .custom-logo-link {
    display: flex;
    align-items: center;
}

/* --- MENU STYLES FOR WORDPRESS MENU --- */
.nav-menu li {
    list-style: none;
}

.nav-menu li.menu-button {
    margin-left: 10px;
}

.nav-menu li.menu-button a.btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Footer Menu */
.footer-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-menu li {
    list-style: none;
}

.footer-menu a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-menu a:hover {
    color: var(--color-blue-primary);
}

/* Social Links */
.social-links a {
    color: var(--color-blue-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.social-links a:hover {
    color: var(--color-accent-orange);
    transform: translateY(-2px);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 40px;
        border-bottom: 1px solid #eee;
        transform: translateY(-150%);
        transition: var(--transition-smooth);
        z-index: 900;
        gap: 20px;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li.menu-button {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .nav-menu.open { transform: translateY(0); }
    
    .custom-logo {
        height: 35px;
    }
}       

/* --- HEADER CONTACT BUTTON (SEPARATE) --- */
.header-contact-btn {
    margin-left: 20px;
}

.header-contact-btn .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Mobile: Hide contact button in menu */
@media (max-width: 968px) {
    .nav-container {
        position: relative;
    }
    
    .header-contact-btn {
        display: none; /* Hide separate button on mobile */
    }
    
    /* Add contact button inside mobile menu */
    .nav-menu::after {
        content: '';
        display: block;
        text-align: center;
        margin-top: 20px;
    }
    
    .nav-menu::after {
        content: 'Contact Us';
        display: block;
        background: linear-gradient(135deg, var(--color-blue-primary), var(--color-accent-deep));
        color: white;
        padding: 12px 30px;
        border-radius: 50px;
        font-weight: 600;
        margin: 20px auto;
        width: fit-content;
        cursor: pointer;
    }
}

/* --- LOGO SIZE CONTROL --- */

/* Header Uploaded Logo */
.header-logo, .custom-logo {
    height: 40px; /* Default header logo size */
    width: auto;
    max-height: 40px;
    transition: var(--transition-smooth);
}

/* Header Default Logo (Text + Icon) */
.logo {
    font-size: 1.5rem; /* Default header text size */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.logo-icon {
    width: 32px; /* Default header icon size */
    height: 32px;
    transition: var(--transition-smooth);
}

/* FOOTER LOGO STYLES */
.footer-logo-wrapper {
    text-align: center;
}

/* Footer Uploaded Logo */
.footer-custom-logo {
    height: 50px; /* Default footer logo size - LARGER than header */
    width: auto;
    max-height: 50px;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

/* Footer Default Logo */
.footer-logo {
    font-size: 2.1rem; /* Default footer text size - LARGER than header */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-logo-icon {
    width: 40px; /* Default footer icon size - LARGER than header */
    height: 40px;
    background: var(--color-blue-primary);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    border-radius: 4px;
}

.footer-logo-icon div {
    background: white;
    opacity: 0.8;
}
.footer-logo-icon div:nth-child(2) { background: var(--color-accent-yellow); }
.footer-logo-icon div:nth-child(3) { background: var(--color-accent-orange); }

/* --- LOGO SIZE CONTROL CLASSES --- */

/* SMALL LOGOS */
.header-logo.small-logo,
.custom-logo.small-logo {
    height: 30px;
    max-height: 30px;
}

.logo.small-logo {
    font-size: 1.2rem;
}
.logo.small-logo .logo-icon {
    width: 24px;
    height: 24px;
}

.footer-custom-logo.small-logo {
    height: 35px;
    max-height: 35px;
}

.footer-logo.small-logo {
    font-size: 1.4rem;
}
.footer-logo.small-logo .footer-logo-icon {
    width: 30px;
    height: 30px;
}

/* MEDIUM LOGOS (Default) */
.header-logo.medium-logo,
.custom-logo.medium-logo {
    height: 40px;
    max-height: 40px;
}

.logo.medium-logo {
    font-size: 1.5rem;
}
.logo.medium-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-custom-logo.medium-logo {
    height: 50px;
    max-height: 50px;
}

.footer-logo.medium-logo {
    font-size: 1.8rem;
}
.footer-logo.medium-logo .footer-logo-icon {
    width: 40px;
    height: 40px;
}

/* LARGE LOGOS */
.header-logo.large-logo,
.custom-logo.large-logo {
    height: 50px;
    max-height: 50px;
}

.logo.large-logo {
    font-size: 1.8rem;
}
.logo.large-logo .logo-icon {
    width: 40px;
    height: 40px;
}

.footer-custom-logo.large-logo {
    height: 60px;
    max-height: 60px;
}

.footer-logo.large-logo {
    font-size: 2.2rem;
}
.footer-logo.large-logo .footer-logo-icon {
    width: 50px;
    height: 50px;
}

/* EXTRA LARGE LOGOS */
.header-logo.xlarge-logo,
.custom-logo.xlarge-logo {
    height: 60px;
    max-height: 60px;
}

.logo.xlarge-logo {
    font-size: 2.2rem;
}
.logo.xlarge-logo .logo-icon {
    width: 48px;
    height: 48px;
}

.footer-custom-logo.xlarge-logo {
    height: 70px;
    max-height: 70px;
}

.footer-logo.xlarge-logo {
    font-size: 2.5rem;
}
.footer-logo.xlarge-logo .footer-logo-icon {
    width: 60px;
    height: 60px;
}

/* Logo wrapper for alignment */
.logo-wrapper, .footer-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-wrapper {
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-logo, .custom-logo {
        height: 35px;
        max-height: 35px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .footer-custom-logo {
        height: 45px;
        max-height: 45px;
    }
    
    .footer-logo {
        font-size: 1.6rem;
    }
    
    .footer-logo-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .header-logo, .custom-logo {
        height: 30px;
        max-height: 30px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    .footer-custom-logo {
        height: 40px;
        max-height: 40px;
    }
    
    .footer-logo {
        font-size: 1.4rem;
    }
    
    .footer-logo-icon {
        width: 30px;
        height: 30px;
    }
}