/* =========================================
   CSS Variables & Resets
   ========================================= */
:root {
    --primary: #ff8a3d; /* Vibrant Orange */
    --primary-dark: #e06c20;
    --dark: #0f172a; /* Slate 900 */
    --darker: #020617; /* Slate 950 */
    --light: #f8fafc; /* Slate 50 */
    --gray: #64748b; /* Slate 500 */
    --white: #ffffff;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    --shadow-hover: 0 20px 40px rgba(255, 138, 61, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 6rem 0;
}

.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--darker); }
.text-accent { color: var(--primary); }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-4 { margin-top: 2rem; }

/* =========================================
   Typography & Utilities
   ========================================= */
.section-title {
    margin-bottom: 3rem;
}

.section-title .subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
}

/* =========================================
   Header & Navigation
   ========================================= */
.top-bar {
    background-color: var(--darker);
    color: var(--gray);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 1.5rem;
}

.contact-info i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.social-links a {
    color: var(--gray);
    margin-left: 1rem;
}

.social-links a:hover {
    color: var(--primary);
}

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

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

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: calc(100vh - 80px);
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* =========================================
   Services Section
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.service-card:hover {
    top: -10px;
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.card-content {
    padding: 2rem;
    position: relative;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    top: -40px;
    right: 2rem;
    box-shadow: 0 4px 10px rgba(255, 138, 61, 0.4);
}

.card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* =========================================
   Solutions Section
   ========================================= */
.solutions {
    background-image: linear-gradient(rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.9)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.solution-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.solution-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.icon-glow {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 138, 61, 0.6);
}

/* =========================================
   Projects Section
   ========================================= */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    position: relative;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--primary);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.filter-btn.active::after {
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

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

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-overlay span {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-item:hover .project-overlay h4,
.project-item:hover .project-overlay span {
    transform: translateY(0);
}

/* =========================================
   Stats Section
   ========================================= */
.stats {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   CTA Section
   ========================================= */
.cta {
    background-color: var(--light);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--darker);
    color: var(--gray);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h3, .footer h4 {
    color: var(--white);
}

.footer h3 span {
    color: var(--primary);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-list i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    font-size: 0.875rem;
}

/* =========================================
   Responsive Media Queries
   ========================================= */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 3rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-btn { display: none; }
    .menu-toggle { display: block; }
    .top-bar { display: none; }
    
    .services-grid, .projects-grid, .solutions-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
