/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    --primary-color: #005a9c; /* A professional blue */
    --secondary-color: #0d9488; /* A modern teal/green */
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-color: #374151;
    --white-color: #ffffff;
    --border-color: #e5e7eb;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

/* This new wrapper holds all page content */
.page-wrapper {
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 3px solid var(--primary-color); padding-bottom: 0.5rem; display: inline-block; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
ul { list-style: none; }
a { color: var(--primary-color); text-decoration: none; }
img { max-width: 100%; display: block; }

/* Section Padding */
section {
    padding: 5rem 0;
}

section[id] {
    scroll-margin-top: 110px;
}

section:nth-of-type(even) {
    background-color: var(--light-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #004a80;
}
.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-secondary:hover {
    background-color: #004a80;
}

/* ======== HEADER & NAVIGATION ======== */
.header {
    width: 100%;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    color: var(--dark-color); 
}

.logo-image {
    max-height: 70px; 
    width: auto; 
}

.logo-text {
    font-size: 1.25rem; 
    font-weight: 500;
}

.logo-text strong {
    font-weight: 700; 
}

.logo-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* This adds the separator on desktop */
.logo-subtitle::before {
    content: "| ";
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}
.nav-menu a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem;
}
.nav-menu a:hover {
    color: var(--primary-color);
}

/* ======== HERO SECTION ======== */
.hero {
    color: var(--white-color);
    padding: 8rem 0;
    text-align: center;
    position: relative; 
    overflow: hidden;   
}

.hero::before {
    content: ""; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/Pic6.jpg') center center/cover no-repeat;
    z-index: -2; 
    
    animation: kenBurnsZoom 10s infinite alternate;
}

.hero::after {
    content: ""; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(5, 10, 48, 0.7), rgba(5, 10, 48, 0.7));
    z-index: -1; 
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; 
    z-index: 1;
}

.hero-text h1 {
    color: var(--white-color);
    font-size: 3rem; /* Correct desktop size */
}

.hero-text .subtitle {
    font-size: 1.25rem; /* Correct desktop size */
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ======== ABOUT SECTION ======== */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}
.profile-pic {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--white-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.about-text {
    flex: 1;
}
.about-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}
.about-text li {
    margin-bottom: 0.5rem;
}

/* ======== SERVICES SECTION ======== */
.services-section {
    text-align: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}
.service-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ======== ACHIEVEMENTS SECTION ======== */
.achievements-section {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
}
.achievements-section h2, .achievements-section p {
    color: var(--dark-color);
}
.achievements-section h2 {
    border-color: var(--primary-color);
}
.achievements-list {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
    font-size: 1.1rem;
}
.achievements-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #2b3a4a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.achievements-list i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    padding-top: 0.25rem; 
}

.achievements-list li strong {
    color: var(--white-color);
    font-weight: 600; 
    display: block;
}

/* ======== TESTIMONIALS SECTION ======== */
.testimonial-section {
    text-align: center;
}
.testimonial-placeholder {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.review-card {
    flex: 1;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.review-card p {
    font-style: italic;
}
.review-card span {
    font-weight: 600;
    color: var(--primary-color);
}

/* ======== CONTACT SECTION ======== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.contact-info i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}
.social-icons {
    margin-top: 2rem;
}
.social-icons a {
    font-size: 1.8rem;
    margin-right: 1.5rem;
    color: var(--text-color);
}
.social-icons a:hover {
    color: var(--primary-color);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}
.contact-form h3 {
    text-align: center;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
}
.contact-form button {
    width: 100%;
}

/* ======== GALLERY SECTION (THUMBNAILS) ======== */
.gallery-section {
    background-color: var(--light-color); 
    text-align: center;
}

/* Style for the TOP (main) swiper */
.gallery-top {
    width: 100%;
    height: 500px; /* Height for the big image */
    border-radius: 10px;
    overflow: hidden;
    margin-top: 3rem;
}

.gallery-top .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000; 
}

.gallery-top .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use 'cover' to fill the space */
}

/* Style the navigation arrows */
.gallery-top .swiper-button-next,
.gallery-top .swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.5); /* Translucent white */
    border-radius: 50%; /* Circular */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color); /* Dark arrow */
    transition: background-color 0.3s ease;
}

