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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
}

/* Header and Navigation */
header {
    background-color: #1a202c;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #93c5fd;
}

.btn-primary {
    background-color: #1e40af;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3a8a;
}

.btn-secondary {
    background-color: transparent;
    color: #1e40af;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #1e40af;
    color: #fff;
}


/* Hero Header – neutral overlay so the image stays professional */
.owner-header {
    width: 100%;
    min-height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
    padding: 3rem 1.5rem;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.72) 100%),
                url('../photos/background-image.jpeg') no-repeat center center;
    background-size: cover;
}

.owner-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-align: center;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Section Layout */
section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

section:first-of-type {
    margin-top: 0;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #0f172a;
}

/* Founder Profiles */
.owner-profile {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    border-left: 4px solid #1e40af;
    transition: box-shadow 0.25s ease;
}

.owner-profile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Alternate layout for second profile (Noam) */
.owner-profile:nth-of-type(3) {
    flex-direction: row-reverse;
    background-color: #f8fafc;
    border-left: none;
    border-right: 4px solid #1e40af;
}

.owner-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.owner-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.owner-info p {
    margin-bottom: 1rem;
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* Footer */
footer {
    background-color: #1a202c;
    color: #e2e8f0;
    text-align: center;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
}

.footer-tagline {
    font-style: italic;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* White icons on dark bg */
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Footer copyright */
footer p:last-child {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 600px) {
    .footer-links, .social-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Keep nav in a row: logo left, hamburger right (don't stack) */
    nav {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        margin-left: auto;
        flex-shrink: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .owner-header {
        padding: 2rem 1rem;
    }

    .owner-header h2 {
        font-size: 1.75rem;
    }

    .owner-profile {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        margin-top: 2rem;
        border-radius: 0.75rem;
    }

    .owner-img {
        width: 150px;
        height: 150px;
    }

    .owner-profile:nth-of-type(3) {
        flex-direction: column;
    }
}

.login-icon {
    color: #e2e8f0;
    font-size: 1.4rem;
    text-decoration: none;
    margin-left: 1.2rem;
    transition: color 0.3s ease;
}

.login-icon:hover {
    color: #3b82f6;
}


/* =========================
   Navbar Auth Button
   ========================= */
#auth-button {
    position: relative; /* for dropdown positioning */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   User Initials Circle
   ========================= */
.user-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.user-initials:hover {
    background-color: #0056b3;
}

/* =========================
   Dropdown Menu
   ========================= */
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%; /* directly below the circle */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0.5rem; /* nice rounded corners */
    min-width: 140px;
    text-align: center;
    z-index: 1000;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show dropdown when hovering over the circle or the dropdown itself */
#auth-button:hover .user-dropdown,
.user-dropdown:hover {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================
   Dropdown Links
   ========================= */
.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1a202c;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.5rem; /* rounded corners for links too */
    transition: background-color 0.2s;
}

.user-dropdown a:hover {
    background-color: #f1f5f9;
}

/* =========================
   Login Icon Style
   ========================= */
.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.4rem;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s;
}

.login-icon:hover {
    color: #3b82f6;
}