/* ===================================
   HELIX ENGINEERING - MAIN STYLES
   Bootstrap 5 Integration
   =================================== */

/* ===================================
   CSS VARIABLES (CUSTOM PROPERTIES)
   =================================== */
   :root {
    /* Primary Colors - Orange from the button image */
    --primary-color: #f59e0b; /* Orange from the subscribe button */
    --primary-dark: #F15A24;
    --primary-light: #fbbf24;
    
    /* Secondary Colors - Green shade */
    --secondary-color: #059669; /* A suitable green shade */
    --secondary-dark: #047857;
    --secondary-light: #10b981;
    
    /* Logo Colors */
    --logo-orange: #F15A24;
    --logo-green: #059669; /* Green from logo "HE" text */
    
    /* Brand Colors */
    --brand-green: #007650df; /* For "Helix Engineering" text */
    
    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Additional Colors */
    --white: #ffffff;
    --black: #000000;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Font Weights */
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    
    /* Font Sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;
    --fs-6xl: 3.75rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-indexes */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
    --z-toast: 1070;
}

/* ===================================
   GLOBAL STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--fw-normal);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Text Selection */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-600);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Text Utilities */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-white { color: var(--white) !important; }
.text-dark { color: var(--gray-800) !important; }
.text-muted { color: var(--gray-500) !important; }

.fw-light { font-weight: var(--fw-light) !important; }
.fw-normal { font-weight: var(--fw-normal) !important; }
.fw-medium { font-weight: var(--fw-medium) !important; }
.fw-semibold { font-weight: var(--fw-semibold) !important; }
.fw-bold { font-weight: var(--fw-bold) !important; }

/* ===================================
   UTILITY CLASSES
   =================================== */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--gray-50) !important;
}

.bg-dark {
    background-color: var(--gray-800) !important;
}

/* ===================================
   COMMON BUTTON STYLES
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius-lg);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: var(--fs-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.btn-dark {
    background: linear-gradient(135deg, var(--black), var(--gray-800));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-dark:hover {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-700));
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* New Black Outline Button Style */
.btn-outline-dark {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
    backdrop-filter: blur(10px);
    font-weight: var(--fw-semibold);
}

.btn-outline-dark:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--black);
}

.btn-outline-dark:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.btn-social {
    background: linear-gradient(135deg, #4267B2, #365899);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-social:hover {
    background: linear-gradient(135deg, #365899, #4267B2);
    transform: translateY(-2px);
    color: var(--white);
}

/* ===================================
   GLOBAL RESPONSIVE DESIGN
   =================================== */

/* Large devices (desktops, 992px and up) */
@media (max-width: 991.98px) {
    .btn {
        min-width: 200px;
        justify-content: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 767.98px) {
    h1 { font-size: var(--fs-4xl); }
    h2 { font-size: var(--fs-3xl); }
    h3 { font-size: var(--fs-2xl); }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .btn {
        padding: 12px 20px;
        font-size: var(--fs-sm);
        min-width: 150px;
    }
    
    h1 { font-size: var(--fs-3xl); }
    h2 { font-size: var(--fs-2xl); }
    h3 { font-size: var(--fs-xl); }
}
/* ===================================
   HERO SECTION ALIGNMENT WITH HEADER
   =================================== */

/* Ensure hero section aligns with header brand */
.hero-section {
    padding-top: 120px; /* Account for fixed header */
}

.hero-section .container {
    padding-left: 15px; /* Match header container padding */
    padding-right: 15px;
}

/* Hero title alignment */
.hero-title {
    text-align: left; /* Align with brand logo */
    margin-left: 0;
}

/* Responsive hero alignment */
@media (max-width: 991.98px) {
    .hero-section .container {
        padding-left: 10px; /* Match header on tablets */
        padding-right: 10px;
    }
    
    .hero-section {
        padding-top: 100px;
    }
}

@media (max-width: 767.98px) {
    .hero-section .container {
        padding-left: 8px; /* Match header on mobile */
        padding-right: 8px;
    }
    
    .hero-section {
        padding-top: 90px;
    }
}

@media (max-width: 575.98px) {
    .hero-section .container {
        padding-left: 5px; /* Match header on small screens */
        padding-right: 5px;
    }
    
    .hero-section {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .hero-section .container {
        padding-left: 3px; /* Match header on extra small screens */
        padding-right: 3px;
    }
    
    .hero-section {
        padding-top: 75px;
    }
}
/* ===================================
   GLOBAL HORIZONTAL SCROLL FIX
   =================================== */
   html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}


/* Fix Bootstrap containers on mobile */
@media (max-width: 767.98px) {
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    
    [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }
}

/* Ensure navbar and scroll button positioning */
.main-navbar {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.scroll-to-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
}

@media (max-width: 575.98px) {
    .scroll-to-top {
        bottom: 15px !important;
        right: 15px !important;
    }
}