:root {
    --brand: #0f172a;
    --brand-light: #1e293b;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
}

#topBar {
    height: 44px;
}

#navbar {
    top: 44px;
}

.page-content-offset {
    margin-top: 44px;
}

.bg-brand { background-color: #0f172a; }
.bg-brand-light { background-color: #1e293b; }
.bg-accent { background-color: #0ea5e9; }
.bg-accent-dark { background-color: #0284c7; }

.cta-overlay {
    background-color: rgba(15, 23, 42, 0.75);
}
.text-brand { color: #0f172a; }
.text-brand-light { color: #1e293b; }
.text-accent { color: #0ea5e9; }
.text-accent-dark { color: #0284c7; }
.border-accent { border-color: #0ea5e9; }
.hover\:bg-brand-light:hover { background-color: #1e293b; }
.hover\:bg-accent-dark:hover { background-color: #0284c7; }
.hover\:text-brand:hover { color: #0f172a; }
.hover\:text-accent:hover { color: #0ea5e9; }
.hover\:text-accent-dark:hover { color: #0284c7; }

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
}

.hero-gradient {
    background: linear-gradient(180deg,
        rgba(15, 23, 42, 0.2) 0%,
        rgba(15, 23, 42, 0.5) 40%,
        rgba(15, 23, 42, 0.85) 70%,
        rgba(15, 23, 42, 0.95) 100%);
}

.navbar-blur {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modern-card {
    background: white;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
}

.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modern-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.modern-card .relative {
    flex-shrink: 0;
}

.modern-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover img {
    transform: scale(1.08);
}

.modern-card > div:last-child {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem;
}

@media (min-width: 640px) {
    .modern-card > div:last-child {
        padding: 1.75rem;
    }
}

.modern-card p {
    flex-grow: 1;
}

.modern-card a {
    margin-top: auto;
}

.stat-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.project-overlay {
    background: linear-gradient(to top,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.4) 50%,
        transparent 100%);
}

.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0ea5e9;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
}

.hero-text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

@media (max-width: 640px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

footer {
    background: linear-gradient(to bottom, #0f172a 0%, #020617 100%);
}

.custom-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#contact-form {
    max-width: 100%;
}

#contact-form label {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea,
#contact-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-size: 1rem;
    background-color: #f9fafb;
}

#contact-form input:hover,
#contact-form textarea:hover,
#contact-form select:hover {
    border-color: #cbd5e1;
    background-color: white;
}

#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    outline: none;
    border-color: #0ea5e9;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

#contact-form button[type="submit"] {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

#contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.4);
}

#contact-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#contact-form button[type="submit"]:hover::before {
    left: 100%;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-messages {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-messages.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-messages.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

::selection {
    background-color: #0ea5e9;
    color: white;
}

#mobile-menu {
    transition: all 0.3s ease-in-out;
}

[data-aos] {
    transition-duration: 800ms !important;
}

#tjanster h2 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#tjanster .text-center p {
    color: #475569;
    max-width: 2xl;
}

@media (min-width: 1024px) {
    #tjanster .grid {
        grid-auto-rows: minmax(0, 1fr);
    }

    #tjanster .modern-card {
        border-radius: 20px;
    }

    #tjanster .modern-card > .relative:first-child {
        height: 280px;
    }

    #tjanster .modern-card > div:last-child {
        padding: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #tjanster .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #tjanster .modern-card > .relative:first-child {
        height: 240px;
    }
}

.modern-card ul li {
    transition: all 0.3s ease;
    padding-left: 1.5rem;
}

.modern-card:hover ul li {
    padding-left: 1.75rem;
}

.modern-card ul li i {
    transition: all 0.3s ease;
}

.modern-card:hover ul li i {
    color: #10b981 !important;
    transform: scale(1.2);
}