/*
 * EGPHP Modern CSS Framework 2025
 * Unified styles for all pages
 */

/* ==================== BASE RESET ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

/* ==================== COLORS ==================== */
:root {
    --primary: #E85622;
    --primary-light: #FF5C1F;
    --primary-hover: #FF5C1F;
    --secondary: #E85622;
    --secondary-light: #FF5C1F;
    --accent: #22c55e;
    --dark: #0a0a0a;
    --dark-light: #0f172a;
    --dark-lighter: #1e293b;
    --text-dark: #2B283B;
    --bg-white: #FFFFFF;
    --bg-soft: #F7F7F7;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --white: #ffffff;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-gradient-orange {
    background: linear-gradient(135deg, #E85622 0%, #FF5C1F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #E85622 0%, #FF5C1F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-rainbow {
    background: linear-gradient(135deg, #E85622 0%, #FF5C1F 50%, #FF7A45 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #E85622 0%, #FF5C1F 100%);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(232, 86, 34, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(232, 86, 34, 0.45);
    background: linear-gradient(135deg, #FF5C1F 0%, #FF7A45 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #E85622 0%, #FF5C1F 100%);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(232, 86, 34, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(232, 86, 34, 0.45);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #E85622;
    color: #E85622;
}

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

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

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

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

/* ==================== CARDS ==================== */
.card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 86, 34, 0.3);
    background: rgba(30, 41, 59, 0.7);
}

.card-gradient {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark);
}

.section-darker {
    background: var(--dark-light);
}

.section-gradient {
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
}

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

.section-header h2 {
    margin-bottom: 15px;
}

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

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(232, 86, 34, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(232, 86, 34, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ==================== PAGE HEADER ==================== */
.page-hero {
    padding: 150px 0 100px;
    position: relative;
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(232, 86, 34, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h1 {
    margin-bottom: 20px;
}

.page-hero p {
    color: var(--gray-400);
    font-size: 18px;
    max-width: 600px;
}

/* ==================== GRIDS ==================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ==================== PRICING CARDS ==================== */
.pricing-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(232, 86, 34, 0.3);
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card.featured {
    border-color: #E85622;
    background: linear-gradient(135deg, rgba(232, 86, 34, 0.2) 0%, rgba(30, 41, 59, 0.8) 100%);
}

.pricing-card.featured::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #E85622, #FF5C1F);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #E85622;
    color: var(--white);
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-400);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pricing-amount {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 5px;
}

.pricing-period {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 30px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-300);
    font-size: 14px;
}

.pricing-features li i {
    color: var(--accent);
    width: 20px;
}

/* ==================== SERVICE CARDS ==================== */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(232, 86, 34, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #E85622 0%, #FF5C1F 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--white);
}

.service-icon.purple {
    background: linear-gradient(135deg, #E85622 0%, #FF5C1F 100%);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-400);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E85622;
    font-weight: 600;
    font-size: 14px;
}

.service-card a:hover {
    gap: 12px;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #E85622;
    box-shadow: 0 0 0 3px rgba(232, 86, 34, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-500);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==================== SLIDER ==================== */
.slider {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #E85622;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: #E85622;
    border-color: #E85622;
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ==================== GALLERY ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: #E85622;
    box-shadow: 0 20px 50px rgba(232, 86, 34, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(232, 86, 34, 0.1) 0%, rgba(232, 86, 34, 0.05) 100%);
    text-align: center;
}

.cta-purple {
    background: linear-gradient(135deg, #E85622 0%, #FF5C1F 50%, #FF7A45 100%);
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--gray-400);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-purple p {
    color: rgba(255, 255, 255, 0.85);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-primary {
    background: linear-gradient(135deg, #E85622, #FF5C1F);
    color: var(--white);
}

.badge-secondary {
    background: linear-gradient(135deg, #E85622, #FF5C1F);
    color: var(--white);
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-4 { padding-top: 40px; padding-bottom: 40px; }
.py-5 { padding-top: 50px; padding-bottom: 50px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

/* ==================== ANIMATIONS ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-slide-up { animation: slideUp 0.6s ease forwards; }

/* ==================== RESPONSIVE ==================== */

/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.container, .container-lg {
    max-width: 100%;
    overflow-x: hidden;
}

/* Tables responsive */
table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Pre/Code blocks */
pre {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

code {
    word-break: break-word;
}

/* Flex containers */
.flex, [class*="flex"] {
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }

    .hero { padding: 100px 0 60px; }
    .page-hero { padding: 120px 0 60px; }

    .btn-lg { padding: 14px 30px; font-size: 16px; }

    .pricing-card { padding: 30px 20px; }
    .pricing-amount { font-size: 36px; }

    /* Additional mobile fixes */
    .card { padding: 20px; }
    .btn { padding: 12px 24px; font-size: 14px; }

    /* Hide overflow on all containers */
    section, .section, div[class*="container"] {
        overflow-x: hidden;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container { padding: 0 15px; }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    .card {
        padding: 15px;
        border-radius: 15px;
    }
}
