:root {
    --color-primary: #0ea5e9; /* Sky 500 */
    --color-primary-dark: #0284c7; /* Sky 600 */
    --color-secondary: #f0f9ff; /* Sky 50 */
    --color-accent: #38bdf8; /* Sky 400 */
    --color-bg: #ffffff;
    --color-card: #ffffff;
    --color-text: #1e293b; /* Slate 800 */
    --color-text-muted: #64748b;
    --color-white: #ffffff;
    --color-navy: #0c4a6e; /* Deep Sky/Blue for footer contrast */
    --color-deep-indigo: #075985;
    --color-light-indigo: #e0f2fe;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 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);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --header-height: 120px;
}

.badge-stat {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--color-text);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.badge-stat:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.badge-stat i {
    font-size: 1.2rem;
    color: var(--color-primary-dark);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    font-weight: 700;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

.navbar-toggler {
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    background-color: transparent;
    transition: all 0.3s ease;
    min-height: var(--header-height);
}

.navbar.scrolled {
    background-color: var(--color-white);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    min-height: 100px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-link {
    color: var(--color-text) !important;
}

.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
    color: var(--color-primary) !important;
}

.navbar.scrolled .navbar-toggler {
    filter: none;
}

/* Logos */
.logo-light {
    transition: filter 0.3s ease;
}

.logo-white {
    filter: brightness(0) invert(1);
}

.footer-logo {
    height: 80px;
}

.navbar-brand img {
    height: 100px;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 80px;
}

.nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent) !important;
}

/* Sections */
section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Hero Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #e0f2fe 0%, #0ea5e9 100%);
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

#home::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    filter: blur(150px);
    opacity: 0.15;
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    z-index: 0;
}

#home::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 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='%23ffffff' fill-opacity='0.05'%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");
    pointer-events: none;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-img-wrapper {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    max-height: 500px;
    border: 8px solid rgba(255, 255, 255, 0.1);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.text-gradient {
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Service Cards */
.service-card {
    background: var(--color-card);
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 44px;
    height: 44px;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotate(5deg) scale(1.05);
}

.service-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Services Grid Styling */
.service-card {
    height: 100%;
}

/* Portfolio */
.portfolio-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portfolio-item img {
    transition: transform 0.5s;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Form */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

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

/* Portfolio Swiper */
.portfolio-swiper {
    padding-bottom: 50px;
    padding-left: 10px;
    padding-right: 10px;
}

.portfolio-swiper .swiper-pagination-bullet-active {
    background: var(--color-primary);
}

.portfolio-swiper .swiper-button-next,
.portfolio-swiper .swiper-button-prev {
    color: var(--color-primary);
    background: var(--color-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.portfolio-swiper .swiper-button-next::after,
.portfolio-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .portfolio-swiper .swiper-button-next,
    .portfolio-swiper .swiper-button-prev {
        display: none;
    }
}

.bg-colored-section {
    background-color: #f0f9ff;
    color: var(--color-text);
}

.bg-colored-section h2, .bg-colored-section h3 {
    color: var(--color-text);
}

.bg-colored-section .section-title h2::after {
    background-color: var(--color-primary);
}

.bg-navy {
    background-color: var(--color-navy);
}

.hover-white:hover {
    color: var(--color-white) !important;
}

.text-white-50 {
    color: var(--color-text-muted) !important;
}
.text-white-75 {
    color: var(--color-text) !important;
}
.bg-light-blue {
    background-color: #e0f2fe;
}
.footer-credits a {
    color: var(--color-accent) !important;
}
.footer-credits a:hover {
    color: var(--color-white) !important;
}
.certificate-card, .portfolio-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover, .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

#certificateModal .btn-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1060;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(240, 249, 255, 0.95);
        backdrop-filter: blur(10px);
        margin: 0.5rem -1rem 0 -1rem;
        padding: 1.5rem;
        box-shadow: var(--shadow);
        border-radius: 1rem;
        text-align: center;
        border: 1px solid rgba(14, 165, 233, 0.1);
    }

    .navbar-collapse .nav-link {
        color: var(--color-text) !important;
        padding: 0.75rem 0 !important;
    }

    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        padding: 0.5rem !important;
        border-radius: 0.5rem;
    }

    .navbar.scrolled .navbar-toggler {
        background-color: transparent;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }

    .navbar.scrolled .navbar-toggler-icon {
        filter: none;
    }

    .navbar-nav {
        align-items: center !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}
