/* ============================================
   Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    
    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

/* ============================================
   Container
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-md);
    min-height: 80px;
    height: 80px;
    --header-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    justify-self: center;
    align-self: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 100%;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    line-height: 1.2;
    align-items: flex-start;
    width: fit-content;
}

.logo-text {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: calc(var(--header-height, 80px) * 0.4);
    font-weight: 400;
    color: #6b7280;
    letter-spacing: 0.1em;
    display: block;
    line-height: 1;
    position: relative;
    text-transform: uppercase;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.08) 0px, transparent 2px),
        radial-gradient(circle at 60% 70%, rgba(0, 0, 0, 0.06) 0px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.05) 0px, transparent 1.5px),
        radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.07) 0px, transparent 2px),
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.04) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 3px,
            transparent 4px,
            rgba(0, 0, 0, 0.02) 5px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.04) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 3px,
            transparent 4px,
            rgba(0, 0, 0, 0.02) 5px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.02) 0px,
            transparent 1px,
            transparent 3px,
            rgba(0, 0, 0, 0.01) 4px
        ),
        linear-gradient(135deg, #6b7280 0%, #5a6268 30%, #6b7280 60%, #5a6268 100%);
    background-size: 
        8px 8px,
        6px 6px,
        10px 10px,
        7px 7px,
        4px 4px,
        4px 4px,
        6px 6px,
        100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.logo-subtext {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: calc(var(--header-height, 80px) * 0.15);
    font-weight: 400;
    color: var(--text-gray);
    letter-spacing: 0.1em;
    display: block;
    line-height: 1;
    margin-top: 2px;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    align-items: center;
    justify-self: start;
}

.logo {
    justify-self: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
    margin-left: var(--spacing-xl);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.25rem 0.375rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-sm);
    overflow: visible;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(34, 158, 217, 0.05);
}

.nav-link:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
    outline: none;
}

.nav-link:focus {
    outline: none;
}

.nav-link.clicked {
    animation: nav-link-pulse 0.3s ease-out;
    outline: none;
}

@keyframes nav-link-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.header-cta {
    justify-self: end;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    margin-top: 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fadeInUp 0.8s ease-out, pulse 3s ease-in-out 0.8s infinite;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    color: var(--text-gray);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    perspective: 1000px;
    perspective-origin: center center;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.hero-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: rotate3d 8s ease-in-out infinite;
    transition: transform 0.1s ease-out;
}

.hero-image.manual-control .hero-img {
    animation: none;
}

@keyframes rotate3d {
    0% {
        transform: perspective(1000px) rotateY(0deg) rotateX(5deg);
    }
    25% {
        transform: perspective(1000px) rotateY(10deg) rotateX(-5deg);
    }
    50% {
        transform: perspective(1000px) rotateY(0deg) rotateX(5deg);
    }
    75% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(-5deg);
    }
    100% {
        transform: perspective(1000px) rotateY(0deg) rotateX(5deg);
    }
}

.about-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: block;
    position: relative;
    transform: rotate(-1.5deg);
    clip-path: polygon(
        0% 2%,
        98% 0%,
        100% 20%,
        99% 40%,
        100% 60%,
        98% 80%,
        100% 98%,
        2% 100%,
        0% 80%,
        1% 60%,
        0% 40%,
        1% 20%
    );
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.service-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    border: none;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */

.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
}

/* ============================================
   Services Section
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: var(--spacing-md);
    width: 100%;
}

.service-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 158, 217, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 158, 217, 0.15);
    border-color: var(--primary-color);
}

.service-card:hover .service-icon-img {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    margin-bottom: var(--spacing-sm);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.service-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: center;
}

/* ============================================
   Advantages Section
   ============================================ */

.advantages {
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: var(--spacing-md);
    width: 100%;
}

.advantage-item {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.advantage-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(34, 158, 217, 0.3);
}

