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

/* Easter Egg Tooltip */
.easter-egg {
    cursor: help;
}

/* Prevent horizontal overflow and fix scroll issues */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #1a201a;
    --accent-color: #768d5e;
    --accent-secondary: #8fa677;
    --accent-tertiary: #5a6e54;
    --accent-purple: #9b59b6;
    --accent-blue: #3498db;
    --accent-orange: #f39c12;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --blur-amount: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #768d5e 0%, #8fa677 50%, #a0b88c 100%);
    --gradient-secondary: linear-gradient(45deg, #9b59b6 0%, #3498db 50%, #f39c12 100%);
    --gradient-depth: linear-gradient(135deg, rgba(118, 141, 94, 0.1) 0%, rgba(155, 89, 182, 0.1) 50%, rgba(52, 152, 219, 0.1) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--secondary-color);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(118, 141, 94, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(155, 89, 182, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(52, 152, 219, 0.03) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Prevent layout shifts during loading */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Font loading optimization */
.font-loading * {
    opacity: 0;
}

.fonts-loaded * {
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(118, 141, 94, 0.3) rgba(118, 141, 94, 0.05);
}

/* Floating ambient elements for depth */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 20%, rgba(118, 141, 94, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(155, 89, 182, 0.015) 0%, transparent 40%),
        radial-gradient(circle at 60% 40%, rgba(52, 152, 219, 0.01) 0%, transparent 40%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: pageLoad 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Bebas Neue', 'Arial Narrow', 'Arial', sans-serif;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(118, 141, 94, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition), transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    will-change: transform;
    contain: layout style paint;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-depth);
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(118, 141, 94, 0.1);
}

.glass-card:hover::before {
    opacity: 0.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Bebas Neue', 'Arial Narrow', 'Arial', sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    color: #5a6e54;
    text-shadow: 0 0 20px rgba(90, 110, 84, 0.5);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5a6e54;
    transition: width 0.3s ease;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Enhanced layered background with texture and depth */
    background: 
        /* Subtle noise texture */
        radial-gradient(circle at 25% 25%, rgba(118, 141, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(155, 89, 182, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(52, 152, 219, 0.06) 0%, transparent 50%),
        /* Main gradient overlay */
        linear-gradient(135deg, rgba(10,10,10,0.8) 0%, rgba(20,20,20,0.9) 50%, rgba(10,10,10,0.8) 100%),
        /* Base image */
        url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?w=1920');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.7) 100%
    );
}

.hero-content {
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    display: block;
    padding: 40px 50px;
    text-align: center;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    margin-bottom: 15px;
    color: #5a6e54;
    text-shadow: 0 0 40px rgba(90, 110, 84, 0.3);
}

.hero-tagline {
    font-size: clamp(14px, 1.8vw, 18px);
    color: var(--text-secondary);
    margin: 0 auto 30px auto;
    max-width: 450px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #5a6e54;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(118, 141, 94, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(118, 141, 94, 0.4);
    background: #677a62;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--accent-tertiary);
    border-bottom: 2px solid var(--accent-tertiary);
    transform: rotate(45deg);
    filter: drop-shadow(0 0 5px rgba(78, 205, 196, 0.3));
}

/* Section Styles */
section {
    padding: 60px 0;
    position: relative;
    transform: translateZ(0);
    overflow-x: hidden;
    max-width: 100%;
}

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

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-tertiary), #5cb385);
    margin: 0 auto;
    border-radius: 2px;
}

/* Work Section */
.work-section {
    background: 
        /* Texture overlay */
        radial-gradient(circle at 10% 20%, rgba(118, 141, 94, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.04) 0%, transparent 40%),
        /* Main gradient */
        linear-gradient(180deg, rgba(10,10,10,0.92) 0%, rgba(15,15,15,0.95) 100%), 
        /* Base image */
        url('https://images.unsplash.com/photo-1574717024653-61fd2cf4d44d?w=1920');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: background-position;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.work-item {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.work-item:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(118, 141, 94, 0.15),
        0 10px 30px rgba(155, 89, 182, 0.1),
        0 5px 15px rgba(52, 152, 219, 0.1);
}

.work-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    min-height: 200px;
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

/* Skeleton loader for images */
.work-thumbnail.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 75%
    );
    background-size: 200% 100%;
    animation: loading-wave 1.5s infinite;
    z-index: 1;
}

@keyframes loading-wave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fix for From Billet to Bat thumbnail */
.work-item[data-project="dicks"] .work-thumbnail img {
    transform: scale(1.02);
}

