/* ==========================================================================
   NM CIVIL CONSULTANCY SERVICES - PREMIUM STYLING
   ========================================================================== */

/* --- Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

/* --- Root Variables --- */
:root {
    /* Color Palette */
    --primary-navy: #0B2545;
    --primary-royal: #134074;
    --secondary-blue: #8DA9C4;
    --accent-gold: #EEB902;
    --accent-gold-hover: #D4AF37;
    --bg-light: #F4F6F9;
    --bg-white: #FFFFFF;
    --text-dark: #1C2541;
    --text-muted: #5B6D80;
    --text-white: #FFFFFF;
    
    /* Layout & Styling Values */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(11, 37, 69, 0.05);
    --shadow-medium: 0 15px 40px rgba(11, 37, 69, 0.1);
    --shadow-premium: 0 20px 50px rgba(11, 37, 69, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
    
    /* Navigation height */
    --nav-height: 90px;
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.25;
}

p {
    color: var(--text-muted);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-quick);
}

/* --- Layout Elements & Utilities --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-padding {
    padding: 7.5rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background-color: var(--primary-royal);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(19, 64, 116, 0.2);
}

.btn-accent {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

.btn-accent:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(238, 185, 2, 0.2);
}

.btn-outline {
    border-color: var(--primary-royal);
    color: var(--primary-royal);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-royal);
    color: var(--text-white);
    transform: translateY(-3px);
}

.btn-outline-white {
    border-color: var(--text-white);
    color: var(--text-white);
    background-color: transparent;
}

.btn-outline-white:hover {
    background-color: var(--text-white);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

/* --- Section Header --- */
.section-header {
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-royal);
    display: inline-block;
    margin-bottom: 0.75rem;
    position: relative;
}

.section-tag::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 0.5rem auto 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(11, 37, 69, 0.05);
    border-bottom: 1px solid rgba(11, 37, 69, 0.05);
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand / Logo */
.logo-image{
    width:180px;
    height:auto;
    object-fit:contain;
}
.logo-icon {
    width: 45px;
    height: 45px;
    fill: var(--text-white);
    transition: var(--transition-smooth);
}

.header.scrolled .logo-icon {
    fill: var(--primary-royal);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.1;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.logo-text span {
    font-size: 0.8rem;
    display: block;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

.header.scrolled .logo-text {
    color: var(--primary-navy);
}

/* Nav Links */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.25rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-white);
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-royal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 1rem;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
}

.header.scrolled .hamburger span {
    background-color: var(--primary-navy);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary-navy) !important;
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary-navy) !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 750px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--text-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    transition: transform 0.1s ease-out; /* parallax scale */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.9) 0%, rgba(19, 64, 116, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin-top: 50px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Hero Stats Bar */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 37, 69, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    width: 1px;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about-visual {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    display: block;
    transition: var(--transition-smooth);
}

.about-visual:hover .about-img {
    transform: scale(1.03);
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-royal);
    color: var(--text-white);
    padding: 2.5rem;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 8px solid var(--bg-white);
    box-shadow: var(--shadow-medium);
}

.about-badge .badge-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}

.about-badge .badge-txt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.about-content {
    padding-left: 1rem;
}

.about-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-desc {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-feature-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-royal);
    flex-shrink: 0;
}

.about-feature-text {
    font-weight: 600;
    color: var(--primary-navy);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(11, 37, 69, 0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-royal), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(19, 64, 116, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--primary-royal);
}

.service-icon {
    width: 36px;
    height: 36px;
    fill: var(--primary-royal);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    fill: var(--accent-gold);
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   WORK PROCESS SECTION (TIMELINE)
   ========================================================================== */
.process-section {
    background-color: var(--bg-white);
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0 auto;
    padding: 2rem 0;
}

/* The vertical line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #E2E8F0;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-royal), var(--accent-gold));
    transform: translateX(-50%);
    z-index: 2;
    transition: height 0.1s linear;
}

/* Individual timeline item */
.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    z-index: 3;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

/* Node circle */
.timeline-node {
    position: absolute;
    left: 50%;
    top: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 4px solid #E2E8F0;
    transform: translateX(-50%);
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item.active .timeline-node {
    border-color: var(--primary-royal);
    background-color: var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(19, 64, 116, 0.15);
}

/* Content block */
.timeline-content {
    position: relative;
    width: 45%;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(11, 37, 69, 0.02);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background-color: var(--bg-white);
}

/* Left side details */
.timeline-item:nth-child(even) .timeline-content {
    float: left;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--bg-light);
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-content:hover::after {
    border-left-color: var(--bg-white);
}

/* Right side details */
.timeline-item:nth-child(odd) .timeline-content {
    float: right;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--bg-light);
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-content:hover::after {
    border-right-color: var(--bg-white);
}

.timeline-step {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-royal);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PROJECTS SHOWCASE SECTION
   ========================================================================== */
.projects-section {
    background-color: var(--bg-light);
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(11, 37, 69, 0.02);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.project-img-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-category-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background-color: var(--primary-navy);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.project-info {
    padding: 2rem;
}

.project-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
    font-weight: 700;
}

.project-card-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-royal);
}

.project-link svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-royal);
    transition: var(--transition-smooth);
}

