/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 1rem 2rem;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 700;
    font-size: 1.5rem;
}

nav .logo img {
    height: 40px;
    margin-right: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
    animation: headerGlow 4s infinite alternate;
}

nav .logo a:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.6);
}

@keyframes headerGlow {
    from {
        box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
    }
    to {
        box-shadow: 0 0 25px rgba(0, 170, 255, 0.5);
    }
}

nav .logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 8px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00aaff;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #00aaff;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Active navigation link */
nav ul li a.active {
    color: #00aaff;
}

nav ul li a.active::after {
    width: 100%;
}

/* Main Content */
main {
    padding: 2rem 4rem;
}

section {
    margin-bottom: 5rem;
    padding-top: 2rem;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

/* Stagger animations for different sections */
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.3s; }
section:nth-child(3) { animation-delay: 0.5s; }
section:nth-child(4) { animation-delay: 0.7s; }
section:nth-child(5) { animation-delay: 0.9s; }
section:nth-child(6) { animation-delay: 1.1s; }

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

/* Alternative: Use CSS scroll-driven animations (newer browsers) */
@supports (animation-timeline: scroll()) {
    section {
        animation: fadeInScroll linear;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }
    
    @keyframes fadeInScroll {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

section h1, section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00aaff, #00ffcc);
    margin: 1rem auto;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

section:hover h2::after {
    opacity: 1;
    transform: translateY(0);
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(30, 30, 30, 0.5);
    padding: 3rem;
    border-radius: 15px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.content .text {
    max-width: 600px;
}

.content .image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content .image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 170, 255, 0.3);
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 70vh;
    background: radial-gradient(ellipse at center, rgba(20, 30, 40, 0.5) 0%, #0a0a0a 70%);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 5rem;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 170, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 204, 0.05) 0%, transparent 20%);
    z-index: -1;
}

#hero .image img {
    width: 50vw; /* Responsive width based on viewport */
    max-width: 400px; /* Prevents it from getting too large */
    min-width: 250px; /* Ensures it's not too small on mobile */
    height: auto;
    margin: 0 auto 2rem auto;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.3);
    animation: glow 4s infinite alternate;
}

#hero .text {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 3.5rem;
    background: -webkit-linear-gradient(45deg, #00aaff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    position: relative;
}

#hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00aaff, #00ffcc);
    margin: 1rem auto;
    border-radius: 2px;
}

#hero .text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@keyframes glow {
    from {
        box-shadow: 0 0 30px rgba(0, 170, 255, 0.3);
    }
    to {
        box-shadow: 0 0 50px rgba(0, 170, 255, 0.7);
    }
}


/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

table th, table td {
    border: 1px solid #333;
    padding: 1.2rem;
    text-align: left;
    transition: background-color 0.3s ease;
}

table th {
    background-color: #2a2a2a;
    font-weight: 600;
    color: #00aaff;
    position: relative;
}

table tr:hover td {
    background-color: rgba(0, 170, 255, 0.1);
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
}

ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00aaff;
    font-weight: bold;
    font-size: 1.2rem;
    top: -2px;
}

/* Team Members */
.team-members {
    margin-top: 3rem;
    padding: 0 2rem;
}

.team-members h3 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.network-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 1.5rem;
}

.network-table tr {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.network-table tr:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.2);
}

.member-photo-cell {
    width: 120px;
    padding: 1.5rem;
    vertical-align: middle;
    text-align: center;
}

.member-photo-cell img {
    width: 80px !important;
    height: 80px !important;
}

.member-photo {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00aaff;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.member-info-cell {
    padding: 1.5rem;
    vertical-align: top;
}

.member-info-cell h4 {
    color: #00aaff;
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.member-info-cell p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.linkedin-link {
    color: #00aaff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
}

.linkedin-link:hover {
    color: #00ffcc;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h3 {
    color: #00aaff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #00ffcc;
}

.legal-content .contact-info {
    background: rgba(30, 30, 30, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #00aaff;
    margin: 1rem 0;
}

.legal-content .highlight {
    color: #00aaff;
    font-weight: 600;
}

.legal-content .highlight:hover {
    color: #00ffcc;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    margin-top: 4rem;
}

footer a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 5px;
}

footer a:hover {
    color: #fff;
}

footer p {
    margin: 0.5rem 0;
}

/* Contact Section */
.contact-email {
    font-size: 1.2rem;
    margin: 1.5rem 0;
}

.contact-email strong {
    color: #e0e0e0;
}

.contact-email a {
    color: #00aaff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: #00ffcc;
}

/* Contact Button */
.email-highlight {
    color: #00aaff !important;
    font-weight: 600;
    font-size: 1.1em;
    display: inline-block;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #00aaff, #00ffcc);
    color: #0a0a0a;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.5);
}

/* Mobile Navigation - CSS Only Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0;
    cursor: pointer;
    z-index: 1002;
    right: 1rem;
    top: 1rem;
}

.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 1001;
    pointer-events: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #f0f0f0;
    margin-bottom: 6px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu State */
.mobile-menu-toggle:checked ~ nav ul {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -8px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    main {
        padding: 2rem 3rem;
    }
    
    section h1, section h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 1024px) {
    .content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #hero .content {
        grid-template-columns: 1fr;
    }
    
    .content .image {
        order: -1; /* Image first on tablets */
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    header {
        padding: 1rem;
    }
    
    .mobile-menu-toggle,
    .hamburger {
        display: block;
    }
    
    nav {
        position: relative;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        margin-top: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
    }
    
    nav ul li a::after {
        display: none; /* Remove hover underline on mobile */
    }

    /* Main Content Mobile */
    main {
        padding: 1.5rem;
    }

    section {
        margin-bottom: 3rem;
        padding-top: 1rem;
    }

    section h1, section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    #hero {
        min-height: 60vh;
        padding: 3rem 1rem;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero .text p {
        font-size: 1rem;
    }

    /* Content Blocks Mobile */
    .content {
        padding: 2rem 1.5rem;
    }
    
    /* Tables Mobile */
    .network-table {
        border-spacing: 0 1rem;
    }
    
    .network-table tr {
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .member-photo-cell {
        width: 100%;
        padding: 0 0 1rem 0;
    }
    
    .member-info-cell {
        width: 100%;
        padding: 0;
        text-align: center;
    }
    
    .member-info-cell h4 {
        font-size: 1.2rem;
    }
    
    .member-info-cell p {
        font-size: 0.9rem;
    }
    
    /* Legal Content Mobile */
    .legal-content {
        padding: 0 1rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
    
    /* Footer Mobile */
    footer {
        padding: 2rem 1rem;
    }
    
    footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Extra Small Devices */
    section h1, section h2 {
        font-size: 1.75rem;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero .image img {
        min-width: 200px;
    }
    
    .content {
        padding: 1.5rem 1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th, table td {
        padding: 0.8rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #hero {
        min-height: 80vh;
    }
    
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        width: auto;
        margin: 0 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    header, footer {
        display: none;
    }
    
    .content {
        background: none;
        box-shadow: none;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
