/* Modern Light Theme CSS for Starnia Case */

/* CSS Variables - Light Color Scheme */
:root {
    /* Primary Colors */
    --primary-blue: #2563eb;
    --primary-purple: #7c3aed;
    --primary-cyan: #06b6d4;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    
    /* Text Colors */
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-muted: #94a3b8;
    
    /* Accent Colors */
    --accent-orange: #f59e0b;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    --gradient-secondary: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    --gradient-accent: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}

/* Navigation */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-gray-100);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.custom-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.brand-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.navbar-nav .nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
    background-color: var(--bg-gray-50);
}

.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
    background-color: var(--bg-gray-100);
}

.btn-contact {
    /* background: var(--gradient-primary) !important; */
    color: white !important;
    border-radius: var(--radius-lg) !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600 !important;
}

.btn-contact:hover {
    background: var(--gradient-secondary) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    padding: 2rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--bg-gray-50);
    border: 1px solid var(--bg-gray-100);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-stats {
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-gray-100);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary-custom:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-secondary);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--bg-gray-200);
    color: var(--text-dark);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-outline-custom:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.main-illustration {
    position: relative;
    width: 300px;
    height: 300px;
}

.center-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
}

.graphic-circle {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    position: relative;
}

.graphic-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    opacity: 0.3;
    animation: spin 10s linear infinite;
}

.graphic-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.graphic-dots span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: float 2s ease-in-out infinite;
}

.graphic-dots span:nth-child(1) { top: -20px; left: -4px; animation-delay: 0s; }
.graphic-dots span:nth-child(2) { top: -4px; right: -20px; animation-delay: 0.5s; }
.graphic-dots span:nth-child(3) { bottom: -20px; left: -4px; animation-delay: 1s; }
.graphic-dots span:nth-child(4) { top: -4px; left: -20px; animation-delay: 1.5s; }

.floating-card {
    position: absolute;
    background: var(--bg-white);
    border: 1px solid var(--bg-gray-100);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.25rem;
}

.card-1 {
    top: 10%;
    left: -20%;
    color: #61dafb;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -30%;
    color: #68a063;
    animation-delay: 2s;
}

.card-3 {
    top: 60%;
    left: -30%;
    color: #f7df1e;
    animation-delay: 4s;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Section Styles */
.section-badge {
    display: inline-block;
    background: var(--bg-gray-50);
    border: 1px solid var(--bg-gray-100);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services Section */
.services-section {
    position: relative;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--bg-gray-100);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.service-card.featured {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(37, 99, 235, 0.02) 100%);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: all 0.6s ease;
}

.service-card:hover .service-overlay {
    left: 100%;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-content {
    animation: fadeInUp 0.8s ease-out;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-gray-100);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.feature-content h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.feature-content p {
    color: var(--text-gray);
    margin: 0;
}

/* Skills Chart */
.about-visual {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.skills-chart {
    background: var(--bg-white);
    border: 1px solid var(--bg-gray-100);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.skill-bar {
    height: 8px;
    background: var(--bg-gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    background: var(--bg-light);
    border: 1px solid var(--bg-gray-100);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Why Us Section */
.why-us-section {
    position: relative;
}

.why-card {
    background: var(--bg-white);
    border: 1px solid var(--bg-gray-100);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    transition: all 0.4s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.why-card h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-form-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--bg-gray-100);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out;
}

.form-floating > .form-control {
    border: 1px solid var(--bg-gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem 0.75rem;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-floating > label {
    color: var(--text-muted);
}

.contact-info {
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.contact-item h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-purple);
}

/* Footer */
.footer-section {
    border-top: 1px solid var(--bg-gray-100);
}

.footer-brand .brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .main-illustration {
        width: 250px;
        height: 250px;
    }
    
    .floating-card {
        position: relative;
        margin: 0.5rem;
        animation: none;
    }
    
    .card-1, .card-2, .card-3 {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-features .feature-item {
        text-align: center;
        flex-direction: column;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-stats .row {
        justify-content: center;
    }
    
    .skills-chart {
        padding: 1.5rem;
    }
    
    .service-card,
    .why-card {
        padding: 2rem 1.5rem;
    }
    
    .tech-badges {
        justify-content: center;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.shadow-custom {
    box-shadow: var(--shadow-xl);
}

/* Custom Alert Styles */
.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
    border-radius: var(--radius-lg);
}

/* Button Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: translateY(-2px);
}