.work-item[data-project="dicks"]:hover .work-thumbnail img {
    transform: scale(1.12);
}

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

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0) rotateZ(-180deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 0 0 rgba(118, 141, 94, 0.3);
}

.work-item:hover .play-icon {
    transform: scale(1) rotateZ(0deg);
    box-shadow: 0 0 0 10px rgba(118, 141, 94, 0.1);
}

.play-icon svg {
    width: 30px;
    height: 30px;
    color: var(--secondary-color);
    margin-left: 3px;
}

.work-info {
    padding: 25px;
}

.work-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.work-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Skills Section */
.skills-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a201a 0%, #2d3829 100%);
    /* Woodsy forest floor with moss and leaves */
    background-image: linear-gradient(135deg, rgba(26,32,26,0.75) 0%, rgba(45,56,41,0.75) 100%), url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1920');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.skills-grid .skill-category:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.skill-category {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(118, 141, 94, 0.2);
}

.skill-category:hover::before {
    opacity: 0.1;
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-depth);
    border-radius: 15px;
    padding: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-category:nth-child(1) .skill-icon {
    color: var(--accent-color);
}

.skill-category:nth-child(2) .skill-icon {
    color: var(--accent-tertiary);
}

.skill-category:nth-child(3) .skill-icon {
    color: var(--accent-purple);
}

.skill-category:nth-child(4) .skill-icon {
    color: var(--accent-blue);
}

