/* ============================================
   MODERN REEF CONSERVATION WEBSITE STYLES
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:root {
    /* Ocean-inspired color palette */
    --primary-color: #0077be;
    --primary-dark: #005a8d;
    --primary-light: #33a0d6;
    --secondary-color: #00d4aa;
    --secondary-dark: #00a885;
    --accent-color: #ff6b35;
    --ocean-deep: #001f3f;
    --ocean-medium: #003d5c;
    --ocean-light: #e6f3ff;

    /* Neutral colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --black: #1a1a1a;

    /* Gradients */
    --gradient-ocean: linear-gradient(135deg, #0077be 0%, #00d4aa 100%);
    --gradient-deep: linear-gradient(180deg, rgba(0, 31, 63, 0.95) 0%, rgba(0, 61, 92, 0.9) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: var(--font-primary);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.navbar.scrolled .logo img {
    height: 45px;
}

.logo-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--ocean-deep);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.navbar:not(.scrolled) .logo-name {
    color: var(--white);
}

/* Hide logo name on mobile, show centered below */
@media (max-width: 768px) {
    .logo-name {
        display: none;
    }
}

/* Legacy text logo styles (kept for backward compatibility) */
.logo-text {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar.scrolled .logo-text {
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 2px;
    margin-top: -2px;
}

.navbar.scrolled .logo-subtitle {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.navbar.scrolled .nav-link {
    color: var(--dark-gray);
}

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

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

.nav-link.active {
    color: var(--secondary-color);
}

.navbar.scrolled .nav-link.active {
    color: var(--primary-color);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark-gray);
}

/* ============================================
   HERO SECTION
   ============================================ */

/* Home Page Hero with Images */
.hero-home {
    min-height: 100vh;
    padding: 0;
    background: linear-gradient(135deg, #0077be 0%, #003d5c 50%, #001f3f 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Smooth animated light waves */
.hero-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 212, 170, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 85%, rgba(0, 119, 190, 0.07) 0%, transparent 60%);
    animation: gentleWaves 35s ease-in-out infinite;
    z-index: 1;
}

/* Subtle floating particles */
.hero-home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 212, 170, 0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(0, 119, 190, 0.25) 1px, transparent 1px);
    background-size: 200px 200px, 280px 280px, 240px 240px;
    background-position: 0 0, 100px 100px, 180px 60px;
    animation: floatingParticles 40s ease-in-out infinite;
    z-index: 1;
}

@keyframes gentleWaves {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    33% {
        transform: translateY(-20px) scale(1.05);
        opacity: 1;
    }
    66% {
        transform: translateY(20px) scale(0.95);
        opacity: 0.9;
    }
}

.hero-home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 31, 63, 0.3);
    z-index: 1;
}

.hero-home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-home-content {
    z-index: 2;
}

.hero-home-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-home-subtitle {
    font-size: 20px;
    color: var(--ocean-light);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 550px;
}

.hero-home-images {
    position: relative;
    height: 600px;
}

.hero-image-card {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.hero-image-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-1 {
    width: 400px;
    height: 300px;
    top: 0;
    left: 0;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.hero-image-2 {
    width: 350px;
    height: 250px;
    top: 200px;
    right: 50px;
    z-index: 2;
    animation: float 6s ease-in-out infinite 2s;
}

.hero-image-3 {
    width: 300px;
    height: 220px;
    bottom: 0;
    left: 120px;
    z-index: 1;
    animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Default Hero for other pages */
.hero {
    min-height: 50vh;
    height: auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0077be 0%, #003d5c 50%, #001f3f 100%);
    overflow: hidden;
}

/* Smooth animated light waves */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 212, 170, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 85%, rgba(0, 119, 190, 0.07) 0%, transparent 60%);
    animation: gentleWaves 35s ease-in-out infinite;
    z-index: 1;
}

/* Subtle floating particles */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 212, 170, 0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(0, 119, 190, 0.25) 1px, transparent 1px);
    background-size: 200px 200px, 280px 280px, 240px 240px;
    background-position: 0 0, 100px 100px, 180px 60px;
    animation: floatingParticles 40s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatingParticles {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-40px) translateX(30px);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-80px) translateX(-20px);
        opacity: 1;
    }
    75% {
        transform: translateY(-40px) translateX(-40px);
        opacity: 0.8;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--ocean-light);
    margin-bottom: 0;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-ocean);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease;
}

