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

:root {
    --primary-color: #C9234A;
    --secondary-color: #1D1D1F;
    --text-color: #1D1D1F;
    --text-light: #6E6E73;
    --bg-light: #F5F5F7;
    --bg-dark: #000000;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000 !important;
    background-color: #000000 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--primary-color);
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #C9234A 0%, #000000 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.hero-title-line {
    display: block;
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    animation: fadeIn 1s ease-out 0.8s forwards;
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.scroll-dot {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

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

/* Section Styles */
section {
    min-height: 100vh;
    padding: 120px 0;
    display: flex;
    align-items: center;
}

.section-parallax {
    background: var(--bg-light);
    position: relative;
}

/* About Section Background */
.about.section-parallax {
    background-image: url('images/WaterPlant-Image01.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about.section-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.about.section-parallax .container {
    position: relative;
    z-index: 2;
}

.about.section-parallax .section-title,
.about.section-parallax .section-subtitle {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Technology Section Background */
.technology.section-parallax {
    background-image: url('images/AdobeStock_742426797.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.technology.section-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.technology.section-parallax .container {
    position: relative;
    z-index: 2;
}

.technology.section-parallax .section-title,
.technology.section-parallax .section-subtitle {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.technology.section-parallax .tech-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.technology.section-parallax .tech-item h3,
.technology.section-parallax .tech-item p {
    color: var(--text-dark);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--white);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.7;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Expandable Card Styles */
.expandable-card .card-summary {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.expand-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #A01D3A 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 35, 74, 0.3);
}

.expand-btn.expanded {
    background: linear-gradient(135deg, #888 0%, #666 100%);
}

.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, margin-top 0.4s ease-out;
    margin-top: 0;
}

.card-details.show {
    max-height: 500px;
    margin-top: 20px;
}

.card-details p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.card-details p:last-child {
    margin-bottom: 0;
}

.card-details strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Products Section */
.product-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

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

.product-image {
    border-radius: 20px;
    overflow: visible;
    width: 100%;
}

.product-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(201, 35, 74, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder svg {
    width: 100px;
    height: 100px;
    opacity: 0.3;
}

.product-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.product-info p {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin: 30px 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    opacity: 0.8;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-block;
    margin-top: 20px;
    transition: var(--transition);
}

.product-link:hover {
    transform: translateX(5px);
}

/* Constant Guardian Section Custom Styling */
.constant-guardian-section {
    --cg-orange: #FF9933;
    --cg-blue: #6CB4E8;
    --cg-green: #00CC66;
    --cg-dark: #1a1a1a;
}

.constant-guardian-section .product-logo {
    margin-bottom: 20px;
}

.constant-guardian-section .product-logo img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.constant-guardian-section .product-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(108, 180, 232, 0.3);
    object-fit: contain;
    display: block;
}

.constant-guardian-section .feature-list li::before {
    color: var(--cg-orange);
}

.constant-guardian-section .product-link {
    color: var(--cg-blue);
    background: linear-gradient(135deg, var(--cg-orange) 0%, var(--cg-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.constant-guardian-section .product-link:hover {
    filter: brightness(1.2);
}

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

.tech-item {
    padding: 40px 30px;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateX(10px);
}

.tech-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.tech-item h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.tech-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.leader-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leader-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.leader-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

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

.leader-info {
    text-align: center;
}

.leader-name {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: var(--white);
    font-weight: 600;
}

.leader-credentials {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    min-height: 1.4em;
}

.leader-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.leader-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.leader-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.leader-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 25px;
}

.leader-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.leader-link svg {
    flex-shrink: 0;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
}

.contact-item a:hover {
    color: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.submit-button {
    padding: 16px 48px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.submit-button:hover {
    background: #A01D3C;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 35, 74, 0.3);
}

/* Footer */
.footer {
    background: #000000 !important;
    background-color: #000000 !important;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 160px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.5;
    margin-top: 20px;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollDown {
    0%, 100% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 24px;
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .product-feature {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    section {
        padding: 80px 0;
    }

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

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

    .leader-image {
        width: 150px;
        height: 150px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Profile Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    margin: 5% auto;
    padding: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--white);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--white);
    float: right;
    font-size: 35px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-profile-image {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.modal-profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(201, 35, 74, 0.3);
}

#modalBody h2 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

#modalBody h3 {
    color: var(--white);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

#modalBody p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

#modalBody ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

#modalBody li {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

/* Smooth Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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