/* Color variables for Light and Dark themes */
:root {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #dddddd;
    --primary-color: #2193b0;
    --secondary-color: #6dd5ed;
    --nav-bg: linear-gradient(45deg, #2193b0, #6dd5ed);
    --hero-bg: linear-gradient(rgba(33, 147, 176, 0.9), rgba(109, 213, 237, 0.9));
    --button-text: #2193b0;
    --button-bg: #ffffff;
    --input-bg: #ffffff;
    --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    --logo-border: #ffffff;
    --footer-bg: #2193b0;
    --footer-text: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #f5f5f5;
    --text-secondary: #aaaaaa;
    --border-color: #333333;
    --primary-color: #4da3b8;
    --secondary-color: #2193b0;
    --nav-bg: linear-gradient(45deg, #1e1e1e, #2d2d2d);
    --hero-bg: linear-gradient(rgba(20, 20, 20, 0.92), rgba(35, 35, 35, 0.92));
    --button-text: #121212;
    --button-bg: #f5f5f5;
    --input-bg: #2d2d2d;
    --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    --logo-border: #4da3b8;
    --footer-bg: #1a1a2e;
    --footer-text: #cccccc;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

/* Navigation Bar */
.nav-bar {
    background: var(--nav-bg);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--logo-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: border-color 0.3s;
}

.site-title {
    margin: 0;
    color: white;
    font-size: 1.8rem;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e0f7fa;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    z-index: 1001;
    transition: background-color 0.3s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero-header {
    background: var(--hero-bg), url('https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 4rem 1rem;
    text-align: center;
    color: white;
    transition: background 0.3s;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

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

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.card-title {
    color: var(--primary-color);
    margin-top: 0;
    transition: color 0.3s;
}

.card-text {
    line-height: 1.6;
    color: var(--text-primary);
    text-align: justify;
    transition: color 0.3s;
}

/* Grids */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Team Cards (About page) */
.team-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s, box-shadow 0.3s;
}

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

.team-info {
    padding: 1.5rem;
}

.team-info-title {
    color: var(--primary-color);
    margin-top: 0;
    transition: color 0.3s;
}

.team-info-text {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s;
}

.skills-list {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

/* Contact Page Specific */
.contact-form-container, .contact-info-container {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.form-textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.submit-button:hover {
    background-color: #1a748c;
}

.contact-info-list {
    margin-bottom: 1.5rem;
}

.contact-info-item {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    text-decoration: underline;
    color: #1a748c;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
    margin-top: 3rem;
    transition: background-color 0.3s, color 0.3s;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    margin: 0;
}

/* Home Page Full Viewport Layout */
body.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.home-page .hero-header {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

body.home-page .site-footer {
    margin-top: 0;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 5rem 1.5rem 2rem;
        background: var(--nav-bg);
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.nav-open {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }
}
