/* ===================================
   ICASS Company Limited - Enhanced Styles
   Modern Design System with Accessibility
   =================================== */

/* CSS Variables - Professional Construction Design System */
:root {
    /* Primary Construction Colors */
    --primary: #1a2332;
    /* Deep Charcoal - Professional & Strong */
    --primary-dark: #0d1218;
    --primary-light: #2d3e50;
    --primary-lightest: #44566d;

    --secondary: #FF6B35;
    /* Construction Orange - Energy & Safety */
    --secondary-dark: #E55A28;
    --secondary-light: #FF8555;

    --accent: #FFB800;
    /* Safety Yellow - Visibility & Attention */
    --accent-dark: #E5A500;
    --accent-light: #FFD633;

    /* Supporting Construction Colors */
    --steel-grey: #546E7A;
    --steel-grey-light: #78909C;
    --steel-grey-dark: #37474F;

    --concrete-grey: #95a5a6;
    --concrete-light: #bdc3c7;

    --safety-green: #4CAF50;
    --industrial-blue: #607D8B;

    /* Neutrals - Professional Gray Scale */
    --dark: #2c2c2c;
    --dark-gray: #424242;
    --medium-gray: #616161;
    --light-gray: #e0e0e0;
    --lighter-gray: #f5f5f5;
    --white: #ffffff;

    /* Semantic Colors */
    --success: #4CAF50;
    --warning: #FFB800;
    --error: #F44336;
    --info: #2196F3;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography Scale */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --font-5xl: 3.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

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

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

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

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

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', 'Work Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--dark);
    letter-spacing: 0.02em;
}

h1 {
    font-size: var(--font-5xl);
}

h2 {
    font-size: var(--font-4xl);
}

h3 {
    font-size: var(--font-3xl);
}

h4 {
    font-size: var(--font-2xl);
}

h5 {
    font-size: var(--font-xl);
}

h6 {
    font-size: var(--font-lg);
}

p {
    margin-bottom: var(--space-md);
    font-weight: 300;
    letter-spacing: 0.01em;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

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

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, var(--light-gray) 0%, var(--lighter-gray) 50%, var(--light-gray) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--secondary) 0%, #FF8555 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: var(--font-base);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.9rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn::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: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #E55A28 0%, #FF9570 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(26, 35, 50, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, #FF8555 100%);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn-secondary:active {
    background: linear-gradient(135deg, #E55A28 0%, var(--secondary) 100%);
}

/* Sections */
section {
    padding: var(--space-4xl) 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    font-size: var(--font-4xl);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.98) 0%, rgba(45, 62, 80, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: var(--space-md) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-fixed);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border-bottom: 3px solid var(--secondary);
}

header.scrolled {
    padding: var(--space-sm) 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 1) 0%, rgba(45, 62, 80, 1) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    max-height: 50px;
    width: auto;
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: var(--radius);
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

nav a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: var(--space-sm) 0;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--secondary);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: var(--z-modal);
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-full);
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Hero Section */
.hero {
    background: #000;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: zoomFade 24s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 6s;
}

.hero-slide:nth-child(3) {
    animation-delay: 12s;
}

.hero-slide:nth-child(4) {
    animation-delay: 18s;
}

@keyframes zoomFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    4% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    29% {
        opacity: 0;
        transform: scale(1.1);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-xl);
    color: var(--white);
    animation: fadeInUp 0.8s ease forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease forwards 0.2s;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    /* Ensure it behaves as a block element */
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    animation: fadeInUp 0.8s ease forwards 0.4s;
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: var(--font-3xl);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.scroll-down:hover {
    color: var(--secondary);
    transform: translateX(-50%) scale(1.2);
}

