/* Custom Properties */
:root {
    --primary: 174 63% 56%; /* #249c90 */
    --primary-hover: 174 70% 46%; /* #1a7a70 */
    --secondary: 220 9% 46%; /* #6B7280 */
    --success: 142 71% 45%; /* #10B981 */
    --danger: 0 84% 60%; /* #EF4444 */
    --warning: 45 93% 58%; /* #F59E0B */
    --info: 199 89% 48%; /* #0EA5E9 */
    --light: 210 40% 95%; /* #F1F5F9 */
    --dark: 222 84% 5%; /* #0F172A */
    --background: 210 11% 98%; /* #F8FAFC */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 222 84% 5%; /* #0F172A */
    --text-secondary: 215 16% 47%; /* #64748B */
    --border: 214 32% 91%; /* #E2E8F0 */
    --shadow: 220 43% 11% / 0.1; /* rgba(15, 23, 42, 0.1) */
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    line-height: 1.1;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: hsl(var(--surface)) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary)) !important;
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(32%) sepia(76%) saturate(2068%) hue-rotate(174deg) brightness(91%) contrast(89%);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: hsl(var(--text-primary));
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: hsl(var(--primary));
    background-color: hsl(var(--primary) / 0.1);
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, hsl(var(--surface)) 0%, hsl(var(--light)) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.5;
    z-index: -1;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-graphic {
    padding: 2rem;
    position: relative;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    z-index: -1;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: white;
    box-shadow: 0 4px 14px 0 hsl(var(--primary) / 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: hsl(var(--primary-hover));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 hsl(var(--primary) / 0.35);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
}

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

/* Sections */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: hsl(var(--light)) !important;
}

/* Service Cards */
.service-card {
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px hsl(var(--shadow));
    border-color: hsl(var(--primary) / 0.2);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Forms */
.form-control,
.form-select {
    border: 2px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 0.2rem hsl(var(--primary) / 0.25);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

.form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

.form-label {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
    font-weight: 500;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    border: 1px solid hsl(var(--success) / 0.2);
}

.alert-danger {
    background-color: hsl(var(--danger) / 0.1);
    color: hsl(var(--danger));
    border: 1px solid hsl(var(--danger) / 0.2);
}

/* Footer */
footer {
    background-color: hsl(var(--dark)) !important;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
    color: hsl(var(--primary)) !important;
}

/* Utilities */
.text-primary {
    color: hsl(var(--primary)) !important;
}

.text-muted {
    color: hsl(var(--text-secondary)) !important;
}

.bg-white {
    background-color: hsl(var(--surface)) !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px 0 hsl(var(--shadow)), 0 1px 2px 0 hsl(var(--shadow));
}

.rounded-3 {
    border-radius: 0.75rem !important;
}

/* Loading Animation */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.675rem 1.5rem;
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 120px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-content .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* App Cards */
.app-card {
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
    height: 100%;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px hsl(var(--shadow));
    border-color: hsl(var(--primary) / 0.3);
}

.app-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.app-platforms .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Process Steps */
.process-step {
    padding: 1.5rem;
}

.step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Tech Items */
.tech-item {
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
}

.tech-item i {
    transition: all 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1);
}

/* Navigation Active State */
.nav-link.active {
    color: hsl(var(--primary)) !important;
    background-color: hsl(var(--primary) / 0.1);
}

/* Cloud System Cards */
.cloud-system-card {
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cloud-system-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px hsl(var(--shadow));
    border-color: hsl(var(--primary) / 0.3);
}

.cloud-system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / 0.7));
    transition: left 0.3s ease;
}

.cloud-system-card:hover::before {
    left: 0;
}

.system-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.system-features .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
}

/* Benefit Cards */
.benefit-card {
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px hsl(var(--shadow));
    border-color: hsl(var(--primary) / 0.2);
}

/* Architecture Items */
.architecture-item {
    transition: all 0.3s ease;
}

.architecture-item:hover {
    transform: translateY(-3px);
}

.architecture-item i {
    transition: all 0.3s ease;
}

.architecture-item:hover i {
    transform: scale(1.1);
    color: hsl(var(--primary)) !important;
}

/* Migration Steps */
.migration-step {
    padding: 1.5rem;
}

.migration-step .step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.migration-step:hover .step-number .badge {
    transform: scale(1.1);
    box-shadow: 0 5px 15px hsl(var(--primary) / 0.3);
}

/* Web Solution Cards */
.web-solution-card {
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
    height: 100%;
}

.web-solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px hsl(var(--shadow));
    border-color: hsl(var(--primary) / 0.2);
}

/* Web Project Cards */
.web-project-card {
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.web-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px hsl(var(--shadow));
    border-color: hsl(var(--primary) / 0.3);
}

.web-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / 0.7));
    transition: left 0.3s ease;
}

.web-project-card:hover::before {
    left: 0;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.project-tech .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
}

/* Tech Cards */
.tech-card {
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px hsl(var(--shadow));
    border-color: hsl(var(--primary) / 0.2);
}

.tech-card i {
    transition: all 0.3s ease;
}

.tech-card:hover i {
    transform: scale(1.1);
    color: hsl(var(--primary)) !important;
}

/* Development Process Steps */
.dev-process-step {
    padding: 1.5rem;
}

.dev-process-step .step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.dev-process-step:hover .step-number .badge {
    transform: scale(1.1);
    box-shadow: 0 5px 15px hsl(var(--primary) / 0.3);
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}
