/* ========================================
   Triple 5 LTD - Main Styles
   Modern Tech Agency Design
   ======================================== */

/* === CSS Variables === */
:root {
    /* Brand Colors */
    --color-navy: #0B1F3B;
    --color-royal-blue: #2B5FFF;
    --color-electric-blue: #00D4FF;
    --color-white: #FFFFFF;
    --color-grey-light: #F5F7FA;
    --color-grey-medium: #E1E8ED;
    --color-grey-dark: #4A5568;
    --color-text-dark: #1A202C;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
    
    /* Effects */
    --transition-speed: 0.3s;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --box-shadow: 0 10px 40px rgba(11, 31, 59, 0.1);
    --box-shadow-hover: 0 20px 60px rgba(43, 95, 255, 0.15);
    
    /* Premium Card Styles */
    --card-bg-tint: rgba(43, 95, 255, 0.02);
    --card-border: 1px solid rgba(43, 95, 255, 0.1);
    --card-accent-border: 3px solid var(--color-royal-blue);
    --card-shadow-premium: 0 4px 20px rgba(11, 31, 59, 0.08);
    
    /* Tech Accents */
    --tech-grid-color: rgba(43, 95, 255, 0.03);
    --tech-glow: rgba(43, 95, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.7;
    background: var(--color-white);
    overflow-x: hidden;
    position: relative;
}

/* Subtle Tech Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--tech-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

body > * {
    position: relative;
    z-index: 1;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy);
    margin-bottom: 20px;
}

h1 { font-size: 56px; }
h2 { font-size: 42px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-grey-dark);
    margin-bottom: 20px;
}

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

ul {
    list-style: none;
}

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

/* === Container === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
}

/* === Section Spacing === */
section {
    padding: var(--section-padding) 0;
}

/* === Header / Navigation === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-bottom-color: transparent;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 30px;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-right: 0;
    margin-left: 0;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
    display: none;
}

@media (min-width: 768px) {
    .logo-img {
        height: 90px;
    }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-right: auto;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    font-size: 14px;
    font-weight: 500;
    color: #4A5568;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-menu > li > a:hover {
    color: var(--color-navy);
}

.nav-menu > li > a.active {
    color: var(--color-navy);
    font-weight: 600;
}

.nav-menu > li > a::after {
    display: none;
}

/* Dropdown toggle should never show underline */
.dropdown-toggle::after {
    display: none !important;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-toggle svg {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    background: white;
    min-width: 240px;
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #4A5568;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(43, 95, 255, 0.04);
    color: var(--color-royal-blue);
    padding-left: 24px;
}

/* Navigation CTAs */
.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-cta .btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
}

.nav-cta .btn-primary {
    box-shadow: none;
}

.nav-cta .btn-primary:hover {
    transform: none;
    opacity: 0.9;
    box-shadow: none;
}

.nav-cta .btn-secondary {
    background: transparent;
    color: var(--color-navy);
    border: 1.5px solid rgba(43, 95, 255, 0.2);
}

.nav-cta .btn-secondary:hover {
    border-color: var(--color-royal-blue);
    background: rgba(43, 95, 255, 0.04);
    color: var(--color-royal-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-royal-blue), #1E4FD9);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(43, 95, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-royal-blue);
    border: 2px solid var(--color-royal-blue);
}

.btn-secondary:hover {
    background: var(--color-royal-blue);
    color: white;
}

.btn-secondary-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-white:hover {
    background: white;
    color: var(--color-royal-blue);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* === Hero Section === */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #F8FAFF 0%, #EEF4FF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(43, 95, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-text h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-navy);
}

.hero-text p {
    font-size: 19px;
    line-height: 1.7;
    color: var(--color-grey-dark);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

/* === COMPACT FOOTER STYLES === */
.footer {
    background: var(--color-navy);
    color: white;
}

.footer-top {
    padding: 50px 0; /* COMPACT: Reduced from 80px to 50px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-column h4 {
    color: white;
    font-size: 13px; /* COMPACT: Reduced from 16px */
    font-weight: 600;
    margin-bottom: 16px; /* COMPACT: Reduced from 24px */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    font-size: 13px; /* COMPACT: Reduced from 14px */
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 16px; /* COMPACT: Reduced from 24px */
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 6px; /* COMPACT: Reduced from 10px */
}

.footer-column ul li a {
    font-size: 13px; /* COMPACT: Reduced from 14px */
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--color-electric-blue);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px; /* COMPACT: Reduced from 12px */
    margin-bottom: 12px; /* COMPACT: Reduced from 16px */
}

.footer-contact-item svg {
    width: 16px; /* COMPACT: Reduced from 18px */
    height: 16px;
    color: var(--color-electric-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item span {
    font-size: 13px; /* COMPACT: Reduced from 14px */
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-bottom {
    padding: 16px 0; /* COMPACT: Reduced from 24px */
    text-align: center;
}

.footer-bottom p {
    font-size: 13px; /* COMPACT: Reduced from 14px */
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* === Scroll Animations === */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-royal-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(43, 95, 255, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-navy);
    transform: translateY(-4px);
}

/* === Responsive Design === */
@media (max-width: 968px) {
    :root {
        --section-padding: 60px;
    }
    
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 26px; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(11, 31, 59, 0.1);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        padding: 12px 0;
    }
    
    .nav-menu > li > a {
        font-size: 15px;
    }
    
    .nav-menu > li > a::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(43, 95, 255, 0.02);
        margin-top: 12px;
        border-radius: 8px;
        border: 1px solid rgba(43, 95, 255, 0.08);
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-cta {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding: 16px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        margin-top: 16px;
    }
    
    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