.advantage-icon {
    margin-bottom: var(--spacing-sm);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    margin: 0 auto var(--spacing-sm);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.advantage-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.advantage-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.advantage-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ============================================
   Cases Section
   ============================================ */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: var(--spacing-md);
    width: 100%;
}

.case-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.case-card:hover {
    box-shadow: 0 20px 40px rgba(34, 158, 217, 0.15);
    transform: translateY(-5px);
}

.case-card:hover::before {
    transform: scaleX(1);
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

.case-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
    min-height: 200px;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}

.case-img {
    transition: transform 0.5s ease;
}

.case-card:hover .case-img {
    transform: scale(1.1);
}

.case-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    line-height: 1.3;
}

.case-problem {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.case-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    flex: 0 0 auto;
    margin-top: 0;
}

.case-details.expanded {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.case-solution,
.case-technical,
.case-results {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    font-size: 0.9rem;
}

.case-problem strong,
.case-solution strong,
.case-technical strong,
.case-results strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.case-toggle-btn {
    margin-top: auto;
    padding: 0.5rem 1rem;
    font-size: 0;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
    align-self: flex-start;
    flex: 0 0 auto;
    position: relative;
}

.case-toggle-btn:hover {
    background: var(--primary-color);
    color: white;
}

.case-toggle-btn::before {
    content: "Подробнее";
    font-size: 0.9rem;
}

.case-toggle-btn.expanded::before {
    content: "Подробнее (Свернуть)";
}

/* ============================================
   Contacts Section
   ============================================ */

.contacts {
    background: var(--bg-light);
    overflow: hidden;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contacts.revealing .section-header {
    animation: piece-assemble-header 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.contacts.revealing .contact-form {
    animation: piece-assemble-left 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.contacts.revealing .contact-info {
    animation: piece-assemble-right 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

.contacts.revealing .section-header,
.contacts.revealing .contact-form,
.contacts.revealing .contact-info {
    opacity: 0;
}

@keyframes piece-assemble-header {
    0% {
        opacity: 0;
        transform: translate(-200px, -200px) scale(0.3) rotate(-45deg);
        clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    }
    50% {
        opacity: 0.7;
        transform: translate(20px, 20px) scale(1.1) rotate(5deg);
        clip-path: polygon(0% 0%, 50% 0%, 50% 50%, 0% 50%);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

@keyframes piece-assemble-left {
    0% {
        opacity: 0;
        transform: translate(-300px, 200px) scale(0.2) rotate(45deg);
        clip-path: polygon(100% 0%, 100% 0%, 100% 0%, 100% 0%);
    }
    50% {
        opacity: 0.7;
        transform: translate(-30px, -20px) scale(1.05) rotate(-5deg);
        clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 0% 50%);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

@keyframes piece-assemble-right {
    0% {
        opacity: 0;
        transform: translate(300px, 200px) scale(0.2) rotate(-45deg);
        clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    }
    50% {
        opacity: 0.7;
        transform: translate(30px, -20px) scale(1.05) rotate(5deg);
        clip-path: polygon(50% 0%, 100% 0%, 100% 50%, 50% 50%);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

.contact-form {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(1352%) hue-rotate(230deg) brightness(98%) contrast(92%);
}

.contact-details h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.contact-details p {
    color: var(--text-gray);
    margin: 0;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.footer-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-light);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Image Placeholders
   ============================================ */

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, var(--bg-gray), var(--bg-light));
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.image-placeholder.small {
    min-height: 80px;
    height: 80px;
    width: 80px;
    border-radius: var(--radius-sm);
}

.image-placeholder::before {
    content: '🖼️';
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.prompt-text {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.5;
    z-index: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    max-width: 100%;
    word-wrap: break-word;
}

.image-placeholder.small .prompt-text {
    font-size: 0.6rem;
    padding: var(--spacing-xs);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ============================================
   Accessibility
   ============================================ */

*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Particle Explosion Effect
   ============================================ */

.particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    animation: particle-explode 1s ease-out forwards;
}

@keyframes particle-explode {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}


