/* ============================================
   HOME.CSS - Merged Global Styles
   All non-section specific styles combined
   ============================================ */

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Saira:ital,wght@0,100..900;1,100..900&family=Zalando+Sans+Expanded:ital,wght@0,200..900;1,200..900&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    /* Primary Colors - AI & Tech Theme */
    --primary-dark: #0a0e27;
    --primary-blue: #1a1f3a;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Accent Colors - Cyber & Electric */
    --accent-cyan: #00d4ff;
    --accent-electric: #00f2fe;
    --accent-purple: #7c3aed;
    --accent-pink: #ec4899;
    
    /* AI Trading Colors */
    --trading-green: #10b981;
    --trading-red: #ef4444;
    --trading-gold: #fbbf24;
    --trading-blue: #3b82f6;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --gray: #6b7280;
    --dark-gray: #1f2937;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cyber: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-trading: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.5);
    
    /* Typography */
    --font-primary: 'Raleway', 'Segoe UI', sans-serif;
    --font-heading: 'Saira', 'Segoe UI', sans-serif;
    --font-display: 'Zalando Sans Expanded', 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* PURI WEBSITE KI BACKGROUND IMAGE */
body {
    font-family: var(--font-primary);
    background-color: #000000;
    background-image: url('../images/home-bg.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

/* Black Background Overlay - Image ke peeche, 50% opacity */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    pointer-events: none;
}

/* All content above overlay */
body > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   GLOBAL TYPOGRAPHY - HEADINGS
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 48px;
    font-weight: 900;
    font-family: var(--font-display);
}

h2 {
    font-size: 42px;
    font-weight: 800;
}

h3 {
    font-size: 36px;
    font-weight: 700;
}

h4 {
    font-size: 30px;
    font-weight: 700;
}

h5 {
    font-size: 24px;
    font-weight: 600;
}

h6 {
    font-size: 20px;
    font-weight: 600;
}

/* ============================================
   GLOBAL TYPOGRAPHY - TEXT
   ============================================ */

p {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 1rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

small {
    font-family: var(--font-primary);
    font-size: 12px;
    line-height: 1.6;
    color: #9ca3af;
}

span {
    font-family: var(--font-primary);
}

a {
    font-family: var(--font-primary);
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-electric);
}

/* ============================================
   IMPROVED GRADIENT ANIMATION
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #00f2fe 20%, #7c3aed 40%, #ec4899 60%, #fbbf24 80%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    filter: brightness(1.2);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Container Widths */
.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    min-height: 100vh;
    max-height: 100vh;
    padding: 100px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    box-sizing: border-box;
    isolation: isolate;
    transform: translateZ(0);
    z-index: 1;
}

/* Ensure sections don't overlap */
.section + .section {
    margin-top: 0;
}

/* Fix zoom overlap issue - Allow horizontal scrolling on zoom */
.section > * {
    max-width: 100%;
    max-height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

/* Container inside section */
.section .container {
    max-width: 100%;
    max-height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

/* Hide overflow content when zooming */
@media screen and (min-width: 1451px) {
    .section {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: 100vh !important;
    }
    
    .section > * {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: 100vh !important;
    }
    
    .section .container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: 100vh !important;
    }
}

/* Remove individual section backgrounds */
.hero-section,
.features-section,
.about-section,
.plans-section,
.affiliate-section,
.stats-section,
.transactions-section {
    background: transparent !important;
}

/* ============================================
   WIDTH FIX - Override all container widths
   ============================================ */

/* HEADER: 1700px */
.nav-container,
.header .container {
    max-width: 1700px !important;
    margin: 0 auto !important;
}

/* Logo Width Enforcement */
.logo-image {
    width: 250px !important;
    height: auto !important;
    object-fit: contain !important;
}

/* ALL SECTIONS: 1450px */
.container,
.hero-section .container,
.features-section .container,
.about-section .container,
.plans-section .container,
.affiliate-section .container,
.stats-section .container,
.transactions-section .container,
.footer-advanced .container,
.section .container {
    max-width: 1450px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Container-wide class for wider sections */
.container-wide {
    max-width: 1750px !important;
    margin: 0 auto !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-cyan), 0 0 10px var(--accent-cyan);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-cyan), 0 0 30px var(--accent-cyan);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Utility Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Landscape (1024px and below) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .section {
        padding: 60px 0;
    }
}

/* Tablet Portrait (768px and below) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 50px 0;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-electric);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.title-white {
    font-weight: 700;
}

/* Section Background Layers - Global for All Sections */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    pointer-events: none;
}

.section-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

/* Ensure container is above backgrounds */
.container {
    position: relative;
    z-index: 1;
}

.section-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   SECTION HEADER STYLES - GLOBAL
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 30px;
    background: rgba(0, 212, 255, 0.15);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 50px;
    color: #00d4ff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
    transition: all 0.4s ease;
    cursor: default;
}

.section-badge:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: #00d4ff;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.5);
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: #00d4ff;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-align: left;
}

.section-title-center {
    text-align: center;
}

.section-description-center {
    text-align: center;
}

.section-title-left {
    text-align: left;
}

.section-description-left {
    text-align: left;
}

.title-line {
    display: inline;
    margin-bottom: 0;
}

.text-gradient {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glow-text {
    text-shadow: 0 0 20px var(--accent-cyan);
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: 0 0 20px var(--accent-cyan);
}
