/* 
 * Pixel Supreme - Premium Agency Theme
 * Theme: Black & Gold (Luxury Tech)
 * Author: Antigravity
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette - Premium Black & Gold */
    --bg-dark: #050505;
    /* Deepest Black */
    --bg-card: #0f0f0f;
    /* Dark Gray for cards */
    --bg-secondary: #0a0a0a;
    /* Slightly lighter black */

    --primary-gold: #FFD700;
    /* Standard Gold */
    --accent-gold: #FFA500;
    /* Amber Gold for gradients */
    --text-white: #ffffff;
    --text-muted: #a0a0a0;

    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);

    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--primary-gold);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: #000;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary-gold);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-white);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-gold);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    width: 220px;
    padding: 15px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.05);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-white);
    transition: all 0.3s ease-in-out;
}

/* FooterStyles */
footer {
    background: #000;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-white);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.newsletter-form {
    position: relative;
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--primary-gold);
}

.newsletter-form button {
    margin-top: 10px;
    width: 100%;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Global Table & Layout Fixes */

/* --- Universal Service Card Grid (Replaces Table View) --- */

/* 1. Reset Table Defaults */
.table-container {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}

.table-container table {
    display: block;
    width: 100%;
    min-width: 0 !important;
}

/* 2. Hide Table Header */
.table-container thead {
    display: none;
}

/* 3. Turn Tbody into a Grid */
.table-container tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

/* 4. Turn Rows into Cards */
.table-container tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.3s ease;
    height: 100%;
    /* Equal height */
    position: relative;
    overflow: hidden;
}

/* Hover Effect for Cards */
.table-container tr:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

/* Decoration Line at top */
.table-container tr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    opacity: 0.5;
}

/* 5. Style Cells */
.table-container td {
    display: block;
    padding: 0 !important;
    border: none !important;
    text-align: left;
}

/* --- Cell Specific Styling --- */

/* Name */
.table-container td:nth-of-type(1) {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 60px;
    /* Alignment fix */
}

/* Description */
.table-container td:nth-of-type(2) {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
    /* Push bottom elements down */
    line-height: 1.6;
}

/* Price Section */
.table-container td:nth-of-type(3) {
    margin-top: auto;
    /* Stick to bottom area */
    margin-bottom: 20px;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-container td:nth-of-type(3)::before {
    content: "Starts from";
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-container td:nth-of-type(3) {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* Action Button */
.table-container td:nth-of-type(4) {
    width: 100%;
}

.table-container .btn {
    width: 100%;
    display: block;
    padding: 15px !important;
    text-align: center;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold) !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: 0.3s;
}

.table-container .btn:hover {
    background: var(--primary-gold);
    color: #000 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 50px;
        border-top: 1px solid rgba(255, 215, 0, 0.1);
        overflow-y: auto;
        /* Enable scrolling for long menus */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
        width: 100%;
        height: auto !important;
        /* Ensure it grows with content */
    }

    /* Fix Mobile Dropdown */
    .dropdown-menu {
        position: relative !important;
        /* Stack comfortably in flow */
        width: 100% !important;
        /* Fit within mobile screen */
        top: 0 !important;
        /* Remove ANY desktop offset */
        left: 0 !important;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        /* Slightly lighter bg */
        border: none;
        padding: 0;
        display: none;
        /* Hidden by default */
        margin-top: 5px;
        /* Small gap */
    }

    /* JS Toggle for Mobile */
    .dropdown.active .dropdown-menu {
        display: block !important;
    }

    /* Fix overlap collision */
    .nav-link {
        display: block;
        /* Ensure block layout */
        padding: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {

    /* --- Header & Navigation --- */
    /* Fix logo overlap with hamburger */
    header .container {
        padding: 0 15px;
    }

    .logo {
        flex-direction: row;
        /* Keep icon and text side-by-side but smaller */
        gap: 8px !important;
    }

    .logo img:first-child {
        height: 40px !important;
        /* Shrink Shield Icon */
    }

    .logo img:last-child {
        height: 20px !important;
        /* Shrink Text */
        margin-top: 2px !important;
    }

    /* --- Hero Section --- */
    .hero-section {
        padding-top: 100px !important;
        /* Clear sticky header */
    }

    .hero-section h1 {
        font-size: 1.8rem !important;
        /* Even smaller for iPhone width */
        line-height: 1.3;
        padding: 0 10px;
    }

    /* Global Override for Service Page Headers (overriding inline styles) */
    h1 {
        font-size: 1.8rem !important;
        /* Force all headers to match Hero */
        line-height: 1.3 !important;
    }

    /* Target the inline-styled sections on service pages */
    section[style*="padding: 150px"] {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    .hero-section span.text-gold {
        font-size: 12px !important;
        letter-spacing: 1px !important;
        display: block;
        /* Stack subtitle */
        margin-bottom: 10px;
    }

    .hero-section p {
        font-size: 0.95rem !important;
        padding: 0 15px;
        line-height: 1.5;
    }

    /* Fix Video Zoom */
    video {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* --- General Layout --- */
    .section-padding {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .newsletter-form button {
        width: 100%;
    }



    /* --- Testimonials --- */

    /* --- Testimonials --- */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* --- Cards --- */
    .service-card,
    .feature-card {
        padding: 25px 20px !important;
        margin-bottom: 20px;
    }

    /* About Image */
    .about-img-mobile {
        height: 250px !important;
        width: 100%;
        margin-top: 30px;
    }
}