/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
}

body {
    font-family: 'Times New Roman', Times, serif; /* Matching the logo font style */
    color: #ffffff;
    background-color: #001f3f;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #D4AF37; /* Gold accent */
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-family: Arial, Helvetica, sans-serif; /* Sans-serif for body text readability */
    color: #e0e0e0;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 31, 63, 0.95); /* Semi-transparent Navy */
    backdrop-filter: blur(5px);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid #003366;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-family: 'Stencil', 'Impact', 'Arial Black', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    font-style: italic;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.nav-toggle:hover {
    border-color: rgba(212, 175, 55, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle-icon {
    position: relative;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav-toggle-icon::before {
    top: -7px;
}

.nav-toggle-icon::after {
    bottom: -7px;
}

.navbar.menu-open .nav-toggle-icon {
    background: transparent;
}

.navbar.menu-open .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar.menu-open .nav-toggle-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-container {
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.75rem;
        background-color: rgba(0, 31, 63, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
    }

    .navbar.menu-open .nav-links {
        padding: 1rem;
        max-height: 70vh;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
}

/* Sections General */
.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px; /* Top padding for navbar */
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.content-wrapper {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section.visible .content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Background Variations for Sections */
/* Home Section - Full Navy */
.home-section {
    background: radial-gradient(circle at center, #003366 0%, #001f3f 100%);
}

/* About Section - Darker */
.about-section {
    background-color: #001f3f;
    border-top: 1px solid #003366;
}

/* Team Section - Match About */
.team-section {
    background-color: #001f3f;
    border-top: 1px solid #003366;
}

/* Services Section - Slightly lighter for contrast */
.services-section {
    background: linear-gradient(135deg, #001f3f 0%, #002855 100%);
}

/* Why Us Section - Deep Navy */
.why-us-section {
    background-color: #001830;
}

/* Privacy Section - Standard Navy */
.privacy-section {
    background-color: #001f3f;
}

/* Contact Section - Darkest */
.contact-section {
    background: linear-gradient(to bottom, #001f3f, #000000);
}


/* Specific Section Styles */

/* Home */
.logo-container {
    margin-bottom: 2rem;
}

.main-logo {
    max-width: 600px;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.slogan-container h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slogan-container p {
    font-size: 1.2rem;
    color: #D4AF37;
    font-style: italic;
}

/* About */
.about-section .text-content {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

.about-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-indent: 2em; /* Indent first line by 2 characters */
}

/* Team Section Styles */
.team-container {
    margin-top: 3rem;
    width: 100%;
}

.team-card {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    max-width: 600px; /* Limit width for better appearance */
    margin-left: auto;
    margin-right: auto;
}

.team-card:hover {
    transform: translateX(5px);
    border-color: #D4AF37;
}

.team-photo {
    width: 25%;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

.team-info {
    width: 75%;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h4 {
    color: #D4AF37;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.team-info .role {
    color: #ffffff;
    font-style: italic;
    margin-bottom: 0.5rem;
    text-indent: 0; /* No indent for role */
    font-size: 1rem;
}

.team-info .role-detail {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.team-info .email-link {
    color: #87CEEB;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: Arial, Helvetica, sans-serif;
    word-break: break-word;
}

.team-info .email-link:hover {
    text-decoration: underline;
}

.team-info .twitter-link {
    color: #87CEEB; /* Sky Blue */
    text-decoration: none;
    font-size: 0.9rem;
    font-family: Arial, Helvetica, sans-serif;
}

.team-info .twitter-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .about-section .text-content {
        text-align: left;
    }

    .about-section p {
        word-spacing: normal;
        hyphens: auto;
        overflow-wrap: break-word;
    }

    .team-container {
        margin-top: 2rem;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-color: #D4AF37;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.service-card p {
    font-size: 0.95rem;
}

/* Why Us & Philosophy Split Layout */
.split-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: left;
}

@media (min-width: 768px) {
    .split-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .why-us-content {
        flex: 3;
        padding-right: 2rem;
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    .philosophy-content {
        flex: 2;
        padding-left: 2rem;
    }
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1.5rem;
}

.feature-list strong {
    display: block;
    color: #D4AF37;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.philosophy-box {
    background: rgba(212, 175, 55, 0.1); /* Gold tint */
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #D4AF37;
    text-align: center;
}

.philosophy-box h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Privacy Policy Scrollable */
.privacy-section .scrollable-text {
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-section ol {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.privacy-section li {
    margin-bottom: 0.8rem;
    color: #e0e0e0;
}

/* Contact Us */
.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item strong {
    color: #D4AF37;
    margin-right: 1rem;
}

.site-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    width: 100%;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #001f3f;
}

::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}
