/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-color: #3d63dd;
    --primary-light: #eef2ff;
    --light-color: #ffffff;
    --dark-color: #0f172a;
    --text-color: #475569;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --bg-striped: #f8fafc;
    --shadow-color: rgba(149, 157, 165, 0.2);
    --shadow-hover-color: rgba(149, 157, 165, 0.3);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

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

h1, h2, h3, h4 {
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}
.rounded-xl { border-radius: 0.75rem; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}
.btn-primary:hover {
    background-color: #3151b7;
}
.btn-light {
    background-color: var(--light-color);
    color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
.btn-light:hover {
    background-color: var(--primary-light);
}
.btn-outline {
    background-color: rgba(255,255,255,0.15);
    color: var(--light-color);
    border: 1px solid transparent;
}
.btn-outline:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}


/* Layout Grid (Flexbox) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-12, .col-sm-6, .col-md-6, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-6, .col-xl-4, .col-xl-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-top: 2rem;
}
.align-items-center { align-items: center; }

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}
.navbar.sticky {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
    animation: slideDown 0.3s ease-in-out;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.navbar.sticky .navbar-logo,
.navbar.sticky .nav-link {
    color: var(--dark-color);
}
.navbar.sticky .nav-link.active {
    color: var(--primary-color);
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--light-color);
}
.navbar-toggler {
    display: none;
    background: none;
    border: 1px solid var(--light-color);
    color: var(--light-color);
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 1.5rem;
}
.navbar.sticky .navbar-toggler {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.navbar-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-link {
    color: var(--light-color);
    font-weight: 500;
    padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--light-color);
    opacity: 0.7;
}
.navbar.sticky .nav-link:hover,
.navbar.sticky .nav-link.active {
    color: var(--primary-color);
    opacity: 1;
}

/* Sections */
.section-area {
    padding: 80px 0;
}
.bg-striped {
    background-color: var(--bg-striped);
}
.section-header {
    max-width: 550px;
    margin: 0 auto 60px auto;
}
.section-tag {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 160px 0 80px 0;
    overflow: hidden;
}
.hero-section h1 { color: var(--light-color); }
.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}
.hero-image-container {
    position: relative;
    max-width: 845px;
    margin: 0 auto;
}
.hero-image {
    width: 100%;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}
.dots {
    position: absolute;
    width: 120px;
    opacity: 0.75;
    z-index: -1;
}
.dots-1 { bottom: 0; left: -30px; }
.dots-2 { top: -20px; right: -20px; }

/* About Section & Tabs */
.tabs { margin-top: 2rem; }
.tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.tab-link {
    padding: 10px 20px;
    border: none;
    background-color: var(--primary-light);
    color: var(--text-color);
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
}
.tab-link.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p:last-child { margin-bottom: 0; }

/* Service Card */
.service-card {
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.service-card h4 {
    margin-bottom: 0.5rem;
}
.service-card p {
    margin-bottom: 0;
}

/* Portfolio Section */
.portfolio-filter { margin-bottom: 3rem; }
.filter-btn {
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    background-color: transparent;
    border: none;
    font-weight: 600;
    color: var(--text-light);
}
.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}
.portfolio-item { display: none; }
.portfolio-item.show { display: block; }

.portfolio-card {
    margin-bottom: 2rem;
}
.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 4/3;
}
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: scale(1);
}
.portfolio-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}
.portfolio-icon:hover {
    background-color: #3151b7;
}
.portfolio-content {
    padding-top: 1rem;
}
.portfolio-content h4 { font-size: 1.5rem; }
.portfolio-content p { margin-bottom: 0; }

/* Team Section */
.team-card {
    background-color: var(--light-color);
    padding: 3rem 1.5rem 2rem 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    transition: all 0.3s;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px var(--shadow-hover-color);
}
.team-image {
    width: 120px;
    height: 120px;
    margin: -5rem auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--light-color);
}
.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card h4 {
    margin-bottom: 0.25rem;
}
.team-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}
.team-socials {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}
.team-socials a {
    color: var(--text-light);
}
.team-socials a:hover {
    color: var(--primary-color);
}

/* Testimonial Carousel */
.testimonial-carousel-container {
    position: relative;
    max-width: 1100px;
    margin: auto;
}
.testimonial-carousel {
    display: flex;
    overflow: hidden;
}
.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 10px;
}
.testimonial-card {
    background-color: var(--bg-striped);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}
.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author h3 {
    margin-bottom: 0;
    font-size: 1rem;
}
.testimonial-author span {
    font-size: 0.875rem;
    color: var(--text-light);
}
.carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    border: none;
    background-color: var(--primary-light);
    color: var(--dark-color);
    font-size: 1.2rem;
    cursor: pointer;
}
.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Contact Section */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-info-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.25rem;
    background-color: var(--light-color);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}
.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.contact-info-card h4 { color: var(--primary-color); margin-bottom: 0.5rem; }
.contact-info-card p { margin-bottom: 0.25rem; }

.contact-form-wrapper {
    background-color: var(--light-color);
    padding: 3rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}
.contact-form .row { margin-top: 0; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-top: 1.5rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Map Section */
.map-section {
    width: 100%;
    height: 400px;
    margin-top: -12rem;
    z-index: -1;
    position: relative;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #a1a1aa;
    padding: 80px 0 0 0;
}
.footer .row { margin-top: 0; }
.footer .col-lg-4, .footer .col-lg-2 { margin-top: 0; margin-bottom: 2rem; }
.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--light-color);
}
.footer h4 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.75rem; }
.footer ul li a { color: #a1a1aa; }
.footer ul li a:hover { color: var(--light-color); }
.subscribe-form {
    display: flex;
    margin-top: 1rem;
}
.subscribe-form input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid #374151;
    background-color: #1f2937;
    color: var(--light-color);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-right: none;
}
.subscribe-form button {
    padding: 12px 16px;
    border: none;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.footer-bottom {
    border-top: 1px solid #374151;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}
.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.875rem;
}
.footer-bottom a {
    color: var(--light-color);
    font-weight: 500;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover {
    background-color: #3151b7;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */

/* Small devices (tablets, 576px and up) */
@media (min-width: 576px) {
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; margin-top: 2rem;}
    .testimonial-slide { flex: 0 0 50%; }
}
.hidden-sm { display: none; }
@media (min-width: 576px) {
    .hidden-sm { display: inline-flex; }
}


/* Medium devices (desktops, 768px and up) */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.75rem; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; margin-top: 2rem; }
}

/* Large devices (large desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-toggler { display: none; }
    .navbar-menu { display: block !important; position: static; background: none; box-shadow: none; width: auto; }
    .navbar-menu ul { flex-direction: row; gap: 2rem; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .testimonial-slide { flex: 0 0 33.333%; }
}

/* Extra large devices (extra large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .contact-form-wrapper { padding: 3rem 4rem; }
}

/* Mobile Specific (max-width: 991px) */
@media (max-width: 991px) {
    .navbar-toggler { display: block; }
    .navbar-actions .btn { display: none; }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 15px;
        background-color: var(--light-color);
        width: 250px;
        border-radius: 0.5rem;
        box-shadow: 0 8px 16px var(--shadow-color);
        padding: 1rem;
    }
    .navbar-menu.show {
        display: block;
    }
    .navbar-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-link {
        color: var(--dark-color);
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 5px;
    }
    .nav-link.active, .nav-link:hover {
        background-color: var(--primary-light);
        color: var(--primary-color);
        opacity: 1;
    }
    .footer .row { text-align: center; }
    .footer .col-lg-4, .footer .col-lg-2 { margin-bottom: 2.5rem; }
}