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

:root {
    --primary: #000000;
    --primary-light: #333333;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --text: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --border: #e5e5e5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Fluid typography */
@media (min-width: 320px) and (max-width: 1200px) {
    html {
        font-size: calc(16px + 6 * ((100vw - 320px) / 880));
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.3px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
}

.logo:hover {
    color: var(--accent);
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    border-top: 1px solid var(--border);
    gap: 1.5rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

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

.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section - Unique Split Layout */
.hero {
    padding: 8rem 0 6rem;
    min-height: auto;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
    letter-spacing: -1.5px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-note {
    font-size: 0.8125rem;
    color: var(--text-lighter);
    font-style: italic;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-shape {
    position: absolute;
    border-radius: 20px;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(129, 140, 248, 0.3) 100%);
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(129, 140, 248, 0.2) 100%);
    top: 50%;
    right: 5%;
    animation-delay: 4s;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.visual-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-text {
    background: transparent;
    color: var(--text);
    padding: 0.875rem 0;
    border: none;
    text-decoration: none;
}

.btn-text:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.btn-secondary {
    background: var(--text-light);
    color: var(--bg);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About / Features Section */
.about {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

/* Unique Masonry Layout */
.features-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    grid-auto-rows: auto;
}

.feature-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: top;
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-card:hover {
    transform: translateY(-6px) translateX(4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.feature-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-alt);
    line-height: 1;
    z-index: 0;
    letter-spacing: -2px;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.feature-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 50%;
    opacity: 0.1;
    transition: var(--transition);
}

.feature-card:hover .feature-accent {
    opacity: 0.2;
    transform: scale(1.2);
}

/* Card Sizes */
.feature-small {
    min-height: 220px;
}

.feature-medium {
    min-height: 260px;
}

.feature-large {
    min-height: 300px;
    padding: 2.5rem;
}

/* Mobile Styles - Extra Small */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .feature-card,
    .service-card,
    .review-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .visual-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .features-masonry {
        gap: 1.5rem;
    }
    
    .feature-small,
    .feature-medium,
    .feature-large {
        min-height: auto;
    }
    
    .feature-offset {
        margin-top: 0 !important;
    }
    
    .feature-number {
        font-size: 2.5rem;
    }
    
    .hero-wrapper {
        gap: 3rem;
    }
    
    .hero-visual {
        min-height: 300px;
    }
    
    .visual-shape {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-body {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .modal-body h2 {
        font-size: 1.5rem;
    }
    
    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-display {
        width: 100%;
    }
    
    .captcha-refresh {
        width: 100%;
    }
}

.feature-highlight {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.feature-highlight::before {
    background: var(--accent);
}

.feature-offset {
    margin-top: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.service-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.4) 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-image::after {
    opacity: 1;
}

.service-image img,
.service-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

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

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Reviews Section */
.reviews {
    background: var(--bg-alt);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.review-card {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.review-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.review-card:hover .review-avatar {
    border-color: var(--accent);
    transform: scale(1.05);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.review-card:hover .review-avatar img {
    transform: scale(1.1);
}

.review-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.8;
    font-size: 1.0625rem;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.review-author strong {
    color: var(--primary);
    font-weight: 600;
}

.review-author span {
    color: var(--text-lighter);
    font-size: 0.875rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 10px;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--accent);
    transform: scale(1.1);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.contact-item strong {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.5;
    display: block;
}

.contact-item a:hover {
    color: var(--accent);
}

/* Form Styles */
.contact-form {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Captcha Styles */
.captcha-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.captcha-display {
    width: 120px;
    height: 50px;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    user-select: none;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.captcha-refresh {
    width: 50px;
    height: 50px;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text);
    transition: var(--transition);
    flex-shrink: 0;
}

.captcha-refresh:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: rotate(180deg);
}

#captcha {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    font-size: 0.9375rem;
}

.form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--bg);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.footer-logo h4 {
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.9375rem;
}

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

.footer-column ul li {
    margin-bottom: 0.875rem;
}

.footer-column ul li a,
.footer-column ul li span {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9375rem;
    font-weight: 400;
    display: inline-block;
    line-height: 1.6;
}

.footer-column ul li a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.footer-column ul li span {
    cursor: default;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--bg);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: var(--transition);
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.cookie-popup-content p {
    text-align: center;
    color: var(--text);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.cookie-popup-content a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-popup-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 3001;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-alt);
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
    z-index: 3002;
    line-height: 1;
}

.modal-close:hover {
    background: var(--accent);
    color: var(--bg);
}

.modal-body {
    padding: 3rem 2.5rem 2.5rem;
}

.modal-body h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.modal-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Tablet Styles - Small */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn {
        flex: 1;
        min-width: 200px;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .hero {
        padding: 10rem 0 8rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: row;
        align-items: center;
    }

    .section-title {
        font-size: 3rem;
    }

    .features-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(200px, auto);
        gap: 2rem;
    }
    
    .feature-offset {
        margin-top: -20px;
    }
    
    .feature-large {
        grid-column: span 1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-popup-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cookie-popup-buttons {
        flex-wrap: nowrap;
    }

    .visual-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-wrapper {
        gap: 4rem;
    }
    
    .hero-visual {
        min-height: 350px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        border: none;
    }

    .burger-menu {
        display: none;
    }

    .hero-wrapper {
        grid-template-columns: 1.2fr 1fr;
        gap: 6rem;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.375rem;
    }

    .features-masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(220px, auto);
        gap: 2.5rem;
    }
    
    .feature-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .feature-medium {
        grid-column: span 1;
    }
    
    .feature-small {
        grid-column: span 1;
    }
    
    .feature-offset {
        margin-top: -30px;
    }
    
    /* Specific positioning for unique layout */
    .features-masonry .feature-card:nth-child(1) {
        grid-column: 1 / 3;
    }
    
    .features-masonry .feature-card:nth-child(2) {
        grid-column: 3;
    }
    
    .features-masonry .feature-card:nth-child(3) {
        grid-column: 1;
    }
    
    .features-masonry .feature-card:nth-child(4) {
        grid-column: 2 / 4;
        margin-top: -25px;
    }
    
    .features-masonry .feature-card:nth-child(5) {
        grid-column: 1;
    }
    
    .features-masonry .feature-card:nth-child(6) {
        grid-column: 2 / 4;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    section {
        padding: 6rem 0;
    }

    .visual-content {
        padding: 3rem;
    }
    
    .hero-visual {
        min-height: 400px;
    }
    
    .container {
        padding: 0 3rem;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .container {
        padding: 0 4rem;
        max-width: 1400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-title {
        font-size: 5rem;
    }
    
    .hero-wrapper {
        gap: 8rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    section {
        padding: 8rem 0;
    }
}

/* Extra Large Desktop */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-popup,
    .burger-menu {
        display: none;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}
