/* =================================
   CSS Variables & Reset
   ================================= */
:root {
    --primary-color: #4A90E2;
    --primary-light: #6BA5E7;
    --primary-dark: #2171D6;
    --secondary-color: #5DADE2;
    --accent-color: #85C1E9;
    
    --text-dark: #2C3E50;
    --text-medium: #5D6D7E;
    --text-light: #7F8C8D;
    
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFB;
    --bg-gray: #E8ECEF;
    --gray-light: #D5DBDB;
    --gray-medium: #BDC3C7;
    
    --shadow-sm: 0 2px 8px rgba(74, 144, 226, 0.08);
    --shadow-md: 0 4px 16px rgba(74, 144, 226, 0.12);
    --shadow-lg: 0 8px 32px rgba(74, 144, 226, 0.16);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    --bs-primary: #4A90E2;
    --bs-primary-rgb: 74, 144, 226;
    --bs-secondary: #5DADE2;
    --bs-body-font-family: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* =================================
   Navigation - Bootstrap Enhanced
   ================================= */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar-brand.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}

.navbar-brand.logo .logo-img {
    height: 60px;
    width: auto;
    max-width: 250px;
}

.navbar-nav {
    gap: 10px;
}

.navbar-nav .nav-link {
    color: var(--text-medium) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px !important;
    position: relative;
    transition: var(--transition-fast);
    border-radius: var(--border-radius-sm);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(74, 144, 226, 0.05);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234A90E2' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =================================
   Hero Section
   ================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:url('./image/hero.jpg') center/cover no-repeat;
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(93, 173, 226, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    max-width: initial;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #000000;
    margin-bottom: 45px;
    line-height: 1.8;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    100% { opacity: 0; }
}

/* =================================
   Buttons - Bootstrap Enhanced
   ================================= */
.btn {
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--bg-white) !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.btn-secondary:hover {
    background: var(--primary-color) !important;
    color: var(--bg-white) !important;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* =================================
   Section Headers
   ================================= */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.5px;
}

#about .section-title,
#services .section-title,
#contact .section-title,
#why-choose-us .section-title,
#engagements .section-title {
    color: #c72a2b;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #000000;
    margin-top: 25px;
    font-weight: 700;
}

/* =================================
   Container & Layout
   ================================= */
section {
    padding: 90px 0;
}

/* =================================
   About Section
   ================================= */
.about {
    background: linear-gradient(rgb(255 255 255 / 0%), rgb(255 255 255 / 0%)), url(./image/bg.jpeg) center / cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

/* =================================
   Services Section
   ================================= */
.services {
    background: linear-gradient(rgb(255 255 255 / 0%), rgb(255 255 255 / 23%)), url(./image/1.png) center / cover no-repeat;
    background-attachment: fixed;
}

.service-card {
    background: var(--bg-white);
    padding: 45px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--bg-white);
    font-size: 2.2rem;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
    animation: floatIcon 0.5s ease-in-out infinite alternate;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 18px;
    font-weight: 700;
}

.service-card > p {
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-features li i {
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

/* =================================
   Why Choose Us Section
   ================================= */
.why-choose-us {
    background: var(--bg-white);
}

.feature-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

.feature-card:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--bg-white);
    font-size: 2.5rem;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
    animation: pulseIcon 2.5s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 18px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 0.98rem;
}

/* =================================
   Engagements Section
   ================================= */
.engagements {
    background: var(--bg-light);
}

.engagement-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.engagement-header {
    margin-bottom: 30px;
}

.engagement-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.engagement-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 500;
}

.engagement-image {
    margin: 30px 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.engagement-image img {
    width: 100%;
    height: auto;
}

.engagement-details {
    margin-top: 25px;
}

.engagement-info {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
}

.engagement-info p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-medium);
    line-height: 1.7;
}

.engagement-info p:last-child {
    margin-bottom: 0;
}

.engagement-info i {
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.engagement-description p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.engagement-description h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

/* =================================
   Contact Section
   ================================= */
.contact {
    background: linear-gradient(rgb(0 0 0 / 0%), rgba(255, 255, 255, 0.92)), url(./image/contac.png) center / cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.contact-info {
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--text-medium);
    line-height: 1.7;
}

.contact-details a {
    color: var(--primary-color);
}

.contact-details a:hover {
    color: var(--primary-dark);
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
}

.form-control {
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* =================================
   Footer
   ================================= */
.footer {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: var(--bg-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: var(--bg-white);
    margin-bottom: 15px;
}

.footer-title i {
    color: var(--accent-color);
}

.footer-tagline {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.footer-column p {
    color: var(--bg-gray);
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-column h4 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--bg-gray);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-column i {
    color: var(--accent-color);
    margin-right: 8px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
}

/* =================================
   Responsive Design
   ================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-tagline {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .contact-form-wrapper {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .section-subtitle {
        display: none;
    }
    
    .service-card {
        margin-top: 80px;
        margin-bottom: -70px;
    }

    /* Push down contact address on mobile */
    .contact-details {
        margin-top: 60px;
        margin-bottom: -50px;
    }

    .contact-icon {
        margin-top: 40px;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 350px;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }

    /* Services background on mobile */
    .services {
        background-attachment: scroll !important;
        background-size: contain !important;
        background-position: center top !important;
    }

    /* Keep contact background contained on phones */
    .contact {
        background-attachment: scroll !important;
        background-size: contain !important;
        background-position: center top !important;
    }

    /* Show full about image on phones */
    .about {
        background-size: contain !important;
        background-position: center 30% !important;
    }

    /* Show more of hero image on phones */
    .hero {
        background-size: cover !important;
        background-position: center center !important;
    }

    /* Footer adjustments on mobile */
    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-title {
        justify-content: center;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-bottom {
        padding-top: 20px;
    }
    
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .navbar-brand.logo {
        font-size: 1.3rem;
    }

    .navbar-brand.logo .logo-img {
        height: 55px;
    }
    
    .service-card,
    .feature-card,
    .engagement-item {
        padding: 30px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
}

/* =================================
   Animation Classes
   ================================= */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatIcon {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-8px);
    }
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
    }
}
