/* ================================================================
   Portfolio CMS — Main Stylesheet
   Premium Light/Dark Theme with Glassmorphism
   ================================================================ */

/* ----------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   ---------------------------------------------------------------- */
:root {
    /* Backgrounds — clean whites with depth */
    --bg-primary: #f8fafc;
    --bg-secondary: #eef2f7;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-border: rgba(203, 213, 225, 0.6);

    /* Typography — LIGHT MODE: dark text on light backgrounds */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-heading: #1e293b;

    /* Accent Colors */
    --accent: #2563EB;
    --accent-light: #3b82f6;
    --accent-dark: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.12);
    --accent-gradient: linear-gradient(135deg, #2563EB, #7c3aed);
    --accent-soft-bg: rgba(37, 99, 235, 0.08);

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Borders & Radii */
    --border: rgba(203, 213, 225, 0.6);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows — visible depth for light mode */
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08), 0 8px 32px rgba(37, 99, 235, 0.08);
    --shadow-glow: 0 4px 20px rgba(37, 99, 235, 0.15), 0 8px 32px rgba(37, 99, 235, 0.08);

    /* Misc */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Theme-aware variables */
    --bg-nav-scrolled: rgba(255, 255, 255, 0.92);
    --bg-nav-mobile: rgba(255, 255, 255, 0.98);
    --bg-input: #f1f5f9;
    --bg-overlay: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, transparent 60%);
    --grid-dots: radial-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 0), radial-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 0);
    --map-filter: none;

    /* Section title gradient — dark text to blue for light mode */
    --title-gradient: linear-gradient(135deg, #1e293b 30%, #2563EB 100%);
    /* Service/card icon background */
    --icon-bg: rgba(37, 99, 235, 0.1);
    --icon-bg-hover: rgba(37, 99, 235, 0.2);
}

.dark-mode {
    /* Backgrounds — DARK MODE: deep navy/charcoal */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.9);
    --bg-glass: rgba(17, 24, 39, 0.7);
    --bg-glass-border: rgba(55, 65, 81, 0.5);

    /* Typography — DARK MODE: light text on dark backgrounds */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-heading: #e2e8f0;

    /* Accent adjustments for dark mode (brighter to pop against dark bg) */
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563EB;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --accent-soft-bg: rgba(59, 130, 246, 0.12);

    --border: rgba(55, 65, 81, 0.5);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.2);

    /* Theme-aware overrides */
    --bg-nav-scrolled: rgba(10, 14, 26, 0.95);
    --bg-nav-mobile: rgba(10, 14, 26, 0.98);
    --bg-input: rgba(17, 24, 39, 0.6);
    --bg-overlay: linear-gradient(to top, rgba(10, 14, 26, 0.9) 0%, transparent 60%);
    --grid-dots: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0), radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    --map-filter: invert(0.9) hue-rotate(180deg);

    /* Section title gradient — light text to blue for dark mode */
    --title-gradient: linear-gradient(135deg, #e2e8f0 30%, #60a5fa 100%);
    /* Service/card icon background */
    --icon-bg: rgba(59, 130, 246, 0.15);
    --icon-bg-hover: rgba(59, 130, 246, 0.25);
}

/* ----------------------------------------------------------------
   AOS Safety Fallback
   Content must NEVER be invisible if AOS JS fails to load/init
   ---------------------------------------------------------------- */
[data-aos] {
    /* Immediately show content; AOS CSS will override with opacity:0 */
    /* but once .aos-animate is added, it goes back to opacity:1    */
}

/* If AOS JS never initializes (no .aos-init on body), show everything */
body:not([data-aos-init]) [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    background-image: var(--grid-dots);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Smooth Transitions for Theme Toggle */
body, .navbar, .glass-card, a, button, .form-control, .service-card, .project-card, .blog-card {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Theme Toggle Button Layout */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-light);
}

/* Icon displays depending on dark-mode class */
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

.dark-mode .theme-toggle .sun-icon { display: block; }
.dark-mode .theme-toggle .moon-icon { display: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

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

::selection {
    background: var(--accent);
    color: #fff;
}

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-soft-bg);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-badge i { width: 16px; height: 16px; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-heading);
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ----------------------------------------------------------------
   Glassmorphism Card
   ---------------------------------------------------------------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* ----------------------------------------------------------------
   Navbar
   ---------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-nav-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.navbar-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--accent-light);
    background: rgba(37, 99, 235, 0.1);
}

.navbar-nav .nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.navbar-nav .nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .navbar-toggle { display: block; }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-nav-mobile);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }

    .navbar-nav.show { display: flex; }

    .navbar-nav a {
        padding: 12px 16px;
        width: 100%;
    }
}

