/* --- Base Variables & Resets --style.css--- */
:root {
    --bg-color: #f4f4f0;
    --bg-white: #ffffff;
    --text-heading: #353630;
    --text-body: #4a4a45;
    --nav-bg: #153a6e;
    --nav-border: #ff0000;
    --tag-bg: #005a90;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 90px;
    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 15px 45px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-body);
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 130px;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

/* --- Typography --- */
h1, h2, h3, h4, .logo-text, .section-heading, .hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.container-wide { max-width: 1500px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.section-padding { padding: 100px 0; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: none;
}
.btn-primary { background-color: var(--text-heading); color: #fff; }
.btn-primary:hover { background-color: #000; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.btn-block { width: 100%; text-align: center; }

/* Hover effects */
.hover-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hover-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

/* --- TOP BAR STYLES --- */
.top-bar {
    background-color: #0f2c4f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    font-size: 0.85rem;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.contact-item ion-icon {
    font-size: 1rem;
    color: #ffc107;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffc107;
}

.top-bar-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-social .social-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.top-bar-social .social-icon:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

/* --- Popup Form --- */
.popup-form {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 340px;
    background: var(--bg-white);
    padding: 35px 30px;
    border-radius: 12px 0 0 12px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-form.show { right: 0; }

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-body);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover { color: #ff0000; }

.popup-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.popup-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--nav-bg);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 41px;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--nav-bg);
    border-top: 3px solid var(--nav-border);
    z-index: 1001;
    transition: height var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.round-logo-img {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.logo-text { color: #fff; font-size: 1.5rem; }
.logo-bold { font-weight: 800; color: #fff;}
.logo-light { font-weight: 400; color: rgba(255,255,255,0.8); margin-left: 4px; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; perspective: 1000px; }
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}
.nav-links a:not(.flip-link)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}
.nav-links a:not(.flip-link):hover::after { width: 100%; }

.nav-links .flip-link {
    display: inline-block;
    padding: 0;
}
.nav-links .flip-link span {
    display: block;
    transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: top;
    padding: 5px 0;
}
.nav-links .flip-link span:last-child {
    position: absolute;
    left: 0;
    top: 0;
    transform: rotateX(-90deg);
    transform-origin: bottom;
    color: #ffc107;
}
.nav-links .flip-link:hover span:first-child { transform: rotateX(90deg); }
.nav-links .flip-link:hover span:last-child { transform: rotateX(0); }

.nav-links .nav-btn {
    background: #fff;
    color: var(--nav-bg);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 800;
}
.nav-links .nav-btn::after { display: none; }
.nav-links .nav-btn:hover { background: #f0f0f0; box-shadow: 0 4px 10px rgba(255,255,255,0.2); }

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--nav-bg);
    min-width: 220px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
    padding: 10px 0;
}
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDropdown 0.3s ease;
}
.dropdown-content a {
    color: #fff !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    display: block;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: background 0.3s, color 0.3s !important;
}
.dropdown-content a::after { display: none !important; }
.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffc107 !important;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Slider rathin--- */
.hero-slider {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    overflow: hidden;
    margin-bottom: 70px;
    margin-top:-10px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 1;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.2);
}

.slide.active .slide-bg img {
    animation: zoomOutBg 8s ease-out forwards;
}

@keyframes zoomOutBg {
    0% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 5%;
}

.reveal-wrap {
    overflow: hidden;
    position: relative;
    display: block;
}

.slide-text {
    transform: translateY(110%) scale(0.9);
    opacity: 0;
}