/* Page Header - Professional Hero for Internal Pages */
.page-header {
    background: linear-gradient(135deg, rgba(34, 76, 152, 0.9) 0%, rgba(65, 74, 76, 0.9) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1770&q=80') no-repeat center center/cover;
    padding: 10rem 0 6rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* About Section */
.about {
    background: linear-gradient(180deg, #fafafa 0%, var(--white) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 184, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    transition: var(--transition-slow);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 4px solid var(--secondary);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 2;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.about-image:hover::after {
    opacity: 1;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    opacity: 0.12;
    z-index: 1;
    transition: var(--transition);
}

.about-image:hover::before {
    opacity: 0.25;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: var(--space-2xl);
    text-align: center;
    gap: var(--space-lg);
}

.stat-item {
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--white) 0%, var(--lighter-gray) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(70, 130, 180, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

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

.stat-number {
    font-size: var(--font-5xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    font-family: 'Staatliches', sans-serif;
}

.stat-label {
    color: var(--medium-gray);
    font-weight: 500;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-2xl);
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(70, 130, 180, 0.2);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}

.product-info {
    padding: var(--space-xl);
}

.product-info h3 {
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.product-info p {
    margin-bottom: var(--space-md);
    color: var(--medium-gray);
    font-size: var(--font-sm);
}

.product-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.product-features li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    font-size: var(--font-sm);
    color: var(--medium-gray);
}

.product-features i {
    color: var(--success);
    margin-right: var(--space-sm);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-2xl);
}

.service-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(248, 249, 250, 0.8) 100%);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(70, 130, 180, 0.2);
}

.service-card i {
    font-size: var(--font-5xl);
    color: var(--secondary);
    margin-bottom: var(--space-md);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 184, 0, 0.1) 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.service-card:hover i {
    transform: scale(1.15) rotateY(180deg);
    color: var(--accent);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 184, 0, 0.2) 100%);
    border-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.service-card h3 {
    color: var(--dark);
    margin-bottom: var(--space-md);
    font-size: var(--font-xl);
}

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

/* Rentals Section */
.rentals {
    background-color: var(--lighter-gray);
}

.rental-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.rental-card {
    background-color: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.rental-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 0;
    background: linear-gradient(180deg, var(--secondary), var(--accent));
    transition: var(--transition);
}

.rental-card:hover::before {
    height: 100%;
}

.rental-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.rental-card i {
    font-size: var(--font-5xl);
    color: var(--secondary);
    margin-bottom: var(--space-md);
    transition: var(--transition);
}

.rental-card:hover i {
    color: var(--accent);
    transform: scale(1.15);
}

/* Clients Section */
.clients {
    background: linear-gradient(180deg, var(--white) 0%, var(--lighter-gray) 100%);
    position: relative;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(70, 130, 180, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(70, 130, 180, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

.clients .container {
    position: relative;
    z-index: 1;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-2xl);
    align-items: center;
}

.client-logo {
    background: linear-gradient(135deg, var(--white) 0%, var(--lighter-gray) 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.7;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.client-logo::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: var(--transition-slow);
}

.client-logo:hover::before {
    left: 100%;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(70, 130, 180, 0.2);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, rgba(34, 76, 152, 0.95) 0%, rgba(65, 74, 76, 0.95) 100%),
        url('https://images.unsplash.com/photo-1465433045946-ba6506ce5a59?ixlib=rb-4.0.3&auto=format&fit=crop&w=1770&q=80') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    position: relative;
    background-attachment: fixed;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%),
        linear-gradient(135deg, rgba(70, 130, 180, 0.2) 0%, rgba(243, 156, 18, 0.1) 100%);
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-title::after {
    background: linear-gradient(90deg, var(--accent), var(--white));
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial {
    padding: var(--space-3xl);
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    margin: 0 var(--space-md);
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s var(--transition);
}

.testimonial-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-lg);
    color: var(--accent);
    font-size: 0.9rem;
}

.testimonial-stars i {
    text-shadow: 0 2px 4px rgba(255, 184, 0, 0.3);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--space-lg);
    position: relative;
    font-size: var(--font-lg);
    line-height: 1.8;
    color: var(--medium-gray);
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: var(--font-5xl);
    color: var(--secondary);
    position: absolute;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text::before {
    top: -20px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--secondary);
    font-size: var(--font-base);
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: var(--font-sm);
    opacity: 0.75;
    color: var(--concrete-grey);
}

