@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    --primary-color: #002b49;
    --secondary-color: #ff6b00;
    --accent-color: #00a8e8;
    --light-bg: rgba(255, 255, 255, 0.1);
    --dark-text: #1e293b;
    --text-muted: #475569;
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(12px);
    /* Advanced Shadows */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Easing Functions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--secondary-color);
    color: white;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-text);
    line-height: 1.7;
    background: linear-gradient(125deg, #e0f7fa 0%, #e1bee7 50%, #fff9c4 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Utilities */
.glass-card, .card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
}

/* Navigation */
.navbar {
    padding: 0.8rem 0;
    transition: all 0.5s var(--ease-out-expo);
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    transition: transform 0.3s var(--ease-smooth);
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.nav-link {
    font-weight: 600;
    color: var(--dark-text) !important;
    margin-left: 0.5rem;
    position: relative;
    transition: all 0.3s var(--ease-smooth);
    padding: 0.6rem 1.2rem !important;
    border-radius: 30px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    transform: translateY(-1px);
}

.btn-primary {
    background-color: rgba(0, 43, 73, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(0, 31, 53, 0.95);
    transition: width 0.4s var(--ease-out-expo);
    z-index: -1;
}

.btn-primary:hover {
    border-color: #001f35;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 43, 73, 0.25);
}

.btn-primary:hover::before {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 43, 73, 0.75) 0%, rgba(0, 43, 73, 0.55) 100%), url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 180px 0 120px;
    margin-top: -76px; /* Offset for sticky navbar */
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Scroll Animations */
.reveal {
    position: relative;
    transform: translateY(40px);
    opacity: 0;
    filter: blur(5px);
    transition: all 1.2s var(--ease-out-quart);
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
}

/* Section Dividers */
.custom-shape-divider-bottom-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.custom-shape-divider-bottom-1 .shape-fill {
    fill: #FFFFFF;
}

/* Modern Card Glass Effect - Consolidate */
.glass-card {
    /* Styles handled by global selector, adding specific overrides if needed */
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    font-weight: 600;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: #002b49;
    background: rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.btn-warning {
    background-color: rgba(255, 107, 0, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(230, 81, 0, 0.8);
    transition: width 0.4s var(--ease-out-expo);
    z-index: -1;
}

.btn-warning:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

.btn-warning:hover::before {
    width: 100%;
}

/* Section Styling */
.section-title {
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#about {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Services & Industries Cards */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    /* Background handled by global glass utility */
    transition: all 0.5s var(--ease-out-expo);
    will-change: transform, box-shadow;
}

.service-card, .industry-card {
    height: 100%;
    /* Shadow handled by global glass utility */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover, .industry-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    z-index: 1;
    background: rgba(255, 255, 255, 0.4) !important;
}

/* General Card Zoom Effect */
.card-zoom {
    transition: all 0.5s var(--ease-out-expo);
}

.card-zoom:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    z-index: 1;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out-expo);
}

.service-card:hover .card-img-top, .industry-card:hover .card-img-top, .card-zoom:hover .card-img-top {
    transform: scale(1.08);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s var(--ease-smooth);
}

.service-card:hover .card-title, .industry-card:hover .card-title {
    color: var(--secondary-color);
}

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

/* Integrated EPC Section */
#epc.bg-light {
    background-color: var(--light-bg) !important;
}

.hover-effect {
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.hover-effect:hover {
    transform: scale(1.02);
}

/* Projects Section */
.project-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: all 0.5s var(--ease-out-expo);
}

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

.project-card img {
    transition: transform 0.8s var(--ease-out-expo);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    opacity: 1;
    transition: all 0.5s var(--ease-smooth);
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
}

/* News & Insights */
.news-card {
    transition: all 0.5s var(--ease-out-expo);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-hover-shadow);
}

.news-card .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.news-card:hover .card-img-top {
    transform: scale(1.1);
}

.news-card .badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s var(--ease-smooth);
}

.news-card:hover .badge {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.read-more {
    color: var(--secondary-color);
    transition: all 0.3s var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.read-more i {
    transition: transform 0.3s var(--ease-out-expo);
}

.news-card:hover .read-more i {
    transform: translateX(8px);
}

.read-more:hover {
    color: #e65100;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(0, 31, 53, 0.9), rgba(0, 43, 73, 0.85)) !important;
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer .disclaimer-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #6c8091;
}

.footer i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Contact Form Styles */
.glass-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    color: var(--dark-text) !important;
    transition: all 0.3s var(--ease-smooth);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 43, 73, 0.1);
}

.glass-input::placeholder {
    color: rgba(30, 41, 59, 0.6);
}

.form-floating > label {
    color: rgba(30, 41, 59, 0.7);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    font-weight: 600;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s var(--ease-out-expo);
}

.d-flex:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title::after {
        margin: 15px auto 0; /* Ensure center on mobile */
    }
    
    .hero-section {
        padding: 120px 0 80px;
    }
}