.gallery-top .swiper-button-next:hover,
.gallery-top .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Resize the arrow chevron inside the circle */
.gallery-top .swiper-button-next::after,
.gallery-top .swiper-button-prev::after {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Style for the BOTTOM (thumbnails) swiper */
.gallery-thumbs {
    height: 100px; /* Height for the thumbnail strip */
    box-sizing: border-box;
    padding: 10px 0;
    margin-top: 10px;
}

.gallery-thumbs .swiper-slide {
    height: 100%;
    opacity: 0.5; /* Make non-active thumbs faded */
    cursor: pointer;
    transition: opacity 0.3s;
    border-radius: 5px;
    overflow: hidden;
}

.gallery-thumbs .swiper-slide:hover {
    opacity: 0.8;
}

/* This style is applied by Swiper to the active thumb */
.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1; /* Make the active thumb fully visible */
    border: 3px solid var(--primary-color);
}

.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ======== FOOTER ======== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
}
.footer p {
    margin-bottom: 0.25rem;
    opacity: 0.7;
}

/* ======== HAMBURGER MENU ICON ======== */
.hamburger-menu {
    display: none; 
    cursor: pointer;
    width: 30px; 
    height: 25px; 
    position: relative;
    z-index: 1001; 
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px; 
    background-color: var(--dark-color);
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu .bar:nth-child(1) { top: 0; }
.hamburger-menu .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu .bar:nth-child(3) { bottom: 0; }

.hamburger-menu.is-active .bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger-menu.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.is-active .bar:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }


/* ======== RESPONSIVE DESIGN (Mobile) ======== */
/* This is now the ONLY @media (max-width: 768px) block */
@media (max-width: 768px) {
    
    /* --- Fix for Page Overflow --- */
    .container {
        padding-left: 1rem;  /* Reduces side padding from 32px to 16px */
        padding-right: 1rem; /* Reduces side padding from 32px to 16px */
    }

    h2 {
         display: block; /* Ensures long titles wrap */
    }
	
	.logo {
        align-items: center; /* Ensures logo and text block stay centered */
    }
    .logo-text {
        font-size: 1.5rem; /* Adjust main name size */
        line-height: 1.3;
    }
    .logo-subtitle {
        display: block;  /* This is the magic line! */
        font-size: 0.9rem; /* Make the subtitle smaller */
        color: var(--text-color);
    }

	/* This removes the separator on mobile */
	.logo-subtitle::before {
		content: "";
	}
	
    .header nav {
        flex-direction: row; /* Keep logo and icon side-by-side */
    }

    .hamburger-menu {
        display: block; /* Show the hamburger icon */
    }
    .nav-menu-container {
        position: absolute;
        top: 65px; /* Height of the header */
        left: 0;
	width: 100%;
    	background-color: var(--white-color);
    	box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    	z-index: 999;

    	/* --- Animation properties --- */
    	opacity: 0;
    	visibility: hidden;
    	transform: translateY(-10px);
    	transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    .nav-menu-container.nav-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu {
        flex-direction: column; /* Stack links vertically */
        width: 100%;
        gap: 0;
        flex-wrap: nowrap; /* Fix */
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);

	opacity: 0;
    	transform: translateX(-30px);
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    .nav-menu a:hover {
        background-color: var(--light-color);
    }

    /* --- This makes the menu items animate in --- */
    .nav-menu-container.nav-open .nav-menu li {
        opacity: 1;
    	transform: translateX(0);
    	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    /* --- This adds the staggered delay --- */
    .nav-menu-container.nav-open .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu-container.nav-open .nav-menu li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu-container.nav-open .nav-menu li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu-container.nav-open .nav-menu li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu-container.nav-open .nav-menu li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu-container.nav-open .nav-menu li:nth-child(6) { transition-delay: 0.35s; }

    /* --- Hero Section --- */
    .hero {
        padding: 6rem 0; /* Reduces mobile padding */
    }
    .hero-text h1 {
        font-size: 2.0rem; /* Correct mobile size */
    }
    .hero-text .subtitle {
        font-size: 1.1rem; /* Makes subtitle smaller */
    }
    .hero .btn {
        display: block; /* Stacks the buttons */
        width: 80%;
        margin: 0 auto 1rem; /* Centers them */
    }
    .hero .btn:last-of-type {
        margin-bottom: 0;
    }

    /* --- Other Sections --- */
    .about-content {
        flex-direction: column;
    }
    .profile-pic {
        width: 200px;
        height: 200px;
    }
    .testimonial-placeholder {
        flex-direction: column;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* ======== BACKGROUND ANIMATION ======== */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* ======== WHATSAPP FLOAT BUTTON ======== */
.whatsapp-float {
    /* Positioning */
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999; /* High z-index to stay on top */
    
    /* Box Model & Display */
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    
    /* Style */
    background-color: #25D366;
    color: var(--white-color);
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    
    /* Mobile Bug Hotfix */
    transform: translateZ(0); /* Forces hardware acceleration */
}