.skill-category:hover .skill-icon {
    transform: translateY(-5px) rotateX(15deg) scale(1.1);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skill-icon svg {
    width: 100%;
    height: 100%;
}

.skill-category h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.skill-tag {
    background: rgba(118, 141, 94, 0.1);
    border: 1px solid rgba(118, 141, 94, 0.3);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.skill-tag:hover {
    background: rgba(118, 141, 94, 0.2);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.skill-tag.featured-skill {
    background: rgba(90, 110, 84, 0.2);
    border: 1px solid var(--accent-tertiary);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}


.skill-tag.featured-skill:hover {
    background: rgba(90, 110, 84, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(90, 110, 84, 0.3);
}


/* Responsive Skills */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .skills-grid .skill-category:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }

    .skill-category {
        padding: 30px 20px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
    }
    
    .skill-category h3 {
        font-size: 20px;
    }
    
    .skill-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Clients Section */
.clients-section {
    background: #1a201a;
    /* PLACEHOLDER: Professional office or meeting space */
    background-image: linear-gradient(rgba(15,15,15,0.96), rgba(15,15,15,0.96)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?w=1920');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: background-position;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
    justify-content: center;
    align-items: center;
}

a.client-logo,
.client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    filter: grayscale(100%);
    opacity: 0.6;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    flex: 0 1 auto;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(118,141,94,0.3), rgba(118,141,94,0) 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.client-logo:hover::before {
    width: 200px;
    height: 200px;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-4px) scale(1.05);
    background: var(--gradient-depth);
    border-color: rgba(118, 141, 94, 0.2);
    box-shadow: 
        0 10px 30px rgba(118, 141, 94, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes clientPulse {
    0% {
        transform: scale(1.1) rotate(2deg);
    }
    50% {
        transform: scale(1.15) rotate(-1deg);
    }
    100% {
        transform: scale(1.1) rotate(2deg);
    }
}

.client-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.client-logo:hover .client-name {
    background: linear-gradient(135deg, var(--accent-tertiary), #4d9973);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #2d3829 0%, #1a201a 100%);
    /* PLACEHOLDER: Writing/creative workspace image */
    background-image: linear-gradient(135deg, rgba(26,26,26,0.94) 0%, rgba(15,15,15,0.94) 100%), url('https://images.unsplash.com/photo-1455390582262-044cdead277a?w=1920');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: background-position;
}

.blog-preview {
    margin-top: 60px;
    padding: 50px 40px;
}

.blog-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.blog-text {
    flex: 2;
}

.blog-text h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}

.blog-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.blog-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.blog-tag {
    background: rgba(118, 141, 94, 0.1);
    border: 1px solid rgba(118, 141, 94, 0.3);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.blog-tag:hover {
    background: rgba(118, 141, 94, 0.2);
    border-color: var(--accent-color);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    transition: var(--transition);
}

.blog-link:hover {
    background: var(--accent-tertiary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 141, 94, 0.3);
}

.blog-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.blog-link:hover svg {
    transform: translate(2px, -2px);
}

.blog-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-icon {
    width: 120px;
    height: 120px;
    color: var(--accent-color);
    opacity: 0.7;
}

.blog-icon svg {
    width: 100%;
    height: 100%;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .blog-preview {
        padding: 30px 20px;
    }
    
    .blog-text h3 {
        font-size: 24px;
    }
    
    .blog-icon {
        width: 80px;
        height: 80px;
    }
}

/* About Section */
.about-section {
    background: 
        /* Texture overlay */
        radial-gradient(circle at 30% 40%, rgba(155, 89, 182, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(52, 152, 219, 0.04) 0%, transparent 50%),
        /* Main gradient overlay with reduced opacity to show background image */
        linear-gradient(180deg, rgba(15,15,15,0.85) 0%, rgba(10,10,10,0.88) 100%), 
        /* Background image - forest */
        url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1920');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: background-position;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-personal {
    margin-top: 30px;
    padding: 20px;
    background: rgba(118, 141, 94, 0.05);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
}

.about-personal h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.about-personal p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-secondary);
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-section {
    background: var(--secondary-color);
    /* PLACEHOLDER: Contact/communication themed image */
    background-image: linear-gradient(rgba(10,10,10,0.95), rgba(10,10,10,0.95)), url('https://images.unsplash.com/photo-1516387938699-a93567ec168e?w=1920');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: background-position;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.submit-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-tertiary), #4d9973);
    color: var(--text-primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(118, 141, 94, 0.5);
}

.contact-alternative {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.email-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.email-link {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.email-link:hover {
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 10, 10, 0.95) !important;
    z-index: 100000 !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 20px !important;
    transform: none !important;
    overflow: auto !important;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    max-width: 900px !important;
    max-height: 80vh !important;
    width: 90% !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 100001 !important;
    margin: auto !important;
    transform: none !important;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-video-container {
    width: 100%;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    z-index: 100002;
    position: relative;
    border: 3px solid green !important;
}

.video-wrapper {
    width: 100%;
    height: 500px;
    background: orange !important;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid purple !important;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    display: block;
}

.modal-info {
    margin-top: 20px;
    padding: 30px;
}

.modal-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        width: 95%;
        max-height: 85vh;
    }
    
    .video-wrapper {
        max-height: 50vh;
    }
    
    .modal-info {
        padding: 15px;
        margin-top: 15px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
        animation: slideInMenu 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    @keyframes slideInMenu {
        from {
            left: -100%;
            opacity: 0;
        }
        to {
            left: 0;
            opacity: 1;
        }
    }
    
    .nav-menu.active .nav-link {
        animation: fadeInMenuItem 0.5s ease forwards;
        opacity: 0;
    }
    
    .nav-menu.active .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .nav-menu.active .nav-link:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .nav-menu.active .nav-link:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    .nav-menu.active .nav-link:nth-child(4) {
        animation-delay: 0.4s;
    }
    
    .nav-menu.active .nav-link:nth-child(5) {
        animation-delay: 0.5s;
    }
    
    @keyframes fadeInMenuItem {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }
    
    .nav-toggle span {
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-card {
        padding: 40px 30px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        gap: 15px;
        padding: 20px;
    }
    
    .client-logo {
        padding: 15px 20px;
        font-size: 16px;
    }

    .about-stats {
        justify-content: space-between;
    }

    .glass-card {
        padding: 30px 20px;
    }

    section {
        padding: 60px 0;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        background: rgba(10, 10, 10, 0.8);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .clients-grid {
        gap: 12px;
        padding: 15px;
    }
    
    .client-name {
        font-size: 14px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Minimal Footer Styles */
.footer-minimal {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    padding: 30px 0;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
    font-size: 14px;
}

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

.footer-left, .footer-center, .footer-right {
    flex: 1;
}

.footer-left {
    text-align: left;
}

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

.footer-right {
    text-align: right;
}

.footer-minimal p {
    margin: 0;
    opacity: 0.8;
}

.footer-social-minimal {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.footer-social-minimal a {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-minimal a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.availability-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        gap: 15px;
    }

    .footer-left, .footer-center, .footer-right {
        text-align: center;
    }

    .footer-social-minimal {
        justify-content: center;
    }
}

/* Old Footer Styles (keeping for reference, can be deleted) */
.footer {
    background: linear-gradient(180deg, var(--secondary-color) 0%, #0d110d 100%);
    color: var(--text-secondary);
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-location {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.availability-status {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

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

.footer-social a {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-credits {
    color: var(--accent-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-location {
        justify-content: center;
    }
}