.project-card:hover .project-link svg {
    transform: translateX(5px);
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-section {
    background-color: var(--bg-white);
}

.why-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.why-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-light);
    border: 1px solid rgba(11, 37, 69, 0.01);
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    background-color: var(--bg-white);
}

.why-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(19, 64, 116, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition-smooth);
}

.why-card:hover .why-icon-wrapper {
    background-color: var(--primary-royal);
    transform: rotateY(180deg);
}

.why-icon {
    width: 28px;
    height: 28px;
    fill: var(--primary-royal);
    transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
    fill: var(--accent-gold);
}

.why-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
}

.why-desc {
    font-size: 0.9rem;
}

/* ==========================================================================
   PROJECT GALLERY
   ========================================================================== */
.gallery-section {
    background-color: var(--bg-light);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: none;
    border: 1px solid rgba(19, 64, 116, 0.15);
    color: var(--primary-navy);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-royal);
    color: var(--text-white);
    border-color: var(--primary-royal);
}

/* Masonry / Grid gallery */
.gallery-grid {
    columns: 3 320px;
    column-gap: 2rem;
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    background-color: var(--bg-white);
}

.gallery-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 37, 69, 0.9) 0%, rgba(19, 64, 116, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.gallery-cat {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Hide animation during filtering */
.gallery-item.hidden {
    display: none;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background-color: var(--bg-white);
}

.contact-grid {
    grid-template-columns: 4fr 5fr;
    gap: 5rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-info-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(19, 64, 116, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-royal);
}

.contact-detail-title {
    font-size: 1rem;
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-detail-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-detail-desc a:hover {
    color: var(--primary-royal);
}

/* Embedded Map wrapper */
.map-wrapper {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(11, 37, 69, 0.05);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Form styling */
.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 3.5rem 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(11, 37, 69, 0.02);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--bg-white);
    border: 1px solid rgba(19, 64, 116, 0.15);
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary-royal);
    box-shadow: 0 0 0 4px rgba(19, 64, 116, 0.08);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.form-response-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-response-msg.success {
    display: block;
    background-color: #DEF7EC;
    color: #03543F;
    border: 1px solid #BCF0DA;
}

.form-response-msg.error {
    display: block;
    background-color: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #FBD5D5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--primary-navy);
    color: var(--text-white);
    padding: 5rem 0 2rem 0;
    border-top: 5px solid var(--accent-gold);
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand .logo-text {
    color: var(--text-white);
    font-size: 1.5rem;
}

.footer-brand .logo-icon {
    fill: var(--accent-gold);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background-color: var(--accent-gold);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--text-white);
}

.social-link:hover svg {
    fill: var(--primary-navy);
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.75rem;
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-gold);
    margin-top: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    fill: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-contact-txt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact-txt a:hover {
    color: var(--accent-gold);
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-credits {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-credits a {
    color: var(--accent-gold);
}

/* ==========================================================================
   FLOATING WIDGETS & ACCESSORIES
   ========================================================================== */
/* Floating Actions bar container */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
}

.floating-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--text-white);
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
}

/* Call Button - Deep Royal Blue / Custom blue */
.float-call {
    background-color: var(--primary-royal);
}

.float-call:hover {
    box-shadow: 0 8px 25px rgba(19, 64, 116, 0.4);
}

/* Whatsapp Button - Green */
.float-whatsapp {
    background-color: #25D366;
}

.float-whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Scroll To Top */
.float-top {
    background-color: var(--primary-navy);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.float-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.float-top:hover {
    background-color: var(--primary-royal);
    box-shadow: 0 8px 25px rgba(11, 37, 69, 0.4);
}

/* Helper Tooltip on Hover */
.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: var(--primary-navy);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    pointer-events: none;
    box-shadow: var(--shadow-soft);
}

.floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.95);
}

.reveal-active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    :root {
        --nav-height: 80px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-content {
        padding-left: 0;
    }
    
    .timeline-line, .timeline-progress {
        left: 30px;
    }
    
    .timeline-node {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        float: right !important;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) .timeline-content::after,
    .timeline-item:nth-child(odd) .timeline-content::after {
        left: -10px;
        right: auto;
        border-left: 0;
        border-right: 10px solid var(--bg-light);
    }
    
    .timeline-item:nth-child(even) .timeline-content:hover::after,
    .timeline-item:nth-child(odd) .timeline-content:hover::after {
        border-right-color: var(--bg-white);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Small Tablets & Mobile Devices */
@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Hamburger Menu display */
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2.5rem 3rem 2.5rem;
        gap: 1.75rem;
        box-shadow: -10px 0 40px rgba(11, 37, 69, 0.1);
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--text-dark);
        font-size: 1.1rem;
        width: 100%;
    }
    
    .header.scrolled .nav-link {
        color: var(--text-dark);
    }
    
    .nav-cta {
        margin-left: 0;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-cta .btn {
        width: 100%;
    }
    
    /* Hero Adjustments */
    .hero {
        height: auto;
        padding-top: 120px;
        padding-bottom: 200px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        position: relative;
        margin-top: -120px;
        border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item:nth-child(even)::after {
        display: none;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .about-badge {
        display: none;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-grid {
        columns: 1 100%;
    }
    
    .contact-form-wrapper {
        padding: 2.5rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .floating-actions {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn::before {
        display: none; /* Hide tooltips on mobile */
    }
}

/* Extra Small Phones */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item::after {
        display: none !important;
    }
}