/* ----------------------------------------------------------------
   Hero Section
   ---------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content { max-width: 600px; }

.hero-welcome {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-soft-bg);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-welcome .wave { animation: wave 2s ease-in-out infinite; display: inline-block; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-typing {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-typing .typing-text {
    color: var(--accent-light);
    border-right: 2px solid var(--accent);
    padding-right: 4px;
    animation: blink 1s step-end infinite;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-social {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-social span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.hero-social a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-image-container {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.2);
}

.hero-image-ring {
    position: absolute;
    inset: -15px;
    border: 2px dashed rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

/* Floating badges */
.hero-float-badge {
    position: absolute;
    padding: 8px 14px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
    white-space: nowrap;
}

.hero-float-badge:nth-child(1) { top: 10%; right: -10%; animation-delay: 0s; }
.hero-float-badge:nth-child(2) { bottom: 20%; right: -15%; animation-delay: 0.5s; }
.hero-float-badge:nth-child(3) { top: 30%; left: -15%; animation-delay: 1s; }
.hero-float-badge:nth-child(4) { bottom: 5%; left: -5%; animation-delay: 1.5s; }

.hero-float-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Stats Section */
.stats-section {
    padding: 40px 0 60px;
    position: relative;
    z-index: 2;
}

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

.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    background: var(--icon-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #fff;
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------
   Project Cards
   ---------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-6px);
}

.project-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    gap: 12px;
    transition: var(--transition);
}

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

.project-card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-card-body {
    padding: 24px;
}

.project-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-card-title a {
    color: inherit;
}

.project-card-title a:hover {
    color: var(--accent-light);
}

.project-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tech-badge {
    padding: 4px 10px;
    background: var(--accent-soft-bg);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 500;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.project-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-card-links {
    display: flex;
    gap: 8px;
}

/* ----------------------------------------------------------------
   Skills Section
   ---------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-category-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-glow);
}

.skill-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-item {
    margin-bottom: 16px;
}

.skill-item:last-child { margin-bottom: 0; }

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.skill-name { color: var(--text-primary); font-weight: 500; }
.skill-percent { color: var(--accent-light); font-weight: 600; }

.skill-bar {
    height: 6px;
    background: var(--accent-soft-bg);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 1.5s ease;
    width: 0;
}

/* ----------------------------------------------------------------
   Experience Timeline
   ---------------------------------------------------------------- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-glow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 28px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-soft-bg);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-heading);
}

.timeline-company {
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-light);
}

/* ----------------------------------------------------------------
   Services
   ---------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: var(--shadow-glow);
    transform: translateY(-6px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--icon-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-light);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--icon-bg-hover);
    transform: scale(1.05);
}

.service-icon i { width: 28px; height: 28px; }

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    text-align: left;
    padding: 0;
}

.service-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i { color: var(--success); width: 16px; height: 16px; flex-shrink: 0; }

/* ----------------------------------------------------------------
   Testimonials
   ---------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-glow);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #f59e0b;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.testimonial-name { font-weight: 600; font-size: 0.95rem; color: var(--text-heading); }
.testimonial-role { color: var(--text-muted); font-size: 0.8rem; }

/* ----------------------------------------------------------------
   Blog Cards
   ---------------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-body { padding: 24px; }

.blog-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-title a { color: var(--text-primary); }
.blog-card-title a:hover { color: var(--accent-light); }

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.read-more:hover { gap: 10px; }

/* ----------------------------------------------------------------
   Contact Section
   ---------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder { color: var(--text-muted); }

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

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--icon-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-text p, .contact-info-text a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Map */
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--bg-glass-border);
    height: 200px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: var(--map-filter);
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ----------------------------------------------------------------
   Flash Messages
   ---------------------------------------------------------------- */
.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

.flash-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--success); }
.flash-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--danger); }
.flash-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning); }
.flash-info { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); color: var(--info); }

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
}

.flash-close:hover { opacity: 1; }

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */
.pagination-wrapper { display: flex; justify-content: center; margin-top: 40px; }

.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
}

.pagination-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination-dots {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   Certificate & Gallery Cards
   ---------------------------------------------------------------- */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.certificate-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.certificate-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

/* ----------------------------------------------------------------
   Lightbox
   ---------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.show { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ----------------------------------------------------------------
   Category Filter
   ---------------------------------------------------------------- */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ----------------------------------------------------------------
   Blog Detail
   ---------------------------------------------------------------- */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content h1, .blog-content h2, .blog-content h3 {
    margin: 32px 0 16px;
    font-weight: 700;
}

.blog-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.blog-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.blog-content code {
    padding: 2px 6px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--accent-light);
}

.blog-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

.blog-content ul, .blog-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.blog-content li { margin-bottom: 8px; }

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
}

.blog-tag {
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-light);
    font-size: 0.8rem;
}

/* ----------------------------------------------------------------
   About Section
   ---------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.about-content h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    white-space: pre-line;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.about-highlight i { color: var(--accent-light); width: 18px; height: 18px; flex-shrink: 0; }

/* ----------------------------------------------------------------
   CTA Section
   ---------------------------------------------------------------- */
