/* ==================================
   SEVENFOLD CONSULTING - GLOBAL STYLES
   Version: 1.0
   Description: Main stylesheet containing all common styles
   ================================== */

/* ==================================
   1. RESET & BASE STYLES
   ================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================================
   2. CSS VARIABLES
   ================================== */
:root {
    --primary-blue: #0066FF;
    --sky-blue: #00B4D8;
    --golden-yellow: #FFB700;
    --vibrant-orange: #FF6B35;
    --soft-pink: #FF69B4;
    --navy: #1B3A61;
    --gray: #6B7280;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;

    /* iOS Safari viewport fixes - initialized by JavaScript */
    --vh: 1vh;
    --vw: 1vw;
}

/* ==================================
   3. NAVIGATION
   ================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 50px;
    align-items: center;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-links > li > a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

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

/* Navigation Logo */
.logo-dots-nav {
    width: 40px;
    height: 40px;
    position: relative;
}

.logo-dots-nav div {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.logo-dots-nav div:nth-child(1) { top: 0; left: 0; background: var(--primary-blue); }
.logo-dots-nav div:nth-child(2) { top: 0; left: 10px; background: var(--primary-blue); }
.logo-dots-nav div:nth-child(3) { top: 0; left: 20px; background: var(--sky-blue); }
.logo-dots-nav div:nth-child(4) { top: 0; left: 30px; background: var(--sky-blue); }
.logo-dots-nav div:nth-child(5) { top: 10px; left: 25px; background: var(--golden-yellow); }
.logo-dots-nav div:nth-child(6) { top: 20px; left: 15px; background: var(--vibrant-orange); }
.logo-dots-nav div:nth-child(7) { top: 30px; left: 10px; background: var(--soft-pink); }

.logo-text-nav {
    font-size: 1.5em;
    font-weight: 300;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================================
   4. DROPDOWN MENU
   ================================== */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--navy);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    border-bottom: 1px solid var(--light-gray);
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
    padding-left: 25px;
}

.dropdown a:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown a:last-child {
    border-radius: 0 0 10px 10px;
}

/* ==================================
   5. BUTTONS
   ================================== */
.cta-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
    color: white;
    padding: 12px 80px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    white-space: nowrap;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.4);
}

.secondary-button {
    background: white;
    color: var(--primary-blue);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.cta-button-white {
    background: white;
    color: var(--primary-blue);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button-large {
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
    color: white;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

/* ==================================
   6. FOOTER
   ================================== */
footer {
    background: var(--navy);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.footer-brand p {
    margin-top: 20px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* ==================================
   7. COMMON LAYOUT STYLES
   ================================== */
.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100); /* iOS Safari fix */
    display: flex;
    align-items: center;
    position: relative;
    background: var(--light-gray);
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    text-align: center;
    z-index: 2;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================================
   8. ANIMATION KEYFRAMES
   ================================== */
@keyframes float {
    from {
        transform: translateY(100vh) translateX(0);
    }
    to {
        transform: translateY(-100px) translateX(100px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 10px 40px rgba(0, 102, 255, 0.3); }
    50% { box-shadow: 0 15px 60px rgba(0, 102, 255, 0.5); }
}

/* ==================================
   9. UTILITY CLASSES
   ================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ==================================
   10. MOBILE MENU
   ================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    background: none;
    border: none;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

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

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

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

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================================
   11. RESPONSIVE DESIGN
   ================================== */
/* ==================================
   11.1. TABLET LOGO CUTOFF FIX (769px - 1024px)
   ================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Simple adjustments for tablet range - MINIMAL CHANGES */
    nav {
        min-height: 85px;
    }
    
    .nav-container {
        padding: 20px 30px;
        min-height: 80px;
    }
    
    /* Ensure hero section accounts for taller navigation */
    .hero {
        padding-top: 90px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Navigation - Now overridden by mobile-nav-final.css */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 80vw;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 40px 40px;
        gap: 20px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
        box-shadow: none;
        background: var(--light-gray);
        border-radius: 10px;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-links > li > a {
        display: block;
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--light-gray);
        font-size: 1.1em;
        font-weight: 500;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        color: var(--primary-blue);
        padding-left: 15px;
    }
    
    .nav-links > li > a::after {
        display: none;
    }
    
    .nav-links > li:last-child > a {
        border-bottom: none;
    }
    
    /* Typography */
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    /* Layout */
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Buttons */
    .cta-button {
        padding: 12px 40px;
    }
}

@media (max-width: 480px) {
    /* Small mobile adjustments */
    .nav-container {
        padding: 15px 20px;
    }

    .nav-links {
        padding: 30px 20px;
        gap: 25px;
    }

    .nav-links > li > a {
        padding: 12px 0;
        font-size: 1em;
    }

    .dropdown {
        margin-top: 5px;
        padding: 5px;
    }

    .dropdown a {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .hero {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100); /* iOS Safari fix */
        padding: 80px 0 40px;
    }
    
    .mobile-menu-toggle {
        gap: 3px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }
}

/* ==================================
   12. COMMON SECTION STYLES
   ================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3em;
    font-weight: 300;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2em;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================================
   13. CARDS AND CONTAINERS
   ================================== */
.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ==================================
   14. FORMS (IF NEEDED)
   ================================== */
input, textarea, select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* ==================================
   15. LOADING STATES
   ================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-gray);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}