/* Reset and Base Styles */
:root {
    /* Light Theme Colors */
    --primary-bg: #FFFFFF;
    --secondary-bg: #F8F9FA;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --accent: #FF0000;
    --link: #0066CC;
    --border: #E5E7EB;
    --member-box-bg: #2D2D2D;
    --member-box-text: #FFFFFF;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --primary-bg: #0A0A0A;
    --secondary-bg: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --accent: #FF3333;
    --link: #3B82F6;
    --border: #374151;
    --member-box-bg: #1E1E1E;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    transition: var(--transition);
}

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

a {
    text-decoration: none;
    color: var(--link);
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 10px;
    overflow: hidden;
    display: block;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--secondary-bg);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    background-color: var(--secondary-bg);
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 30px;
    color: var(--accent);
    animation: fadeInUp 1s ease;
}

.hero-image {
    max-width: none;
    width: 100vw;
    margin: 0 calc(50% - 50vw) 40px; /* full-bleed centered */
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
    opacity: 1; /* overlay will darken image */
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-title {
    position: absolute;
    left: 50%;
    top: 50%; /* center vertically */
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    font-size: clamp(48px, 10vw, 180px);
    line-height: 0.9;
    pointer-events: none;
    text-shadow: 0 6px 20px rgba(0,0,0,0.6);
    z-index: 3;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55); /* darken to match demo */
    z-index: 2;
    pointer-events: none;
}

.tagline {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about h2 {
    text-align: center;
    font-size: 56px;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--accent);
    bottom: -10px;
    left: 20%;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.team h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.member-card {
    background: var(--member-box-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    color: var(--member-box-text);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.member-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.member-role {
    color: #bbb;
    margin-bottom: 15px;
    font-size: 16px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.skill-tag {
    background: rgba(255, 0, 0, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 0, 0, 0.4);
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    color: var(--member-box-text);
    font-weight: 500;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.95;
}

.linkedin-link { color: #0A66C2; }
.github-link { color: #111; }
.portfolio-link { color: var(--link); }

.social-links a i { margin-right: 6px; }

/* Projects Section */
.projects {
    padding: 100px 0;
}

.projects h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
}

.project {
    margin-bottom: 80px;
}

.project-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.project-row .project-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.project-row .project-content {
    flex: 1;
}

.project-bullets {
    margin-top: 12px;
    padding-left: 18px;
    color: var(--text-secondary);
}

.nav-links li.theme-item {
    display: flex;
    align-items: center;
}

.project-row .project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.project h3 {
    font-size: 32px;
    margin-bottom: 15px;
    display: inline-block;
}

.project-links {
    margin-bottom: 20px;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    color: var(--link);
    font-weight: 600;
}

.project-links a i {
    margin-right: 4px;
}

.project-row .project-description {
    margin: 0;
    max-width: none;
}

.github-link {
    display: inline-flex;
    align-items: center;
    color: var(--link);
}

.github-link i {
    margin-right: 8px;
}

.project-image {
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: var(--box-shadow);
}

.project-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

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

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.contact h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--primary-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group .required {
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--primary-bg);
    color: var(--text-primary);
    transition: var(--transition);
}

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

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

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
}

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

.footer-column a {
    color: #ccc;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .tagline {
        font-size: 18px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 36px;
    }
    .hero-image {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .about h2,
    .team h2,
    .projects h2,
    .contact h2 {
        font-size: 32px;
    }

    .project-row {
        flex-direction: column;
    }

    .project-row .project-image {
        max-width: 100%;
        flex: none;
    }

    .project-row .project-content {
        padding-top: 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-column {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .project h3 {
        font-size: 26px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Modal (Coming Soon) */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal[aria-hidden="false"] {
    display: flex;
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.modal-box {
    position: relative;
    width: 520px;
    max-width: calc(100% - 40px);
    background: #0e1112;
    color: #e6f7ea;
    border-radius: 12px;
    padding: 34px 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 32px rgba(34,197,94,0.08) inset;
    border: 1px solid rgba(34,197,94,0.25);
    text-align: center;
    z-index: 2;
}
.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: none;
    background: transparent;
    color: #cfeee0;
    font-size: 22px;
    cursor: pointer;
}
.modal-icon {
    font-size: 34px;
    margin-bottom: 8px;
    color: #7ef089;
}
.modal-title {
    font-size: 28px;
    margin: 6px 0 8px;
}
.modal-subtopic {
    color: #9fe8b3;
    font-weight: 600;
    margin-bottom: 12px;
}
.modal-text {
    color: #bcd8c4;
    margin-bottom: 18px;
}
.modal-action {
    background: linear-gradient(90deg,#7ef089,#47d06a);
    color: #07120a;
    padding: 10px 22px;
    border-radius: 26px;
    border: none;
    font-weight: 700;
}