.slide.active .slide-text {
    animation: revealAndZoom 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealAndZoom {
    0% { transform: translateY(110%) scale(0.9); opacity: 0; }
    50% { transform: translateY(0) scale(0.9); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #ffc107;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-title {
    font-size: 6vw;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
@media (min-width: 1200px) {
    .hero-title { font-size: 90px; }
}
.hero-desc {
    font-size: 1.3rem;
    font-weight: 400;
    color: #f4f4f0;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 5%;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-heading);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.slider-dots .dot.active {
    background-color: #ffc107;
    transform: scale(1.3);
}
.slider-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* --- Courses Section --- */
.courses { background-color: #e5e5d9; }
.courses-header { margin-bottom: 60px; }
.courses-header .section-heading { font-size: 3.5rem; }

/* --- Location Section --- */
.location {
    background-color: var(--bg-white);
}
.location-wrapper-new {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.location-wrapper-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.map-container-new {
    flex: 1.2;
    overflow: hidden;
}

.map-container-new iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    transition: transform 0.5s ease;
}

.location-wrapper-new:hover .map-container-new iframe {
    transform: scale(1.02);
}

.address-container-new {
    flex: 1;
    padding: 40px 35px;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.address-container-new .section-heading {
    margin-bottom: 25px;
    font-size: 2.5rem;
    color: var(--text-heading);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.address-container-new .section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ffc107;
    border-radius: 3px;
}

.address-details-new p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #4a4a45;
}

.address-details-new .address-line strong {
    color: var(--text-heading);
    font-size: 1.1rem;
}

.contact-info-new {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-info-new p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-info-new strong {
    color: var(--text-heading);
    font-weight: 700;
    min-width: 60px;
    display: inline-block;
}

/* --- Footer --- */
.footer {
    background-color: #05254e;
    padding: 80px 0 40px;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 20px;
}

.footer-desc {
    color: #a0a09a;
    max-width: 320px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #a0a09a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--nav-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    color: #a0a09a;
    font-size: 0.9rem;
}

/* --- Scroll To Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: -80px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--nav-bg);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.scroll-to-top.show {
    bottom: 30px;
}

.scroll-to-top:hover {
    transform: translateY(-8px);
    background-color: var(--text-heading);
}

/* --- Utility Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; transition-delay: 0.5s; }

.slide.active .delay-1 { animation-delay: 0.2s; }
.slide.active .delay-2 { animation-delay: 0.4s; }
.slide.active .delay-3 { animation-delay: 0.6s; }
.slide.active .delay-4 { animation-delay: 0.8s; }

/* =============================================
   DUAL PANEL SECTION - FULLY RESPONSIVE
   ============================================= */
.dualPanel {
    width: 100%;
    overflow-x: hidden;
    max-width: 1400px;
    margin: 0 auto 30px auto;
}

.panelContainerOuter {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.row.min-height-fix.panelContainerInner.normal {
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Individual Panel Wrapper */
.panel-wrapper {
    flex: 1;
    display: block;
    text-decoration: none;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.3s ease;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
}

.panel-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 45px -15px rgba(0, 0, 0, 0.3);
}

/* Gradient Overlay */
.gradient {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.panel-wrapper:hover .gradient {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.panelContent {
    width: 100%;
    padding: 40px 30px;
    color: #fff;
}

.text-container {
    max-width: 100%;
}

.text-container .headline {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.text-container p {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0;
}

/* DUAL PANEL RESPONSIVE BREAKPOINTS */
@media screen and (max-width: 1024px) {
    .dualPanel {
        padding: 0 40px !important;
    }
    
    .row.min-height-fix.panelContainerInner.normal {
        gap: 25px;
    }
    
    .text-container .headline {
        font-size: 2rem;
    }
    
    .text-container p {
        font-size: 1rem;
    }
    
    .gradient {
        min-height: 280px;
    }
    
    .panelContent {
        padding: 35px 25px;
    }
}

@media screen and (max-width: 768px) {
    .dualPanel {
        padding: 0 25px !important;
    }
    
    .row.min-height-fix.panelContainerInner.normal {
        flex-direction: column;
        gap: 30px;
    }
    
    .panel-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .gradient {
        min-height: 260px;
    }
    
    .text-container .headline {
        font-size: 1.8rem;
    }
    
    .text-container p {
        font-size: 0.95rem;
    }
    
    .panelContent {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 575px) {
    .dualPanel {
        padding: 0 16px !important;
    }
    
    .row.min-height-fix.panelContainerInner.normal {
        gap: 25px;
    }
    
    .gradient {
        min-height: 220px;
    }
    
    .text-container .headline {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .text-container p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .panelContent {
        padding: 25px 16px;
    }
}

@media screen and (max-width: 380px) {
    .dualPanel {
        padding: 0 12px !important;
    }
    
    .gradient {
        min-height: 200px;
    }
    
    .text-container .headline {
        font-size: 1.3rem;
    }
    
    .text-container p {
        font-size: 0.8rem;
    }
    
    .panelContent {
        padding: 20px 12px;
    }
}

/* Fix for any overflow issues */
.dualPanel * {
    box-sizing: border-box;
}

.panelContainerOuter,
.row.min-height-fix.panelContainerInner.normal {
    overflow: visible;
}

/* Optional: Add animation for better mobile experience */
@media (max-width: 768px) {
    .panel-wrapper {
        animation: fadeInUp 0.6s ease backwards;
    }
    
    .panel-wrapper:first-child {
        animation-delay: 0.1s;
    }
    
    .panel-wrapper:last-child {
        animation-delay: 0.2s;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* --- Carousel Slider Styles --- */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.portfolio-grid {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.portfolio-card {
    flex: 0 0 calc(25% - 19px);
    min-width: calc(25% - 19px);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

.portfolio-img-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-soft);
    margin-bottom: 15px;
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img-box img { transform: scale(1.05); }

.portfolio-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    z-index: 2;
}

.tag {
    background-color: var(--tag-bg);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 15px;
    text-transform: uppercase;
}

.portfolio-info { padding-top: 10px; }
.portfolio-info .date {
    font-size: 0.8rem;
    color: #05254e;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}
.portfolio-info h4 {
    font-size: 2rem;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 0;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--nav-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--text-heading);
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--nav-bg);
}

.carousel-dot:hover {
    background: var(--nav-bg);
    transform: scale(1.2);
}

/* --- Statistics Counter Section - Horizontal View with Dynamic Background --- */
.statistics-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a1a3a 0%, #1a3a6e 50%, #0a2a5a 100%);
    position: relative;
    overflow: hidden;
}

.stats-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.moving-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: floatAround 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(255,193,7,0.1) 0%, rgba(255,193,7,0) 70%);
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(255,193,7,0.08) 0%, rgba(255,193,7,0) 70%);
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 20%;
    animation-delay: 10s;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
}

.shape-4 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 30%;
    animation-delay: 15s;
    background: radial-gradient(circle, rgba(255,193,7,0.06) 0%, rgba(255,193,7,0) 70%);
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(50px, -50px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-30px, 30px) rotate(240deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

.statistics-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.statistic-item {
    flex: 1;
    min-width: 180px;
}

.statistic-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 35px 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.statistic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.statistic-card:hover::before {
    left: 100%;
}

.statistic-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.statistic-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.statistic-card:hover .statistic-icon {
    transform: scale(1.1) rotate(5deg);
}

.counter-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffc107;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.statistic-card p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.statistic-line {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, transparent);
    margin-top: 20px;
    transition: width 0.4s ease;
    border-radius: 3px;
}

.statistic-card:hover .statistic-line {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .statistics-horizontal {
        justify-content: center;
    }
    .statistic-item {
        flex: 0 0 calc(33.33% - 30px);
    }
    .counter-number {
        font-size: 2.8rem;
    }
    .portfolio-card {
        flex: 0 0 calc(33.333% - 17px);
        min-width: calc(33.333% - 17px);
    }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
    .location-wrapper-new {
        flex-direction: column;
        border-radius: 20px;
    }
    .map-container-new iframe {
        min-height: 300px;
    }
    .address-container-new {
        padding: 30px 25px;
    }
    .address-container-new .section-heading {
        font-size: 2rem;
    }
    .statistics-section {
        padding: 70px 0;
    }
    .statistic-item {
        flex: 0 0 calc(50% - 30px);
    }
    .counter-number {
        font-size: 2.4rem;
    }
    .statistic-card {
        padding: 25px 15px;
    }
    .statistic-icon {
        font-size: 2rem;
    }
    .portfolio-card {
        flex: 0 0 calc(50% - 13px);
        min-width: calc(50% - 13px);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 115px;
    }
    .nav-links { display: none; }
    .hero-title { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .slider-controls { display: none; }
    .popup-form { width: 90%; right: -100%; }
    .top-bar-container {
        flex-direction: column;
        padding: 8px 5%;
    }
    .top-bar-contact {
        justify-content: center;
        gap: 15px;
    }
    .navbar {
        top: 75px;
    }
}

@media (max-width: 600px) {
    .statistics-section {
        padding: 50px 0;
    }
    .statistic-item {
        flex: 0 0 100%;
    }
    .counter-number {
        font-size: 2.2rem;
    }
    .statistic-card p {
        font-size: 0.85rem;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    .portfolio-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .address-container-new {
        padding: 25px 20px;
    }
    .address-container-new .section-heading {
        font-size: 1.6rem;
    }
    .contact-info-new strong {
        min-width: 50px;
    }
}

/* --- TOP BAR NAV LINKS (ADD TO END OF style.css) --- */
.top-bar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 3px 6px;
    border-radius: 3px;
    transition: color 0.3s ease, background 0.3s ease;
    white-space: nowrap;
}

.top-bar-link:hover {
    color: #ffc107;
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    user-select: none;
}

/* Responsive: hide on mobile to keep top bar clean */
@media (max-width: 900px) {
    .top-bar-nav {
        display: none;
    }
}

/* On tablets (768px-900px) show them stacked in the mobile top bar */
@media (max-width: 768px) {
    .top-bar-nav {
        display: flex;
        border: none;
        padding: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }
}
/*mobile menu*/
/* --- MOBILE MENU BAR & HAMBURGER MENU --- */
.mobile-menu-bar {
    display: none;
    position: fixed;
    top: 41px;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    padding: 10px 5%;
    align-items: center;
    justify-content: space-between;
    z-index: 1002;
    border-top: 3px solid var(--nav-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    
    will-change: transform;
    backface-visibility: hidden;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.no-js body {
    opacity: 0;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.mobile-logo .round-logo-img {
    width: 45px;
    height: 45px;
}

.mobile-logo .logo-text {
    font-size: 1.2rem;
}

/* Hamburger Menu Button */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1003;
}

.hamburger-menu span {
    width: 28px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Menu - Slide Down Animation */
.mobile-nav-menu {
    position: fixed;
    top: 121px;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    visibility: hidden;
}

.mobile-nav-menu.open {
    transform: translateY(0);
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 20px 5%;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.mobile-nav-menu.open .mobile-nav-links {
    opacity: 1;
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #ffc107;
    padding-left: 10px;
}

.mobile-dropdown {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-btn {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-dropdown-btn:hover {
    color: #ffc107;
}

.mobile-dropdown-btn ion-icon {
    transition: transform 0.3s ease;
}

.mobile-dropdown-btn.active ion-icon {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-left: 15px;
}

.mobile-dropdown-content.open {
    max-height: 200px;
}

.mobile-dropdown-content a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.mobile-dropdown-content a:hover {
    color: #ffc107;
    padding-left: 10px;
}

.mobile-nav-btn {
    background: #fff;
    color: var(--nav-bg);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 4px;
    text-align: center;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Show mobile menu on tablets and mobile */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }
    
    .mobile-menu-bar {
        display: flex;
    }
    
    body {
        padding-top: 115px;
    }
    
    .top-bar {
        position: fixed;
        top: 0;
    }
    
    .mobile-nav-menu {
        top: 115px;
    }
}

/* For very small devices */
@media (max-width: 480px) {
    .mobile-menu-bar {
        padding: 8px 5%;
    }
    
    .mobile-logo .round-logo-img {
        width: 38px;
        height: 38px;
    }
    
    .mobile-logo .logo-text {
        font-size: 1rem;
    }
    
    .mobile-nav-menu {
        top: 109px;
    }
    
    body {
        padding-top: 109px;
    }
}