/* CSS Variables (Design System) */
:root {
    /* Colors */
    --clr-bg-light: #f8fafc;
    --clr-bg-white: #ffffff;
    --clr-primary: #0f172a; /* Deep Slate/Navy */
    --clr-accent: #2563eb; /* Professional Blue */
    --clr-accent-hover: #1d4ed8;
    --clr-text-main: #334155;
    --clr-text-light: #64748b;
    --clr-text-inverse: #f8fafc;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--clr-primary) 0%, #1e293b 100%);
    --grad-accent: linear-gradient(135deg, var(--clr-accent) 0%, #3b82f6 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows/Glass */
    --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-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Layout */
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: var(--clr-accent);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--clr-accent-hover);
}

ul {
    list-style: none;
}

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

/* Layout Classes */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-bounce);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--grad-accent);
    color: var(--clr-text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    color: var(--clr-text-inverse);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--clr-primary);
    color: var(--clr-text-inverse);
}

.btn i {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(4px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: padding var(--transition-smooth), background-color var(--transition-smooth);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    gap: 0.75rem;
}

.logo-img {
    height: 64px;
    width: auto;
    mix-blend-mode: multiply; /* Automatically drops out any pure white background on the image */
    margin-left: -8px; /* Brings the logo more outwards to the left */
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--clr-accent);
    letter-spacing: -0.5px;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links li a {
    color: var(--clr-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-accent);
    transition: width var(--transition-smooth);
}

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

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--clr-accent);
}

.nav-btn {
    background: var(--clr-primary);
    color: var(--clr-text-inverse) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 6px;
    transition: all var(--transition-smooth);
}
.nav-btn::after { display: none !important; }

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

.nav-btn-active {
    background: var(--clr-accent);
    color: var(--clr-text-inverse) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 6px;
}
.nav-btn-active::after { display: none !important; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--clr-primary);
    transition: all var(--transition-fast);
}

/* Main Spacing */
main {
    margin-top: 80px; /* Space for fixed navbar */
    min-height: calc(100vh - 80px - 300px); /* Adjust based on footer height */
}

/* Footer Section */
.footer {
    background: var(--clr-primary);
    color: var(--clr-text-inverse);
    padding: 4rem 0 0;
}

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

.footer-col h3 {
    color: var(--clr-text-inverse);
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--clr-text-inverse);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

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

.footer-col ul li a {
    color: #cbd5e1;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--clr-accent);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--clr-text-inverse);
    border-radius: 50%;
    transition: all var(--transition-bounce);
}

.social-links a:hover {
    background: var(--clr-accent);
    transform: translateY(-3px);
}

.footer-col li i {
    margin-right: 0.5rem;
    color: var(--clr-accent);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Navbar */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--clr-bg-white);
        width: 100%;
        height: 100vh;
        justify-content: center;
        transition: left var(--transition-smooth);
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Utilty & Layout Classes */
.bg-light { background-color: #f1f5f9; }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.align-center { align-items: center; }

.section-header {
    margin-bottom: 3.5rem;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-desc {
    font-size: 1.15rem;
    color: var(--clr-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.page-header {
    padding: 8rem 0 4rem;
    background: var(--clr-primary);
    color: var(--clr-text-inverse);
}
.page-header h1 {
    color: var(--clr-text-inverse);
    font-size: 3rem;
}
.page-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

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

/* Hero Section */
.hero-section {
    padding: 10rem 0 6rem;
    background: linear-gradient(180deg, var(--clr-bg-light) 0%, rgba(255,255,255,0) 100%);
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.highlight {
    color: var(--clr-accent);
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    margin-bottom: 2.5rem;
    max-width: 90%;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}
.hero-stats {
    display: flex;
    gap: 3rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-primary);
    font-family: var(--font-heading);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    font-weight: 500;
}

/* Custom Profile Image */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-profile-container {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--clr-bg-white);
    box-shadow: var(--shadow-lg);
    background: var(--clr-bg-light);
}
.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%; /* Crops nicely on the face based on the provided portrait */
}

/* Cards & Blocks */
.expertise-card {
    background: var(--clr-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
    border: 1px solid rgba(0,0,0,0.03);
}
.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--clr-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Logos */
.trusted-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.trusted-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-light);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}
.logo-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-fast);
}
.logo-grid:hover {
    opacity: 1;
    filter: grayscale(0%);
}
.logo-placeholder {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--clr-text-light);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--clr-accent);
    opacity: 0.3;
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}
.timeline-dot {
    position: absolute;
    left: 13px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--clr-accent);
    border: 4px solid var(--clr-bg-light);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}
.timeline-content {
    background: var(--clr-bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--clr-accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.timeline-content h4 {
    color: var(--clr-text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Quotes */
.philosophy-quote {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--clr-bg-white);
    border-left: 4px solid var(--clr-accent);
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-md);
}
.philosophy-quote i {
    color: var(--clr-accent);
    font-size: 2rem;
    opacity: 0.2;
    margin-bottom: 1rem;
}
.philosophy-quote blockquote {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--clr-primary);
    font-style: italic;
}

/* Service Blocks */
.service-block {
    display: flex;
    gap: 3rem;
    background: var(--clr-bg-white);
    padding: 4rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}
.service-icon {
    color: var(--clr-accent);
    flex-shrink: 0;
}
.service-list {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.service-list i {
    color: #10b981; /* Emerald Green for checks */
}

/* Capabilities */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}
.capability-card {
    background: var(--clr-bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--clr-primary);
    transition: all var(--transition-fast);
}
.capability-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-top-color: var(--clr-accent);
}
.cap-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.cap-header i {
    font-size: 2rem;
    color: var(--clr-primary);
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.tag {
    background: #f1f5f9;
    color: var(--clr-text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Portfolio */
.portfolio-item {
    background: var(--clr-bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.portfolio-content {
    padding: 3rem;
}
.portfolio-category {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-accent);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

/* Blog */
.blog-card {
    background: var(--clr-bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}
.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.blog-content {
    padding: 2rem;
}
.blog-meta {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    margin-bottom: 1rem;
}
.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.blog-content h3 a {
    color: var(--clr-primary);
}
.blog-content h3 a:hover {
    color: var(--clr-accent);
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

/* Forms */
.contact-form-container {
    background: var(--clr-bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--clr-primary);
}
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-item .contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--clr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Micro-animations Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Make Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-cta, .hero-stats { justify-content: center; }
    .hero-image-wrapper { display: flex; transform: scale(0.85); margin-top: 1rem; }
    .service-block { flex-direction: column; padding: 2rem; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .portfolio-item .grid-2 { grid-template-columns: 1fr !important; }
    .portfolio-content { order: 2 !important; padding: 2rem; }
    .portfolio-image { order: 1 !important; }
    .timeline::before { left: 15px; }
    .timeline-item { padding-left: 45px; }
    .timeline-dot { left: 8px; }
    .page-header h1 { font-size: 2.5rem; }
}
