@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Reichman University Inspired Dark Theme */
    --reichman-blue: #1a3a6e;
    --reichman-blue-light: #2a5298;
    --bg-dark: #0a1628;
    --bg-card: #122240;
    --bg-card-hover: #1a3055;
    --primary: #3b7dd8;
    --accent: #5fa8e8;
    --accent-light: #8ac4f8;
    --text-main: #f0f4f8;
    --text-muted: #a8b8c8;
    --border-color: rgba(95, 168, 232, 0.15);
    --header-bg: rgba(10, 22, 40, 0.95);
    --header-height: 80px;
    --logo-filter: brightness(0) invert(1);
    --placeholder-bg: #1a3055;
    --gradient-start: #1a3a6e;
    --gradient-end: #3b7dd8;
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f7ff;
    --primary: #1a3a6e;
    --accent: #2a5298;
    --accent-light: #3b7dd8;
    --text-main: #0a1628;
    --text-muted: #4a5a6a;
    --border-color: rgba(26, 58, 110, 0.15);
    --header-bg: rgba(255, 255, 255, 0.95);
    --logo-filter: none;
    --placeholder-bg: #e8f0f8;
    --gradient-start: #1a3a6e;
    --gradient-end: #3b7dd8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.3s ease;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 100%;
    display: block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 12px auto 0;
}

.subsection-title {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

section {
    padding: 70px 0;
}

/* Header */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo a {
    text-decoration: none;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(59, 125, 216, 0.5));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent);
}

#theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(20deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #030810 0%, #0a1628 50%, #122240 100%);
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(59, 125, 216, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
    padding: 0 24px;
    margin: 0 auto;
}

.hero-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hero-logo-icon {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(59, 125, 216, 0.6));
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(59, 125, 216, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-tagline {
    font-size: 1.3rem;
    color: #c8d8e8;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 18px 56px;
    background: linear-gradient(135deg, #1a3a6e 0%, #3b7dd8 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 8px 30px rgba(59, 125, 216, 0.4);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 125, 216, 0.55);
    background: linear-gradient(135deg, #2a4a7e 0%, #4b8de8 100%);
}

/* About Section */
#about {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* About Highlights */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.highlight-item i {
    font-size: 1.8rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.highlight-item h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Research Domains */
#research {
    background: var(--bg-card);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--bg-dark);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(59, 125, 216, 0.15);
    background: var(--bg-card-hover);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 18px;
    background: rgba(59, 125, 216, 0.1);
    border-radius: 50%;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Team Section */
#team {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

#team .container {
    text-align: center;
}

.team-grid {
    display: grid;
    gap: 25px;
    justify-items: center;
}

/* Leadership uses flex for flexible centering */
.leadership-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 3rem;
}

/* Students use flex for flexible centering */
.students-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.team-member {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 125, 216, 0.2);
    border-color: var(--accent);
}

.team-member:hover::before {
    opacity: 1;
}

/* Leadership cards - larger */
.leadership-grid .team-member {
    width: 280px;
    min-width: 250px;
}

/* Student cards - compact */
.students-grid .team-member {
    width: 160px;
    min-width: 140px;
    padding: 1.5rem 1rem 1.2rem;
}

.member-img-placeholder {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--placeholder-bg), var(--bg-dark));
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 3px solid var(--accent);
    font-size: 1.8rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 125, 216, 0.2);
}

.member-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.student-img {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--placeholder-bg), var(--bg-dark));
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    overflow: hidden;
    font-size: 1.2rem;
}

.student-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member h4 {
    color: var(--text-main);
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.team-member .role {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Compact text for student cards */
.students-grid .team-member h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.students-grid .team-member .role {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 0.5rem;
}

.member-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.member-links a:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

/* Contact Footer */
footer {
    background: linear-gradient(180deg, #0a1628 0%, #030810 100%);
    padding: 100px 0 50px;
    border-top: 1px solid rgba(59, 125, 216, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    text-align: center;
}

.contact-header {
    text-align: center;
}

.contact-header .section-title {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

.contact-header p {
    color: #c8d8e8;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 140px;
    background: linear-gradient(145deg, #122240, #0a1628);
    border: 1px solid rgba(95, 168, 232, 0.25);
    border-radius: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    gap: 14px;
}

.action-btn i {
    font-size: 2.4rem;
    color: #5fa8e8;
    transition: color 0.3s;
}

.action-btn span {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e8f0;
}

.action-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(59, 125, 216, 0.2);
}

.email-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
}

.email-btn:hover i {
    color: white;
}

.waze-btn:hover {
    background: linear-gradient(135deg, #33ccff, #00a8e8);
    border-color: #33ccff;
}

.waze-btn:hover i {
    color: white;
}

.linkedin-btn:hover {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    border-color: #0077b5;
}

.linkedin-btn:hover i {
    color: white;
}

.location-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b8c8d8;
    font-size: 1.05rem;
}

.contact-item i {
    color: #5fa8e8;
    font-size: 1.1rem;
}

.uni-branding {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(95, 168, 232, 0.15);
}

.uni-branding img {
    height: 50px;
    filter: var(--logo-filter);
    opacity: 0.9;
}

.uni-branding p {
    color: #8898a8;
    font-size: 0.9rem;
    margin-top: 14px;
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .students-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 20px;
        flex-direction: column;
        gap: 12px;
    }

    header {
        height: auto;
    }

    .logo-icon {
        height: 35px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 20px;
    }

    nav a {
        font-size: 0.9rem;
    }

    #theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .hero {
        padding-top: 140px;
        /* More space for double-row header */
    }

    .hero-title {
        font-size: 2.8rem;
        /* Adjusted for mobile */
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .hero-logo-icon {
        max-width: 140px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .subsection-title {
        font-size: 1.4rem;
    }

    section {
        padding: 60px 0;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-item {
        padding: 1.2rem;
    }

    .leadership-grid {
        gap: 20px;
    }

    .leadership-grid .team-member {
        width: 100%;
        max-width: 280px;
    }

    .students-grid {
        gap: 12px;
    }

    .students-grid .team-member {
        width: calc(50% - 10px);
        min-width: 130px;
    }

    .quick-actions {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .action-btn {
        width: 100%;
        max-width: 280px;
        height: 80px;
        flex-direction: row;
        /* Horizontal layout for mobile buttons */
        padding: 0 30px;
        justify-content: flex-start;
        gap: 20px;
    }

    .action-btn i {
        font-size: 1.8rem;
    }
}