@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================== */
:root {
    --font-primary: 'Outfit', sans-serif;
    
    /* Colors */
    --bg-dark: #070a13;
    --bg-dark-accent: #0f1422;
    --bg-light: #f8fafc;
    --bg-card-light: #ffffff;
    --bg-card-dark: rgba(15, 20, 34, 0.75);
    
    --primary: #f59e0b; /* Amber */
    --primary-hover: #d97706;
    --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #ff7e1d 100%);
    --primary-glow: rgba(245, 158, 11, 0.35);
    
    --secondary: #0284c7; /* Sky Blue */
    --secondary-hover: #0369a1;
    --secondary-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    
    --text-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted-light: #94a3b8;
    --text-muted-dark: #475569;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-dark: #e2e8f0;
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    
    /* System */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
}

/* ==========================================
   BASE & RESET RULES
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

ul {
    list-style: none;
}

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

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

/* ==========================================
   TYPOGRAPHY & UTILITIES
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
    color: var(--text-muted-light);
}

.section-light .section-subtitle {
    color: var(--text-muted-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.section-light .btn-secondary {
    color: var(--text-dark);
    border-color: rgba(15, 23, 42, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.section-light .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-dark);
}

/* Glassmorphism Card Base */
.glass-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(12px);
    height: 70px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 40px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.15rem, 1.2vw + 0.8rem, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-light);
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 0 15px var(--primary-glow);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 24px);
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted-light);
    font-size: clamp(0.84rem, 0.8vw + 0.5rem, 0.92rem);
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.phone-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted-light);
    transition: var(--transition-smooth);
}

.phone-number:hover .phone-label {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

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

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

.header-contacts {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 20px);
}

.phone-number {
    font-weight: 700;
    font-size: clamp(0.88rem, 0.8vw + 0.6rem, 1.05rem);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.phone-number:hover {
    color: var(--primary);
}

.phone-icon {
    color: var(--primary);
    animation: pulse 2s infinite;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 30px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-smooth);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 30%, rgba(2, 132, 199, 0.15) 0%, rgba(0, 0, 0, 0) 60%),
                radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero-badge span {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
    animation: flash 1.5s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted-light);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-features {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.hero-feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
}

.hero-feature-text p {
    font-size: 0.8rem;
    color: var(--text-muted-light);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-image-card {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    aspect-ratio: 4/3;
    background-color: var(--bg-dark-accent);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

/* Floating overlay on Hero Image */
.hero-overlay-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.hero-overlay-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.hero-overlay-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.hero-overlay-info p {
    font-size: 0.8rem;
    color: var(--text-muted-light);
}

/* ==========================================
   WHY US / BENEFITS SECTION
   ========================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background: rgba(2, 132, 199, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: rotateY(180deg);
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-muted-light);
    font-size: 0.95rem;
}

/* ==========================================
   SERVICES & MATERIALS SECTION
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card-light);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: rgba(2, 132, 199, 0.2);
}

.service-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: #cbd5e1;
}

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

.service-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    background: var(--secondary-gradient);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.service-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-content p {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.service-list {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.service-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.service-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-dark);
    padding-top: 20px;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-muted-dark);
}

.price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

/* ==========================================
   CALCULATOR SECTION
   ========================================== */
.calc-container {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    overflow: hidden;
}

.calc-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-val-display {
    font-weight: 700;
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Range Input styling */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #1e293b;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Toggles / Radio Grid */
.toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.toggle-card {
    position: relative;
    cursor: pointer;
}

.toggle-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-content {
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.02);
}

.toggle-card input:checked + .toggle-content {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.toggle-card:hover .toggle-content {
    border-color: rgba(245, 158, 11, 0.4);
}

/* Package select toggle */
.package-toggle {
    display: flex;
    background: #131929;
    padding: 4px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-light);
}

.package-toggle .toggle-card {
    flex: 1;
}

.package-toggle .toggle-content {
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 8px;
}

.package-toggle .toggle-card input:checked + .toggle-content {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Results panel */
.calc-results {
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.1) 0%, rgba(7, 10, 19, 0.2) 100%);
    border-left: 1px solid var(--border-light);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.results-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
}

.results-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-muted-light);
}

