/* ===== CSS Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --white: #ffffff;
    --black: #000000;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --transition: all 0.2s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

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

.btn-white:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-100);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-nav {
    padding: 0.5rem 1.25rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

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

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

.logo-icon {
    font-size: 1.75rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:not(.btn):hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--gray-700);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--gray-200);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a:not(.btn)::after {
        display: none;
    }
}

/* ===== Hero Section ===== */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cloud-icon {
    font-size: 10rem;
    color: var(--primary);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icons .icon {
    position: absolute;
    font-size: 2rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.icon-1 {
    top: 10%;
    right: 10%;
    animation: float 4s ease-in-out infinite;
}

.icon-2 {
    bottom: 20%;
    left: 5%;
    animation: float 5s ease-in-out infinite 0.5s;
}

.icon-3 {
    bottom: 10%;
    right: 20%;
    animation: float 4.5s ease-in-out infinite 1s;
}

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

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
}

/* ===== Services Overview ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.link-arrow {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.link-arrow:hover {
    gap: 0.5rem;
}

@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Why Us Section ===== */
.why-us {
    background-color: var(--gray-50);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us-text h2 {
    margin-bottom: 2rem;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.check-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.check-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.check-list strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.check-list p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.why-us-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

@media (max-width: 968px) {
    .why-us-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .why-us-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand .logo-img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--primary-light);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.875rem;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Page Headers ===== */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--gray-600);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Services Page ===== */
.service-detail {
    padding: 5rem 0;
}

.service-detail:nth-child(even) {
    background-color: var(--gray-50);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-content {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail-content > * {
    direction: ltr;
}

.service-detail-text h2 {
    margin-bottom: 1rem;
}

.service-detail-text > p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
}

.feature-list .check-icon {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
}

.service-detail-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon-large {
    font-size: 12rem;
    color: var(--primary);
    opacity: 0.15;
}

@media (max-width: 968px) {
    .service-detail-content,
    .service-detail:nth-child(even) .service-detail-content {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .service-detail-visual {
        display: none;
    }
}

/* ===== Pricing Table ===== */
.pricing-section {
    background-color: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card:hover {
    border-color: var(--primary-light);
}

.pricing-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-card .price-note {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

@media (max-width: 968px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
    }
}

/* ===== Forms ===== */
.form-section {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group label .required {
    color: var(--error);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    accent-color: var(--primary);
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    color: var(--gray-600);
}

.form-submit {
    margin-top: 2rem;
}

/* Form Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem;
}

.form-success.show {
    display: block;
}

.form-success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.form-success h3 {
    margin-bottom: 0.75rem;
}

.form-success p {
    color: var(--gray-600);
}

/* ===== About Page ===== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro-text h2 {
    margin-bottom: 1.5rem;
}

.about-intro-text p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-icon {
    font-size: 15rem;
    color: var(--primary);
    opacity: 0.15;
}

@media (max-width: 968px) {
    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-visual {
        display: none;
    }
}

.values-section {
    background-color: var(--gray-50);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

@media (max-width: 968px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item p,
.contact-item a {
    color: var(--gray-600);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