.fade-in-delay {
    animation: fadeInUp 1s ease 0.2s backwards;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--ocean-deep);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .lead {
    font-size: 20px;
    color: var(--ocean-medium);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p {
    color: var(--medium-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-ocean);
    opacity: 0.1;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-ocean);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.service-card h3 {
    font-size: 22px;
    color: var(--ocean-deep);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Clean Services Grid (No Images) */
.services-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card-clean {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border-left: 4px solid transparent;
    position: relative;
}

.service-card-clean:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-ocean);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    opacity: 0.9;
}

.service-card-clean h3 {
    font-size: 20px;
    color: var(--ocean-deep);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
    padding-right: 60px;
}

.service-card-clean p {
    color: var(--medium-gray);
    line-height: 1.8;
    font-size: 15px;
}

.service-card-clean a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.service-card-clean a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
    padding: var(--section-padding);
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

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

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: var(--white);
    text-decoration: none;
    padding: 12px 30px;
    border: 2px solid var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.project-link:hover {
    background: var(--white);
    color: var(--primary-color);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 24px;
    color: var(--ocean-deep);
    margin-bottom: 15px;
}

.project-content p {
    color: var(--medium-gray);
    margin-bottom: 0;
    line-height: 1.7;
}

.project-tags {
    display: none;
}

.tag {
    display: none;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    text-align: center;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition-smooth);
}

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

.team-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--ocean-light);
    position: relative;
}

.team-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-ocean);
    opacity: 0.2;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 22px;
    color: var(--ocean-deep);
    margin-bottom: 8px;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
}

.team-description {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info h3 {
    font-size: 32px;
    color: var(--ocean-deep);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--medium-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--ocean-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-item h4 {
    font-size: 16px;
    color: var(--ocean-deep);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--medium-gray);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 119, 190, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--ocean-deep);
    margin-bottom: 10px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 15px;
    background: var(--white);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 119, 190, 0.1);
}

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

.contact-form .btn {
    width: 100%;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--ocean-deep);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Medium screens - adjust navigation spacing */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 25px;
    }

    .nav-link {
        font-size: 14px;
    }

    .logo-name {
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 18px;
    }

    .nav-link {
        font-size: 13px;
    }

    .logo-name {
        font-size: 16px;
    }
}

@media (max-width: 968px) {
    .hero {
        min-height: 45vh;
    }

    .hero-title {
        font-size: 56px;
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-container {
        position: relative;
    }

    /* Add centered company name on mobile */
    .nav-container::after {
        content: 'HJR Reefscaping';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 18px;
        font-weight: 700;
        color: var(--ocean-deep);
        white-space: nowrap;
        pointer-events: none;
    }

    .navbar:not(.scrolled) .nav-container::after {
        color: var(--white);
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-smooth);
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: var(--dark-gray);
    }

    .hero {
        min-height: 40vh;
        padding: 120px 0 60px;
    }

    .hero {
        min-height: 40vh;
    }

    .hero-title {
        font-size: 42px;
        margin-bottom: 5px;
    }

    .hero-home-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 30px;
    }

    .hero-home-title {
        font-size: 42px;
    }

    .hero-home-subtitle {
        font-size: 18px;
    }

    .hero-home-images {
        height: 400px;
    }

    .hero-image-1 {
        width: 300px;
        height: 220px;
    }

    .hero-image-2 {
        width: 250px;
        height: 180px;
        right: 20px;
    }

    .hero-image-3 {
        width: 220px;
        height: 160px;
        left: 60px;
    }

    .services-grid-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service-card-clean {
        padding: 30px 25px;
    }

    .service-number {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .section-title {
        font-size: 36px;
    }

    .services-grid,
    .services-grid-clean,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 35vh;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 4px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-home {
        padding: 100px 0 60px;
    }

    .hero-home-container {
        padding: 0 20px;
    }

    .hero-home-logo img {
        max-width: 140px;
    }

    .hero-home-title {
        font-size: 32px;
    }

    .hero-home-subtitle {
        font-size: 16px;
    }

    .hero-home-images {
        height: 300px;
        margin-top: 40px;
    }

    .hero-image-1 {
        width: 220px;
        height: 160px;
    }

    .hero-image-2 {
        width: 180px;
        height: 130px;
        right: 10px;
        top: 150px;
    }

    .hero-image-3 {
        width: 160px;
        height: 120px;
        left: 30px;
        bottom: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .stat-number {
        font-size: 36px;
    }

    .contact-form {
        padding: 25px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

.scroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* Smooth animations for interactive elements */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .section-title {
        page-break-after: avoid;
    }
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    background: var(--white);
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-overlay.active .modal-dialog {
    transform: scale(1);
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--ocean-deep);
    margin: 0;
    padding-right: 40px;
    line-height: 1.3;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    color: var(--dark-gray);
    font-size: 32px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.4);
}

.modal-body {
    padding: 30px;
    color: var(--dark-gray);
    line-height: 1.8;
}

.modal-body h5 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 20px;
    color: var(--medium-gray);
}