.breakdown-row.total {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    color: #ffffff;
    font-weight: 800;
}

.total-price {
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.results-note {
    font-size: 0.8rem;
    color: var(--text-muted-light);
    line-height: 1.4;
    margin-bottom: 24px;
}

/* ==========================================
   PORTFOLIO / BEFORE-AFTER SECTION
   ========================================== */
.portfolio-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Before / After Slider Component */
.slider-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.before-after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    user-select: none;
}

.before-after-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-before {
    z-index: 1;
}

.image-after {
    z-index: 2;
    width: 50%; /* JS will change this */
    overflow: hidden;
}

.image-after img {
    /* Keep width static even when container clips */
    width: 800px; 
    max-width: none;
}

/* Handle in center */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%; /* JS will change this */
    width: 4px;
    background: #ffffff;
    z-index: 3;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    font-size: 1rem;
    font-weight: 800;
}

/* Before & After Badges */
.slider-badge {
    position: absolute;
    top: 20px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.slider-badge.before {
    left: 20px;
    z-index: 10;
}

.slider-badge.after {
    right: 20px;
    z-index: 10;
}

/* Portfolio carousel */
.portfolio-slider-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.portfolio-slider {
    display: flex;
    gap: 30px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.portfolio-item {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.portfolio-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
}

.portfolio-details h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.portfolio-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 20px 0;
    margin: 10px 0;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted-dark);
    margin-bottom: 4px;
}

.info-value {
    font-weight: 700;
    color: var(--text-dark);
}

.portfolio-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-dark);
    background: #ffffff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(245, 158, 11, 0.15);
    line-height: 1;
    margin-bottom: 10px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted-light);
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-dark-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-muted-light);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-md);
    background: rgba(2, 132, 199, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background: #e2e8f0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Contact Form Card */
.contact-form-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-form-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact-form-card p {
    color: var(--text-muted-light);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

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

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

textarea.form-input {
    resize: none;
    min-height: 120px;
}

.form-submit-btn {
    width: 100%;
}

/* Form Success State styling */
.form-success-message {
    display: none;
    text-align: center;
    padding: 30px 10px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-success-message h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-success-message p {
    color: var(--text-muted-light);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 60px 0 40px;
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
}

.legal-links {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
}

/* ==========================================
   ANIMATIONS & SCROLL EFFECT UTILITIES
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes flash {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================== */
@media (max-width: 1200px) {
    .phone-label {
        display: none;
    }
    .nav-menu {
        gap: clamp(8px, 1.2vw, 16px);
    }
    .nav-link {
        font-size: 0.86rem;
    }
    .header .container {
        padding: 0 24px;
    }
}

@media (max-width: 1100px) {
    .header-contacts .btn {
        display: none;
    }
}

@media (max-width: 1150px) {
    :root {
        --header-height: 70px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .benefits-grid, .services-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
    }

    /* Mobile Hamburger Menu */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid var(--border-light);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .header-contacts {
        display: none;
    }
    
    .calc-container {
        grid-template-columns: 1fr;
    }
    
    .calc-results {
        border-left: none;
        border-top: 1px solid var(--border-light);
    }
    
    .portfolio-item {
        grid-template-columns: 1fr;
    }
    
    .slider-container {
        aspect-ratio: 4/3;
    }
    
    .image-after img {
        width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .benefits-grid, .services-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================
   GALLERY OF COMPLETED PROJECTS (USER IMAGES)
   ========================================== */
.gallery-section {
    padding-top: 60px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 60px;
}

.section-dark .gallery-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.section-dark .gallery-title {
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-dark);
    aspect-ratio: 4/3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
    background-color: #e2e8f0;
}

.section-dark .gallery-item {
    border-color: var(--border-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: var(--primary);
}

.section-dark .gallery-item:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    border-color: var(--primary);
}

.gallery-item:hover img {
    transform: scale(1.05);
}
