/* Portfolio Website - Premium Professional Design */
/* Martin Omondo - Full-Stack Developer */

/* Professional Color Palette - Navy, Gold & Premium Accents */
:root {
    --primary-navy: #0A174E;
    --primary-dark: #050a27;
    --secondary-slate: #1e293b;
    --accent-gold: #F5D042;
    --accent-gold-dark: #d4b532;
    --accent-blue: #3b82f6;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --card-bg: #ffffff;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    /* Shadows - Premium depth */
    --shadow-sm: 0 2px 8px rgba(10, 23, 78, 0.04);
    --shadow-md: 0 4px 16px rgba(10, 23, 78, 0.08);
    --shadow-lg: 0 8px 32px rgba(10, 23, 78, 0.12);
    --shadow-xl: 0 16px 48px rgba(10, 23, 78, 0.16);
    --shadow-2xl: 0 24px 64px rgba(10, 23, 78, 0.20);

    /* Gradients - Sophisticated */
    --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, #1e3a8a 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(10, 23, 78, 0.95) 0%, rgba(30, 58, 138, 0.95) 100%);
    --gradient-shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode {
    --primary-navy: #3b82f6;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --bg-gray: #334155;
    --card-bg: #1e293b;
    --border-light: #334155;
    --border-medium: #475569;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    transition: var(--transition);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar - Professional */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Header - Glass Morphism */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(10, 23, 78, 0.08);
}

.dark-mode header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-navy);
    background: rgba(245, 208, 66, 0.1);
}

.nav-links a.active {
    font-weight: 700;
}

.theme-toggle,
.mobile-menu {
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    margin-left: 12px;
}

.theme-toggle:hover,
.mobile-menu:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu {
    display: none;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Page Container */
.page {
    display: none;
    padding-top: 84px;
    min-height: calc(100vh - 70px);
}

.page.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* HERO SECTION - Premium Professional Design */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0A174E 0%, #1e3a8a 50%, #1e293b 100%);
}

/* Hero Background Image Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./resource/hero-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

/* Animated Gradient Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(245, 208, 66, 0.1) 0%,
            transparent 50%,
            rgba(59, 130, 246, 0.1) 100%);
    z-index: 2;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

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

.hero-content {
    color: white;
}

.hero-content .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content .badge i {
    color: var(--accent-gold);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero h1 .highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-weight: 500;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    min-height: 54px;
    background: var(--gradient-gold);
    color: var(--primary-navy);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245, 208, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 208, 66, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-gold);
}

/* Hero Image Section with Professional Photo */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-gold);
    top: -50px;
    right: -50px;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-blue);
    bottom: -30px;
    left: -30px;
    animation-delay: -3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.profile-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 4px solid rgba(255, 255, 255, 0.2);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    font-weight: 800;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-img span {
    position: relative;
    z-index: 1;
}

/* ABOUT SECTION - Professional Cards */
.section {
    padding: 120px 0;
    position: relative;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 208, 66, 0.1);
    color: var(--accent-gold-dark);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid rgba(245, 208, 66, 0.2);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* Premium Skill Cards */
.skill-item {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.skill-item:hover::before {
    transform: scaleX(1);
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

.skill-item i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 24px;
    display: block;
    transition: var(--transition);
}

.skill-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.skill-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.skill-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* PROJECTS SECTION - Professional Grid */
.projects {
    background: var(--bg-gray);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: var(--card-bg);
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 44px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-navy);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
    gap: 32px;
}

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

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

.project-img {
    width: 100%;
    height: 240px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-img::after {
    opacity: 0.8;
}

.project-info {
    padding: 32px;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(245, 208, 66, 0.1);
    color: var(--accent-gold-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(245, 208, 66, 0.2);
}

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

.project-links .btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 32px;
}

.service-card {
    background: var(--card-bg);
    padding: 48px 36px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--gradient-gold);
    transition: var(--transition-slow);
}

.service-card:hover::before {
    width: 100%;
}

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

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 24px;
    transition: var(--transition);
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CONTACT SECTION */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: #000000;
    transition: var(--transition);
    font-size: 1rem;
    font-family: inherit;
}



.form-control:focus {
    outline: none;
    border-color: #000000;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.dark-mode .form-control {
    background-color: #ffffff;
    color: #000000;
    border-color: var(--border-medium);
}

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

/* FOOTER - Professional Multi-Column Design */
footer {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 48px 0 24px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

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

/* Footer Column Styles */
.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent-gold);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

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

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--accent-gold);
}

/* Social Links in Footer */
.footer-col .social-links {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--gradient-gold);
    color: var(--primary-navy);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-credits {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-credits i {
    color: #ef4444;
    margin: 0 4px;
}

.footer-credits i.fa-coffee {
    color: #d4b532;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(245, 208, 66, 0.2);
    border-left-color: var(--accent-gold);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

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

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-visual {
        max-width: 400px;
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 16px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        gap: 24px;
        padding: 40px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

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

    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px 24px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        max-width: 300px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .skill-item,
    .service-card {
        padding: 32px 24px;
    }

    .section-title {
        font-size: 2rem;
    }

    footer {
        padding: 32px 0 16px;
    }

    .footer-col h3 {
        font-size: 1.1rem;
    }

    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .footer-tagline {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col .social-links {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        padding-top: 16px;
    }
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    border: 1px solid var(--border-light);
    cursor: pointer;
}

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

.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--gradient-primary);
}

.blog-content {
    padding: 28px;
}

.blog-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
}