/* ==========================================================================
   CSS Variables for Theming (Modern, Premium Corporate Look)
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #F7931A; /* Vibrant Gold/Orange for accents */
    --primary-dark: #D97A0A;
    --primary-light: rgba(247, 147, 26, 0.1);
    
    --secondary: #0A192F; /* Deep Dark Blue for backgrounds */
    --secondary-light: #112240;
    --secondary-lighter: #233554;
    
    --text-main: #CCD6F6; /* Soft light blue/grey for reading */
    --text-light: #8892B0;
    --text-dark: #333333;
    
    --white: #FFFFFF;
    --black: #000000;
    --success: #00C853;
    
    /* Backgrounds */
    --bg-color: #0A192F;
    --panel-bg: rgba(17, 34, 64, 0.7);
    --glass-bg: rgba(17, 34, 64, 0.4);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --shadow-lg: 0 20px 40px -15px rgba(2, 12, 27, 0.9);
    --glow: 0 0 20px rgba(247, 147, 26, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-padding {
    padding: 6rem 0;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.highlight {
    color: var(--primary);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-white { color: var(--white) !important; }
.text-light { color: var(--text-light) !important; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }

.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(247, 147, 26, 0.2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--black);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    box-shadow: var(--glow);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
    background-color: rgba(10, 25, 47, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(247, 147, 26, 0.15);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(35, 53, 84, 0.8);
    bottom: 100px;
    left: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
}

.hero-image {
    position: relative;
}

.main-card {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary-lighter);
}

.dots span:nth-child(1) { background-color: #ff5f56; }
.dots span:nth-child(2) { background-color: #ffbd2e; }
.dots span:nth-child(3) { background-color: #27c93f; }

.card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 120px;
    margin-bottom: 2rem;
}

.bar {
    flex: 1;
    background-color: var(--secondary-lighter);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    overflow: hidden;
}

.bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary), transparent);
    opacity: 0.8;
}

.h-40 { height: 40%; }
.h-50 { height: 50%; }
.h-60 { height: 60%; }
.h-70 { height: 70%; }
.h-80 { height: 80%; }
.h-100 { height: 100%; }

.stats-row {
    display: flex;
    justify-content: space-between;
    background: rgba(10, 25, 47, 0.5);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    animation: float 6s ease-in-out infinite;
}

.float-card h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

.float-card p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

.float-card i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(247, 147, 26, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.card-1 {
    top: -20px;
    right: -30px;
    z-index: 3;
    animation-delay: 0s;
}

.card-2 {
    bottom: -30px;
    left: -30px;
    z-index: 3;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-pattern {
    font-size: 8rem;
    color: rgba(247, 147, 26, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--black);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.feature-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* ==========================================================================
   Services Section (Light Mode Variant)
   ========================================================================== */
.bg-light {
    background-color: var(--secondary-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--panel-bg);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(247, 147, 26, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(247, 147, 26, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--black);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Portfolio Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--secondary-lighter);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.3);
}

.timeline-content {
    background: var(--panel-bg);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(247, 147, 26, 0.5);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.bg-dark {
    background-color: #060F1E;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem 2rem;
}

.quote-icon {
    color: var(--primary);
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.client-details h4 {
    margin: 0;
    font-size: 1rem;
}

.client-details p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 4rem;
    border-radius: var(--radius-lg);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 1rem;
    border-radius: 50%;
}

.contact-method h4 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.contact-method a, .contact-method p {
    color: var(--text-light);
}

.contact-method a:hover {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bg-dark-deep {
    background-color: #020c1b;
}

.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--text-light);
    max-width: 400px;
    margin-top: 1rem;
}

.footer-links h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.25rem;
}

.social-links a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
}

.fade-up { transform: translateY(30px); }
.fade-up.active { transform: translateY(0); }

.fade-in { transform: scale(0.95); }
.fade-in.active { transform: scale(1); }

.fade-right { transform: translateX(-30px); }
.fade-right.active { transform: translateX(0); }

.fade-left { transform: translateX(30px); }
.fade-left.active { transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        padding: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        gap: 2rem;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-cta {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
