@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1A3636;
    --primary-light: #405D72;
    --accent: #D9A05B;
    --accent-hover: #C58940;
    --text-main: #2C3E50;
    --text-light: #64748B;
    --bg-main: #F8FAFC;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(26, 54, 54, 0.15);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

header.sticky,
header:hover {
    padding: 15px 8%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 75px;
    object-fit: contain;
    transition: var(--transition-fast);
}

header.sticky .logo,
header:hover .logo {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

header.sticky .logo img,
header:hover .logo img {
    height: 65px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 0;
    transition: var(--transition-fast);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header.sticky nav ul li a,
header:hover nav ul li a {
    color: var(--primary);
    text-shadow: none;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-smooth);
    border-radius: 2px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);

    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(217, 160, 91, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(-15deg);
    z-index: 0;
}

.hero-content {
    position: relative;
    padding-left: 8%;
    max-width: 55%;
    z-index: 2;
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-content h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    text-shadow: 0 10px 30px rgba(26, 54, 54, 0.1);
}

.hero-content h1 span {
    color: var(--accent);
    display: inline-block;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 15s ease;
}

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

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Left white gradient + Top black gradient overlay */
    background: linear-gradient(to right, rgba(248, 250, 252, 0.4) 0%, rgba(248, 250, 252, 0) 10%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 35%);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Toggle / Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

/* Base styles for potential sections */
section {
    padding: 120px 8%;
}

h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }

    /* Force the glassy safe-header before the menu crashes into the white layout */
    header {
        background: var(--glass-bg) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-md);
        padding: 15px 8% !important;
    }

    nav ul li a {
        color: var(--primary) !important;
        text-shadow: none !important;
    }

    .logo {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .logo img {
        height: 65px !important;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) !important;
    }

    .login-card {
        background: rgba(253, 253, 253, 0.55);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 991px) {
    header {
        padding: 15px 5%;
    }

    header.sticky,
    header:hover {
        padding: 10px 5%;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent);
    }

    nav {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-smooth);
        z-index: 999;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    nav ul li a {
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--primary) !important;
        text-shadow: none !important;
    }

    nav ul li a::after {
        height: 3px;
    }

    .hero {
        align-items: flex-start;
        padding-top: 150px;
    }

    .hero-content {
        padding-left: 5%;
        max-width: 90%;
        text-align: center;
        margin: 0 auto;
        transform: translateY(20px);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-image {
        width: 100%;
        height: 60vh;
        top: auto;
        bottom: 0;
        clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    }

    .hero-image::after {
        background: linear-gradient(to bottom, var(--bg-main) 0%, rgba(248, 250, 252, 0) 30%);
    }

    section {
        padding: 80px 5%;
    }

    h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .logo img {
        height: 65px;
    }

    header.sticky .logo img {
        height: 55px;
    }
}

/* Login Page Specific Styles */
.login-section {
    display: flex;
    align-items: center;
}

.login-container {
    position: relative;
    padding-left: 12%;
    width: 55%;
    z-index: 2;
    transform: translateY(20px);
}

.login-card {
    background: #FDFDFD;
    border-radius: 12px;
    padding: 40px 50px;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 700;
    font-family: 'Georgia', serif;
}

.login-title::after {
    display: none;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 160, 91, 0.2);
}

.btn-login {
    width: 100%;
    background-color: #BE9764;
    /* Matching the mockup button color */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background-color var(--transition-fast);
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--accent-hover);
}

.forgot-pwd {
    text-align: center;
    margin-top: 20px;
}

.forgot-pwd a {
    color: #4A5568;
    text-decoration: underline;
    font-size: 0.95rem;
    font-weight: 400;
    text-underline-offset: 4px;
}

.forgot-pwd a:hover {
    color: var(--text-main);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.3s ease;
    max-width: 90%;
    min-width: 300px;
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content p {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 10px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--primary);
}

@media (max-width: 991px) {
    .login-container {
        padding-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .login-card {
        margin: 0 20px;
        width: 100%;
        background: rgba(253, 253, 253, 0.95);
    }
}