/* ===== CSS Custom Properties ===== */
:root {
    --color-primary: #1e3a8a;
    --color-accent: #f97316;
    --color-accent-hover: #ea580c;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-background: #f9fafb;
    --color-white: #ffffff;
    --color-border: #e5e7eb;
    
    --color-blue-light: #dbeafe;
    --color-orange-light: #ffedd5;
    --color-green-light: #dcfce7;
    --color-green: #16a34a;
    --color-purple-light: #f3e8ff;
    --color-purple: #9333ea;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-accent: 0 10px 30px -10px rgb(249 115 22 / 0.4);
    
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Navigation ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
}

.logo-img { max-height: 40px; width: auto; }

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    color: var(--color-primary);
}

.nav-links {
    display: none;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active {
    font-weight: 600;
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-muted);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.mobile-link:hover {
    background: var(--color-background);
    color: var(--color-accent);
}

/* ===== Hero Section ===== */
.hero {
    background: var(--color-white);
    padding: 6rem 0 8rem;
    overflow: hidden;
}

.hero-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 36rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.hero-title .highlight {
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 32rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

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

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

/* Hero Image */
.hero-image {
    display: none;
    position: relative;
}


.hero-image img {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-2xl);
    object-fit: cover;
    height: 500px;
    width: 100%;
}

/* ===== Services Section ===== */
.services {
    padding: 6rem 0;
    background: var(--color-background);
}

.services-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-divider {
    width: 6rem;
    height: 4px;
    background: var(--color-accent);
    margin: 0 auto;
    border-radius: 2px;
}

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

/* Service Card */
.service-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
}

.service-icon.blue {
    background: var(--color-blue-light);
    color: var(--color-primary);
}

.service-icon.orange {
    background: var(--color-orange-light);
    color: var(--color-accent);
}

.service-icon.green {
    background: var(--color-green-light);
    color: var(--color-green);
}

.service-icon.purple {
    background: var(--color-purple-light);
    color: var(--color-purple);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color, #4b5563);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #f97316; /* Your accent orange */
}

.contact-item svg {
    width: 20px;
    height: 20px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

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

.social-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ===== Animations ===== */
.fade-in-left,
.fade-in-right,
.fade-in-up {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-up.visible {
    opacity: 1;
    transform: translate(0);
}

/* ===== Responsive Design ===== */
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-image {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
