* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* TYPOGRAPHIC HIERARCHY */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.75px;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.875rem;
    }
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    h3 {
        font-size: 1.375rem;
    }
}

h4 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.25px;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Body Text */
p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

p + p {
    margin-top: 1rem;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

li {
    margin-bottom: 0.75rem;
}

/* Links */
a {
    color: #C84C38;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b5b;
}

/* Small text */
small, .text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

/* Muted text */
.text-muted {
    color: rgba(255, 255, 255, 0.6);
}

/* Text utilities */
.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(200, 76, 56, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(200, 76, 56, 0.6);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-5deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(200, 76, 56, 0.3);
    }
    50% {
        border-color: rgba(200, 76, 56, 0.8);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation utility classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-slideInDown {
    animation: slideInDown 0.7s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1.5s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-slideUp {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-slideDown {
    animation: slideDown 0.8s ease-out forwards;
}

.animate-rotateIn {
    animation: rotateIn 0.7s ease-out forwards;
}

.animate-borderGlow {
    animation: borderGlow 2s ease-in-out infinite;
}

.animate-shimmer {
    animation: shimmer 2s infinite;
    background-size: 200% 100%;
}

/* Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Decorative lines and separators */
.line-accent {
    position: relative;
    padding-bottom: 1.5rem;
}

.line-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #C84C38, transparent);
    border-radius: 2px;
}

.line-accent-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.line-accent-full::after {
    width: 100%;
}

.divider-vertical {
    width: 1px;
    background: linear-gradient(180deg, transparent, #C84C38, transparent);
    margin: 0 2rem;
}

.divider-horizontal {
    height: 1px;
    background: linear-gradient(90deg, transparent, #C84C38, transparent);
    margin: 3rem 0;
}

/* Decorative accent elements */
.accent-box {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(200, 76, 56, 0.3);
    border-radius: 12px;
    background: rgba(200, 76, 56, 0.05);
    overflow: hidden;
}

.accent-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 76, 56, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.accent-corner {
    position: relative;
}

.accent-corner::before,
.accent-corner::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #C84C38;
}

.accent-corner::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.accent-corner::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

/* Text effects */
.gradient-text {
    background: linear-gradient(135deg, #C84C38, #ff6b54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-hover:hover {
    background: linear-gradient(135deg, #ff6b54, #C84C38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.text-glow {
    text-shadow: 0 0 20px rgba(200, 76, 56, 0.5);
}

/* Cards */
.card-hover {
    transition: all 0.4s ease;
    border: 1px solid rgba(200, 76, 56, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-12px);
    border-color: rgba(200, 76, 56, 0.6);
    box-shadow: 0 20px 40px rgba(200, 76, 56, 0.2);
}

.service-card {
    overflow: hidden;
    border-radius: 12px;
}

.service-card img {
    transition: transform 0.7s ease, filter 0.7s ease;
}

.service-card:hover img {
    transform: scale(1.12);
    filter: brightness(1.1);
}

/* Buttons */
.btn-primary {
    background: #C84C38;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: #b54432;
    box-shadow: 0 10px 30px rgba(200, 76, 56, 0.4);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    border: 2px solid rgba(200, 76, 56, 0.5);
    color: #C84C38;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(200, 76, 56, 0.1);
    border-color: #C84C38;
    transform: translateY(-2px);
}

/* Icons */
.icon-box {
    transition: all 0.3s ease;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box svg {
    transition: all 0.3s ease;
}

.icon-box:hover {
    background: #C84C38;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(200, 76, 56, 0.3);
}

.icon-box:hover svg {
    color: white;
    transform: scale(1.1) rotate(5deg);
}

body {
  background-color: #121212;
}
section {
  background-color: #1C1F23;
}

/* FOOTER LINKS */
.footer-link {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #c84c38;
}

/* Header and footer link hover: light red-orange gradient with subtle lift */
.nav-link, footer a, .footer-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700; /* Bold font for all navigation links */
    transition: color 0.25s ease, transform 0.2s ease, background 0.35s ease;
}

.nav-link:hover {
    background: linear-gradient(90deg, #ff8a65, #ff6b5b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-2px);
}

footer a:hover,
.footer-link:hover {
    background: linear-gradient(90deg, #ff8a65, #ff6b5b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-1px);
}

/* Ensure focus states are visible for keyboard users */
.nav-link:focus, footer a:focus, .footer-link:focus {
    outline: 2px solid rgba(255,122,90,0.15);
    outline-offset: 3px;
}

/* ============ RESPONSIVE IMPROVEMENTS ============ */

/* Mobile Navigation */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .hidden.md\:flex {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Mobile-friendly spacing */
    section {
        padding: 2rem 1rem;
    }

    .max-w-7xl {
        padding: 0 1rem;
    }

    /* Reduce animation on mobile for performance */
    .animate-float {
        animation: float 2s ease-in-out infinite;
    }

    /* Touchable button sizes */
    button, .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screens */
@media (min-width: 1025px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Enable more animations on larger screens */
    .animate-subtle {
        animation: float 3s ease-in-out infinite;
    }
}

/* Ultra-wide screens */
@media (min-width: 1440px) {
    .max-w-7xl {
        max-width: 88rem;
    }

    .grid-responsive {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============ IMPROVED SECTION STYLING ============ */

section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C84C38, transparent);
    opacity: 0.3;
}

/* Section spacing improvements */
.section-spacing {
    padding: 4rem 2rem;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 2rem 1rem;
    }
}

/* ============ GRID AND LAYOUT IMPROVEMENTS ============ */

.grid-cols-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-cols-auto {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============ FORM STYLING WITH ANIMATIONS ============ */

input, textarea, select {
    transition: all 0.3s ease;
    border: 1px solid rgba(200, 76, 56, 0.2);
    border-radius: 8px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #C84C38;
    box-shadow: 0 0 0 3px rgba(200, 76, 56, 0.1);
    transform: translateY(-2px);
}

/* ============ SCROLL ANIMATION HELPERS ============ */

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-animate.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ============ STAGGER ANIMATIONS ============ */

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item:nth-child(1) { animation: fadeInUp 0.6s ease-out forwards; }
.stagger-item:nth-child(2) { animation: fadeInUp 0.6s ease-out forwards 0.1s; }
.stagger-item:nth-child(3) { animation: fadeInUp 0.6s ease-out forwards 0.2s; }
.stagger-item:nth-child(4) { animation: fadeInUp 0.6s ease-out forwards 0.3s; }
.stagger-item:nth-child(5) { animation: fadeInUp 0.6s ease-out forwards 0.4s; }
.stagger-item:nth-child(6) { animation: fadeInUp 0.6s ease-out forwards 0.5s; }
.stagger-item:nth-child(7) { animation: fadeInUp 0.6s ease-out forwards 0.6s; }
.stagger-item:nth-child(8) { animation: fadeInUp 0.6s ease-out forwards 0.7s; }

/* ============ DECORATIVE ACCENT LINES ============ */

.accent-line-top {
    position: relative;
    padding-top: 2rem;
}

.accent-line-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C84C38, transparent);
    border-radius: 2px;
}

.accent-line-bottom {
    position: relative;
    padding-bottom: 2rem;
}

.accent-line-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C84C38, transparent);
    border-radius: 2px;
}

/* ============ LOADING AND SHIMMER EFFECTS ============ */

.shimmer-loading {
    background: linear-gradient(
        90deg,
        rgba(200, 76, 56, 0.05),
        rgba(200, 76, 56, 0.15),
        rgba(200, 76, 56, 0.05)
    );
    animation: shimmer 2s infinite;
    background-size: 200% 100%;
}

/* ============ LOGO & NAVIGATION ANIMATIONS ============ */

/* Logo entrance animation - smooth fade + scale */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation links fade + translate entrance */
@keyframes navFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply logo entrance animation */
header a[href="index.html"]:first-of-type {
    animation: logoEntrance 1s ease-out forwards;
}

/* Navigation link styling with entrance animation */
.nav-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700; /* Bold font for all nav links */
    opacity: 0;
    animation: navFadeIn 0.6s ease-out forwards;
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Staggered delays for each nav link */
.nav-link:nth-child(1) { animation-delay: 0.2s; } /* Home */
.nav-link:nth-child(2) { animation-delay: 0.3s; } /* About Us */
.nav-link:nth-child(3) { animation-delay: 0.4s; } /* Projects */

/* Button also gets staggered animation */
.btn-primary {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700; /* Bold font */
    opacity: 0;
    animation: navFadeIn 0.6s ease-out forwards;
    animation-delay: 0.5s;
    transition: transform 0.25s ease;
}

/* Hover micro-interaction - subtle lift */
.nav-link:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Language buttons with staggered entrance */
.lang-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700; /* Bold font */
    opacity: 0;
    animation: navFadeIn 0.6s ease-out forwards;
    transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
}

#lang-en { animation-delay: 0.6s; }
#lang-nl { animation-delay: 0.65s; }

.lang-btn:hover {
    transform: translateY(-2px);
    background-color: rgba(200, 76, 56, 0.15);
    color: #C84C38;
}

.lang-btn.active {
    background-color: rgba(200, 76, 56, 0.2);
    color: #ff6b5b;
    font-weight: 800;
}

/* ============ BREADCRUMB NAVIGATION ============ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 1.5rem 0;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #C84C38;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
    color: #C84C38;
    font-weight: 500;
}

/* ============ TESTIMONIAL CARDS ============ */

.testimonial-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #3d1f1a 100%);
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(200, 76, 56, 0.1);
}

/* ============ WHATSAPP FLOATING BUTTON ============ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* ============ PROJECT CARD HOVER EFFECTS ============ */

.project-card {
    overflow: hidden;
}

.project-card img {
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* ============ ACCESSIBILITY ============ */

@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    header a[href="index.html"]:first-of-type,
    .nav-link,
    .btn-primary,
    .lang-btn {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .nav-link:hover,
    .btn-primary:hover,
    .lang-btn:hover {
        transform: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}