.modal-body em {
    font-style: italic;
    color: var(--ocean-medium);
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.modal-body a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-body ul li {
    margin-bottom: 10px;
}

.modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-footer .btn {
    padding: 12px 30px;
    font-size: 15px;
}

.modal-footer .btn-primary {
    background: var(--gradient-ocean);
    color: var(--white);
    border: none;
}

.modal-footer .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.modal-footer .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Modal scrollbar styling */
.modal-dialog::-webkit-scrollbar {
    width: 8px;
}

.modal-dialog::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 0 15px 15px 0;
}

.modal-dialog::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-dialog::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Mobile modal styles */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal-dialog {
        max-height: 95vh;
        border-radius: 10px;
    }

    .modal-header {
        padding: 20px 20px 15px;
    }

    .modal-header h3 {
        font-size: 22px;
        padding-right: 35px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px 20px;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ============================================
   END OF STYLES
   ============================================ */

/* ============================================
   MULTIMEDIA PAGE STYLES
   ============================================ */

/* Video List Container */
.video-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.video-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    border-left: 4px solid transparent;
}

.video-list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
    background: var(--ocean-light);
}

.video-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-ocean);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.video-list-item:hover .video-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 119, 190, 0.4);
}

.video-icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
    margin-left: 3px; /* Visual centering for play icon */
}

.video-text {
    flex: 1;
}

.video-text h4 {
    font-size: 17px;
    color: var(--ocean-deep);
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.3;
}

.video-text p {
    font-size: 14px;
    color: var(--medium-gray);
    margin: 0;
    line-height: 1.4;
}

/* Video Modal Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: var(--black);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-section {
    margin-top: 40px;
}

.gallery-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-image {
    height: 100%;
    min-height: 300px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-content {
    padding: 40px;
}

.gallery-content h3 {
    font-size: 28px;
    color: var(--ocean-deep);
    margin-bottom: 20px;
}

.gallery-content p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Responsive multimedia styles */
@media (max-width: 968px) {
    .video-list-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-card {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .video-list-item {
        padding: 18px 20px;
    }

    .video-icon {
        width: 45px;
        height: 45px;
    }

    .video-icon svg {
        width: 18px;
        height: 18px;
    }

    .video-text h4 {
        font-size: 16px;
    }

    .video-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .video-list-item {
        padding: 15px 18px;
        gap: 15px;
    }

    .video-icon {
        width: 40px;
        height: 40px;
    }

    .video-icon svg {
        width: 16px;
        height: 16px;
    }

    .video-text h4 {
        font-size: 15px;
    }

    .gallery-content {
        padding: 30px 20px;
    }
}

/* ============================================
   TRACK RECORD TIMELINE STYLES
   ============================================ */

.timeline {
    max-width: 1000px;
    margin: 60px auto 0;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-ocean);
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
}

.timeline-year {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    padding-top: 8px;
    position: relative;
    padding-right: 10px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -31px;
    top: 18px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--ocean-light);
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary-color);
}

.timeline-content h4 {
    color: var(--ocean-deep);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 30px;
}

.timeline-content h4:first-child {
    margin-top: 0;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: var(--dark-gray);
}

.timeline-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 14px;
}

.timeline-list li ul {
    margin-top: 10px;
    margin-left: 20px;
}

.timeline-list li ul li::before {
    content: '◦';
    color: var(--primary-color);
}

.timeline-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.timeline-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .timeline-year {
        font-size: 28px;
        text-align: left;
        padding-left: 50px;
    }

    .timeline-year::after {
        left: 13px;
        right: auto;
    }

    .timeline-content {
        padding: 20px;
        margin-left: 40px;
    }
}

@media (max-width: 480px) {
    .timeline-year {
        font-size: 24px;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-content h4 {
        font-size: 18px;
    }
}
