/* --- Global Styles --- */
:root {
    --primary-color: #282859;  /* Deep Navy Blue */
    --secondary-color: #144272; /* Slightly Lighter Blue */
    --accent-color: #205295;   /* Action Blue */
    --highlight-color: #2C74B3; /* Bright Accent */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-color: #FFFFFF;
    --light-gray: #f9f9f9;
}

/* * { */
    /* box-sizing: border-box; */
/* } */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 40px 0;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--highlight-color);
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    color: #fff;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 6px 20px rgba(32, 82, 149, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--highlight-color), var(--accent-color));
    transition: left 0.4s ease;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(32, 82, 149, 0.4);
}

.btn span {
    position: relative;
    z-index: 1;
}

/* --- Header & Navigation --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding:0;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 125px;
    width: auto;
    margin: -20px 0;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
}

/* --- Hero Section (Home Page) --- */
.hero {
    background: linear-gradient(135deg, rgba(10, 38, 71, 0.95), rgba(32, 82, 149, 0.9)), url('../images/hero-background.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 20px 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
    z-index: 2;
}

/* Animated Background Shapes */
.hero-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--highlight-color), var(--accent-color));
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #2C74B3, #144272);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    top: 50%;
    right: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--highlight-color), var(--secondary-color));
    bottom: 20%;
    left: 15%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(40px, 60px) scale(1.05);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badge-glow 2s infinite alternate;
}

.hero-badge i {
    color: #FFA500;
    margin-right: 8px;
}

@keyframes badge-glow {
    from {
        box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 165, 0, 0.6);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: fade-in-up 0.8s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 750px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fade-in-up 0.8s ease-out 0.4s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary::before {
    background: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 80px;
    animation: fade-in-up 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Page Headers (non-hero pages) --- */
main > .container {
    padding-top: 40px;
}

main > section.services-section .container,
main > section.portfolio-preview-section .container,
main > section.why-choose-section .container {
    padding-top: 0;
}

/* --- Services Section --- */
.services-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--light-gray) 100%);
    text-align: center;
    position: relative;
    padding: 0 0 80px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #666;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.service-card {
    background: #fff;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(10, 38, 71, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(32, 82, 149, 0.08);
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(10, 38, 71, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 3.2em;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover i {
    color: var(--highlight-color);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 18px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- About Section --- */
.about-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.about-content {
    flex: 1;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.about-content .btn {
    margin-top: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Contact Page --- */
.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e9eb;
}

.contact-form {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.3em;
    min-width: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(32, 82, 149, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 40px 0;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    color: #fff;
}

/* --- Portfolio Preview Section --- */
.portfolio-preview-section {
    background: linear-gradient(180deg, #fafbfc 0%, #f0f2f5 100%);
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.portfolio-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(32, 82, 149, 0.2), transparent);
}

.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.preview-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    display: block;
}

.preview-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.preview-item:hover img {
    transform: scale(1.1);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 38, 71, 0.95), rgba(20, 66, 114, 0.7));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.preview-item:hover .preview-overlay {
    opacity: 1;
}

.preview-overlay h3 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.preview-overlay p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.preview-item:hover .preview-overlay h3,
.preview-item:hover .preview-overlay p {
    transform: translateY(0);
}

/* --- Why Choose Us Section --- */
.why-choose-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(32, 82, 149, 0.15), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8e9eb;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(32, 82, 149, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
    color: var(--highlight-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* --- Portfolio Page --- */
.portfolio-disclaimer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px 25px;
    margin: 30px auto 40px auto;
    max-width: 900px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.portfolio-disclaimer i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.portfolio-disclaimer p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.portfolio-disclaimer strong {
    color: var(--primary-color);
}

#portfolio-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 50px;
    margin: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    color: #fff;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

/* Add margin-top to first content element in non-hero pages */
main > .container > .section-title:first-child {
    margin-top: 0;
}

.portfolio-item {
    flex: 0 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px;
}

@media (max-width: 992px) {
    .portfolio-item {
        flex: 0 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .portfolio-item {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 38, 71, 0.9), rgba(20, 66, 114, 0.5));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    margin: 5px 0 0 0;
    transform: translateY(15px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* For filtering animation */
.portfolio-item.hide {
    display: none;
}


/* --- Scroll Animations --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card.scroll-animate {
    transition-delay: calc(0.1s * var(--index, 0));
}

.feature-card.scroll-animate {
    transition-delay: calc(0.1s * var(--index, 0));
}

.service-card:nth-child(1) { --index: 1; }
.service-card:nth-child(2) { --index: 2; }
.service-card:nth-child(3) { --index: 3; }

.feature-card:nth-child(1) { --index: 1; }
.feature-card:nth-child(2) { --index: 2; }
.feature-card:nth-child(3) { --index: 3; }
.feature-card:nth-child(4) { --index: 4; }
.feature-card:nth-child(5) { --index: 5; }
.feature-card:nth-child(6) { --index: 6; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 120px 20px 80px;
        min-height: 75vh;
    }

    .hero-stats {
        gap: 40px;
        margin-top: 60px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-section, .contact-container {
        flex-direction: column;
    }

    main > .container {
        padding-top: 0;
    }

    .services-section {
        padding: 60px 0;
    }

    .portfolio-preview-section,
    .why-choose-section {
        padding: 60px 0;
    }
}