.cta-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-heading);
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------------------------------
   404 Page
   ---------------------------------------------------------------- */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.error-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.error-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ----------------------------------------------------------------
   Honeypot (anti-spam)
   ---------------------------------------------------------------- */
.honeypot { display: none !important; }

/* ----------------------------------------------------------------
   Animations
   ---------------------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent); }
}

/* ----------------------------------------------------------------
   Contact Page
   ---------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.contact-info-card,
.contact-form-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    background: var(--icon-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-info-item:hover .contact-info-icon {
    background: var(--icon-bg-hover);
    transform: translateY(-2px);
}

.contact-info-text h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-info-text a,
.contact-info-text p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-text a:hover {
    color: var(--accent-light);
}

.contact-social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.contact-social-link:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-map {
    width: 100%;
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-light);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

textarea.form-control {
    resize: none;
}

/* ----------------------------------------------------------------
   Tailwind Utility Compatibility Classes (Theme-Aware)
   ---------------------------------------------------------------- */
.text-white { color: var(--text-heading) !important; }
.text-gray-100 { color: var(--text-heading) !important; }
.text-gray-200 { color: var(--text-primary) !important; }
.text-gray-300 { color: var(--text-secondary) !important; }
.text-gray-400 { color: var(--text-muted) !important; }
.text-gray-500 { color: var(--text-muted) !important; }

/* Theme-Aware Tailwind Background Overrides */
.bg-gray-900,
.bg-gray-950 {
    background-color: var(--bg-input) !important;
}

.bg-gray-850,
.bg-gray-800 {
    background-color: var(--bg-secondary) !important;
}

.bg-gray-900\/80,
.bg-gray-800\/60,
.bg-gray-800\/40 {
    background-color: var(--bg-secondary) !important;
}

.bg-gray-900\/20,
.via-slate-900\/60,
.to-purple-900\/10 {
    background-image: none !important;
    background-color: transparent !important;
}

/* Theme-Aware Tailwind Border & Divider Overrides */
.border-gray-700,
.border-gray-750,
.border-gray-800,
.border-gray-700\/50,
.border-gray-850,
.border-gray-800\/60,
.border-gray-800\/80,
.border-gray-900 {
    border-color: var(--border) !important;
}

.divide-gray-800\/60,
.divide-gray-800,
.divide-y {
    border-color: var(--border) !important;
}

/* Table Hover Overrides */
.hover\:bg-gray-800\/10:hover,
.hover\:bg-gray-800\/40:hover {
    background-color: var(--accent-soft-bg) !important;
}

/* File Input Button Overrides */
.file\:bg-gray-800 {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.file\:bg-gray-800:hover {
    background-color: var(--bg-card) !important;
}

/* Text sizes & weights */
.text-3xl { font-size: 1.875rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-base { font-size: 1rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-xs { font-size: 0.75rem !important; }

.font-black { font-weight: 900 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }

/* Spacing and Utilities */
.space-y-6 > * + * { margin-top: 1.5rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-1\.5 > * + * { margin-top: 0.375rem !important; }
.space-x-4 > * + * { margin-left: 1rem !important; }

.mb-6 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.pb-4 { padding-bottom: 1rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pt-4 { padding-top: 1rem !important; }
.p-8 { padding: 2rem !important; }
.p-12 { padding: 3rem !important; }

.list-disc { list-style-type: disc !important; }
.pl-6 { padding-left: 1.5rem !important; }
.leading-relaxed { line-height: 1.625 !important; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.w-16 { width: 4rem !important; }
.h-16 { height: 4rem !important; }
.w-12 { width: 3rem !important; }
.h-12 { height: 3rem !important; }
.w-10 { width: 2.5rem !important; }
.h-10 { height: 2.5rem !important; }
.w-9 { width: 2.25rem !important; }
.h-9 { height: 2.25rem !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.gap-4 { gap: 1rem !important; }
.gap-3 { gap: 0.75rem !important; }
.block { display: block !important; }
.inline-flex { display: inline-flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.max-w-2xl { max-w: 42rem !important; }
.max-w-3xl { max-w: 48rem !important; }
.max-w-4xl { max-w: 56rem !important; }

/* Admin Welcome Banner */
.admin-welcome-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.06)) !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    padding: 32px !important;
    border-radius: var(--radius-lg) !important;
}

.dark-mode .admin-welcome-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15)) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

.admin-welcome-banner h1 {
    color: var(--text-heading) !important;
}

.admin-welcome-banner p {
    color: var(--text-secondary) !important;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-social { justify-content: center; }
    .hero-image-container { width: 300px; height: 300px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-typing { font-size: 1.2rem; }
    .hero-image-container { width: 250px; height: 250px; }
    .hero-float-badge { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .projects-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .about-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .stat-value { font-size: 1.5rem; }
    .container { padding: 0 16px; }
}