.testimonial-controls {
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.testimonial-control {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.testimonial-control:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.testimonial-control.active {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transform: scale(1.3);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: var(--space-3xl);
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-details {
    margin-bottom: var(--space-2xl);
}

.contact-details div {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--lighter-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-details div:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.contact-details i {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--space-md);
    font-size: var(--font-xl);
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.contact-details div:hover i {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.map {
    height: 300px;
    background-color: var(--light-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.form-group {
    margin-bottom: var(--space-lg);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group label::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: super;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-family: 'Work Sans', sans-serif;
    font-size: var(--font-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    color: var(--dark);
    font-weight: 400;
}

.form-control::placeholder {
    color: var(--concrete-grey);
    opacity: 0.8;
}

.form-control:hover {
    border-color: var(--concrete-light);
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: var(--error);
}

.form-control.error {
    border-color: var(--error);
    background: rgba(244, 67, 54, 0.05);
}

.form-control.error:focus {
    box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.1);
}

.form-control.success {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.05);
}

.form-control.success:focus {
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.error-message {
    color: var(--error);
    font-size: var(--font-sm);
    margin-top: 6px;
    display: none;
    font-weight: 500;
    animation: slideInLeft 0.3s ease;
}

.form-control.error+.error-message {
    display: block;
}

.success-message {
    color: var(--success);
    font-size: var(--font-sm);
    margin-top: 6px;
    display: none;
    font-weight: 500;
    animation: slideInLeft 0.3s ease;
}

.form-control.success+.success-message {
    display: block;
}

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

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-md);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    font-family: 'Staatliches', sans-serif;
    font-size: var(--font-3xl);
    color: var(--white);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
}

.footer-links h3,
.footer-newsletter h3 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    position: relative;
    font-size: var(--font-xl);
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: var(--radius-full);
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: #ddd;
    transition: var(--transition);
    display: inline-block;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.newsletter-form {
    display: flex;
    margin-top: var(--space-lg);
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: 'Work Sans', sans-serif;
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border: none;
    padding: 0 var(--space-xl);
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #E55A28, var(--secondary));
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.copyright {
    text-align: center;
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-sm);
    color: #aaa;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border-radius: var(--radius-full);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--font-xl);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* WhatsApp Chat Button */
.whatsapp-chat {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--font-3xl);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    z-index: var(--z-fixed);
    animation: pulse 2s infinite;
}

.whatsapp-chat:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    z-index: var(--z-modal);
    transition: var(--transition);
}

.skip-to-content:focus {
    top: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .section-title {
        font-size: var(--font-3xl);
    }

    .stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: var(--font-4xl);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-gray);
        padding: var(--space-md) 0;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        text-align: center;
        padding: var(--space-md) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: block;
    }

    .stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .whatsapp-chat {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: var(--font-2xl);
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: var(--font-2xl);
    }

    .hero h1 {
        font-size: var(--font-3xl);
    }

    .hero p {
        font-size: var(--font-base);
    }

    /* --- OPTIMIZED INDEX PAGE DESIGN --- */

    /* Enhanced Service & Product Cards */
    .service-card,
    .product-card {
        border: 1px solid rgba(0, 0, 0, 0.05);
        /* Subtle border */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        /* Softer, deeper shadow */
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .service-card:hover,
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-color: transparent;
    }

    /* Service Icons with Gradient */
    .service-card i {
        background: linear-gradient(135deg, var(--primary), var(--accent));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 3.5rem;
        display: inline-block;
        margin-bottom: 1.5rem;
    }

    /* Who We Are - Subtle Background */
    .about {
        background-color: #f9fbfd;
        /* Very light blue-gray */
        position: relative;
    }

    .about::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(70, 130, 180, 0.05) 0%, transparent 70%);
        pointer-events: none;
    }

    /* Call to Action - Construction Theme */
    section[style*="background-color: var(--dark-gray)"] {
        position: relative;
        background: linear-gradient(135deg, var(--primary) 0%, var(--steel-grey-dark) 100%) !important;
        overflow: hidden;
        border-top: 4px solid var(--secondary);
        border-bottom: 4px solid var(--accent);
    }

    section[style*="background-color: var(--dark-gray)"]::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -10%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 60%);
        z-index: 0;
    }

    section[style*="background-color: var(--dark-gray)"] .container {
        position: relative;
        z-index: 1;
    }

    /* Typography Enhancements */
    h1,
    h2,
    h3 {
        letter-spacing: -0.02em;
        /* Slightly tighter for modern look */
    }

    /* Footer Polish */
    footer {
        background: #151b22;
        /* Darker than standard dark-gray */
    }

    .footer-container {
        padding-bottom: 3rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 2rem;
    }

    .social-icons a {
        background: rgba(255, 255, 255, 0.1);
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        margin-right: 0.5rem;
    }

    .social-icons a:hover {
        background: var(--accent);
        color: var(--white);
        transform: translateY(-3px);
    }

    .social-icons a i {
        color: var(--white);
    }

    .product-card,
    .rental-card,
    .service-card {
        max-width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .container {
        width: 95%;
    }
}

