/* --- Variables & Reset --- */
:root {
    --primary-color: #347B98; 
    --secondary-color: #2C3E50;
    --text-color: #444;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Layout Utils --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #888; 
    font-weight: 700;
    margin-bottom: 50px;
}

.section-title.centered { text-align: center; }

/* --- Navbar (Fixed Alignment) --- */
.navbar {
    position: fixed; /* Changed to fixed for better use with non-transparent background */
    top: 0;
    width: 100%;
    padding: 20px 40px; 
    z-index: 100;
    background: var(--white); /* ADDED: White background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Added a subtle shadow */
}

.nav-container {
    width: 100%;
    max-width: 100%; /* Ensures logo and links are pushed to edges */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-color); /* CHANGED: From white to text-color */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color); /* CHANGED: Link underline color to primary */
    transition: width 0.3s;
}

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

/* --- Hero Section (Pinned Parallax) --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 100px; /* ADDED: Padding to offset fixed navbar */
    
    /* Pinned Background Effect */
    background: linear-gradient(rgba(52, 123, 152, 0.4), rgba(52, 123, 152, 0.4)), 
                url('images/bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #222;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: justify;
}

.location-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.location-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 5px;
}

.about-blue-box {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px;
    position: relative;
    box-shadow: 0 10px 30px rgba(52, 123, 152, 0.2);
}

.about-blue-box p { margin-bottom: 25px; }

.highlight-text {
    font-weight: 600;
    font-size: 1.05rem;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--white);
    padding: 10px 25px;
    margin-top: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* --- Stats Section (Pinned Parallax) --- */
#stats {
    position: relative;
    padding: 120px 0;
    color: var(--white);
    text-align: center;

    /* Pinned Background Effect */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('images/fish.JPEG');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.stat-desc {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    height: 40px; 
}

.counter {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
}

.team-card {
    text-align: left;
    background: transparent;
}

.team-image-container {
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-image-container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4; 
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image-container img {
    transform: scale(1.05);
}

.team-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.team-info p {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.project-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.project-meta h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-meta span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin: 2px 0;
}

.project-meta a {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: underline;
}

.project-body p {
    font-size: 0.9rem;
    color: #555;
}

/* --- Footer --- */
footer {
    background: #fff;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 50px;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.5rem; }
    
    .about-grid, .projects-grid { grid-template-columns: 1fr; }
    
    .navbar { padding: 20px; }
    .nav-links { display: none; } /* Add JS toggle for mobile menu if needed */
    
    /* Mobile Parallax Fix: Disable fixed attachment on mobile for performance */
    #hero, #stats { background-attachment: scroll; }
}