/* ====== Global Styles ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1f7a9c;
    --secondary-color: #0d4570;
    --accent-color: #ff6b35;
    --light-bg: #f8f9fa;
    --dark-text: #333333;
    --light-text: #666666;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: #ffffff;
}

/* ====== HEADER & NAVIGATION ====== */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ====== HERO SECTION ====== */
.section-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero .content p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-image img {
    animation: fadeInUp 1s ease 0.4s backwards;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-10px);
}

.btn-get-started {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--primary-color);
}

.btn-get-started:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(31, 122, 156, 0.4);
}

.btn-watch-video {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-watch-video:hover {
    color: var(--secondary-color);
}

/* ====== SECTION PADDING ====== */
.section-padding {
    padding: 60px 0;
}

/* ====== SECTION TITLE ====== */
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 0;
}

/* ====== ABOUT SECTION ====== */
.about {
    background-color: #ffffff;
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature {
    animation: fadeInUp 0.6s ease backwards;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature h5 {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0;
}

/* ====== SERVICES SECTION ====== */
.services {
    background-color: var(--light-bg);
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(31, 122, 156, 0.15);
    border-top-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0;
}

/* ====== STATS SECTION ====== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
}

.stat-card {
    padding: 30px 20px;
    text-align: center;
    animation: fadeIn 0.6s ease backwards;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

/* ====== PORTFOLIO SECTION ====== */
.portfolio {
    background-color: var(--light-bg);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 122, 156, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-lightbox {
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.portfolio-overlay:hover .portfolio-lightbox {
    transform: scale(1.2);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h4 {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0;
}

/* ====== TESTIMONIALS SECTION ====== */
.testimonials {
    background-color: white;
    padding: 80px 0;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.swiper-slide {
    height: auto;
}

.testimonial-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    transition: all var(--transition-speed) ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-item::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: rgba(31, 122, 156, 0.03);
}

.testimonial-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.testimonial-header img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.testimonial-header h5 {
    color: var(--dark-text);
    font-weight: 600;
}

.stars {
    color: #ffc107;
}

.stars i {
    font-size: 1rem;
    margin-right: 2px;
}

.testimonial-text {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* ====== TEAM SECTION ====== */
.team {
    background-color: var(--light-bg);
}

.team-member {
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.team-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.team-img img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.team-member:hover .team-img img {
    transform: scale(1.1);
}

.team-member h4 {
    font-weight: 700;
    color: var(--dark-text);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.team-member .bio {
    color: var(--light-text);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ====== CONTACT SECTION ====== */
.contact {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.contact-info {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto;
}

.contact-item h5 {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(31, 122, 156, 0.25);
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(31, 122, 156, 0.4);
}

.error-msg {
    color: #dc3545;
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
    min-height: 20px;
}

#formMessage {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

#formMessage.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#formMessage.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ====== FOOTER ====== */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer ul a:hover {
    color: white;
}

.footer .social-links a {
    margin-right: 15px;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer p:last-child {
    margin-bottom: 0;
}

/* ====== BACK TO TOP BUTTON ====== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }

    .hero .content h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .about-content h3 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .hero {
        min-height: auto;
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero .content h1 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 25px 15px;
    }

    .contact-form {
        padding: 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ====== AOS CUSTOM STYLING ====== */
[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    opacity: 1;
}