/* Print Styles */
@media print {

    header,
    .whatsapp-chat,
    .back-to-top,
    .scroll-down,
    footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Page Hero Section (Subpages) */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Increased padding for a more dramatic, premium look */
    padding: 10rem 0 6rem;
    text-align: center;
    color: var(--white);
    background-color: var(--dark-gray);
    /* Fallback */
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay for text readability */
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-header {
        padding: 8rem 0 4rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* --- OPTIMIZED INDEX PAGE DESIGN (GLOBAL) --- */

/* Enhanced Service & Product Cards */
.service-card,
.product-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover,
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Service Icons with Construction Gradient */
.service-card i {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Who We Are - Construction Subtle Background */
.about {
    background-color: #fafafa;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Call to Action - Construction Theme */
section[style*="background-color: var(--dark-gray)"] {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--steel-grey-dark) 100%) !important;
    overflow: hidden;
    border-top: 4px solid var(--secondary);
    border-bottom: 4px solid var(--accent);
}

section[style*="background-color: var(--dark-gray)"]::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 60%);
    z-index: 0;
}

section[style*="background-color: var(--dark-gray)"] .container {
    position: relative;
    z-index: 1;
}

/* Typography Enhancements */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

/* Footer Polish */
footer {
    background: #151b22;
}

.footer-container {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.social-icons a {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.social-icons a i {
    color: var(--white);
}

/* ===================================
   Enhanced Animations & Effects
   =================================== */

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    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 scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
    }
}

/* Service cards enhanced */
.service-card {
    animation: fadeInUp 0.6s ease backwards;
    transition: all 0.3s ease;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 35, 50, 0.2);
}

.service-card i {
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2) rotateZ(-5deg);
    color: var(--secondary);
}

/* Form enhancements */
input[type="text"],
input[type="email"],
input[type="phone"],
input[type="number"],
textarea,
select {
    transition: all 0.3s ease;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    background-color: #f9f9f9;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

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

/* Button enhanced effects */
.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Links enhancement */
a:not(.btn):not([class*="footer"]) {
    position: relative;
    padding-bottom: 2px;
}

a:not(.btn):not([class*="footer"])::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

a:not(.btn):not([class*="footer"]):hover::after {
    width: 100%;
}

/* Hero section enhanced */
.hero-content h1 {
    animation: fadeInDown 0.8s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    animation: fadeInUp 0.8s ease 0.2s backwards;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Stat counters */
.stat-item {
    animation: scaleUp 0.6s ease backwards;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    color: var(--accent);
    transform: scale(1.1);
}

/* Testimonial cards */
.testimonial-card {
    animation: fadeInUp 0.6s ease backwards;
    transition: all 0.3s ease;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
}

/* Image hover effects */
img {
    transition: all 0.3s ease;
}

.about-image img {
    border-radius: var(--radius-lg);
}

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

/* Section visibility animation - triggered by JavaScript */
section.visible {
    animation: fadeInUp 0.8s ease;
}

/* Back to top button pulse */
.back-to-top {
    animation: pulse 2s ease-in-out infinite;
}

.back-to-top:hover {
    animation: glow 1s ease-in-out infinite;
}

/* WhatsApp button hover */
.whatsapp-chat {
    transition: all 0.3s ease;
}

.whatsapp-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

/* Smooth page transitions */
html {
    scroll-behavior: smooth;
}

/* Loading placeholder animation */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}