:root {
    --primary: #510C14;
    --primary-light: #7A4B52;
    --accent: #8B5A6B;
    --neutral-light: #EBEBEB;
    --neutral-dark: #7D7474;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 20px 60px rgba(81, 12, 20, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--neutral-light);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 20px rgba(81, 12, 20, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: var(--neutral-light) !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.dropdown-item {
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="dots" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1200" height="600" fill="url(%23dots)"/></svg>');
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
    z-index: 2;
    position: relative;
}

.hero-image-wrapper {
    animation: slideInRight 0.8s ease-out 0.2s both;
    z-index: 2;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: transform 0.8s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    background: var(--text-light);
    padding: 80px 0;
}

.badge {
    background: var(--primary) !important;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.service-card {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--text-light);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(81, 12, 20, 0.85) 0%, rgba(122, 75, 82, 0.9) 100%);
    transition: opacity 0.5s ease;
    opacity: 0;
}

.service-card:hover .service-card-overlay {
    opacity: 1;
}

.service-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--text-light);
    padding: 2rem;
    min-height: 400px;
    transition: all 0.5s ease;
}

.service-card i {
    color: var(--neutral-light);
    transition: transform 0.5s ease;
}

.service-card:hover i {
    transform: translateY(-5px);
}

/* Features Section */
.features-section {
    background: var(--text-light);
    padding: 80px 0;
}

.shape-1 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(81, 12, 20, 0.05);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.feature-box {
    background: linear-gradient(135deg, rgba(235, 235, 235, 0.5) 0%, rgba(235, 235, 235, 0.8) 100%);
    border: 1px solid rgba(81, 12, 20, 0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Logo Styling (convert to white using filter) */
.navbar-logo {
  width: 250px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box:hover {
    background: linear-gradient(135deg, var(--neutral-light) 0%, rgba(235, 235, 235, 0.6) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(81, 12, 20, 0.1);
}

.feature-icon {
    color: var(--primary);
    transition: all 0.5s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="lines" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><line x1="0" y1="0" x2="100" y2="100" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><line x1="100" y1="0" x2="0" y2="100" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="400" fill="url(%23lines)"/></svg>');
    opacity: 0.5;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 40px 0;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary) !important;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(81, 12, 20, 0.3);
    color: var(--text-light);
}

.btn-outline-light {
    color: var(--text-light);
    border-color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-light {
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
}

/* Utility Classes */
.py-120 {
    padding-top: 120px;
    padding-bottom: 120px;
}

.py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.mb-80 {
    margin-bottom: 80px;
}

.object-cover {
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    .hero-section {
        min-height: 70vh;
        padding: 40px 0;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.5;
    }

    .hero-image-wrapper {
        margin-top: 3rem;
    }

    .py-120 {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .mb-80 {
        margin-bottom: 40px;
    }
}

/* Auth Container */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    overflow: hidden;
}

.auth-left {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="200" height="200" fill="url(%23pattern)"/></svg>');
    opacity: 0.5;
}

.auth-left-content {
    position: relative;
    z-index: 2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
    color: var(--text-light);
}

.auth-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: slideInLeft 0.6s ease-out;
}

.auth-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    animation: slideInLeft 0.6s ease-out 0.1s both;
}

.feature-list {
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    font-size: 1.2rem;
}

/* Auth Right */
.auth-right {
    background: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow-y: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: slideInRight 0.6s ease-out;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.form-header p {
    color: var(--neutral-dark);
    font-size: 0.95rem;
}

/* Form Elements */
.form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--text-light);
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(81, 12, 20, 0.1);
    background: var(--text-light);
    color: var(--text-dark);
}

.input-group-text {
    background: rgba(235, 235, 235, 0.6);
    border: 1px solid var(--border-color);
    color: var(--neutral-dark);
    font-size: 1rem;
}

.input-group .form-control,
.input-group .form-select {
    border: 1px solid var(--border-color);
}

.input-group:focus-within .input-group-text {
    background: rgba(81, 12, 20, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Form Check */
.form-check-input {
    border-color: var(--border-color);
    width: 1.2em;
    height: 1.2em;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

.form-check-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-check-label a:hover {
    color: var(--primary-light);
}

/* Buttons */
.btn-primary,
.btn-agent,
.btn-partner {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    text-transform: capitalize;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(81, 12, 20, 0.3);
    color: var(--text-light);
}

.btn-agent {
    background: linear-gradient(135deg, var(--agent-color) 0%, var(--agent-light) 100%);
    color: var(--text-light);
}

.btn-agent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 80, 144, 0.3);
    color: var(--text-light);
}

.btn-partner {
    background: linear-gradient(135deg, var(--partner-color) 0%, var(--partner-light) 100%);
    color: var(--text-light);
}

.btn-partner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
    color: var(--text-light);
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-dark);
}

.btn-outline-secondary:hover {
    background-color: rgba(81, 12, 20, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Badges */
.agent-badge,
.partner-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.agent-badge {
    background: rgba(46, 80, 144, 0.1);
    color: var(--agent-color);
}

.partner-badge {
    background: rgba(22, 163, 74, 0.1);
    color: var(--partner-color);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    color: var(--neutral-dark);
    font-size: 0.85rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

.divider span {
    background: var(--text-light);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Social Login */
.social-login button {
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--text-light);
}

.social-login button:hover {
    background: rgba(81, 12, 20, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
}

.auth-footer p {
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Agent Theme */
.agent-theme .auth-left {
    background: linear-gradient(135deg, var(--agent-color) 0%, var(--agent-light) 100%);
}

.agent-left::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="200" height="200" fill="url(%23pattern)"/></svg>');
}

/* Partner Theme */
.partner-theme .auth-left {
    background: linear-gradient(135deg, var(--partner-color) 0%, var(--partner-light) 100%);
}

.partner-left::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="200" height="200" fill="url(%23pattern)"/></svg>');
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-left {
        min-height: 300px;
        padding: 3rem 2rem;
    }

    .auth-hero h1 {
        font-size: 2rem;
    }

    .auth-hero p {
        font-size: 1rem;
    }

    .auth-right {
        padding: 2rem;
    }

    .auth-form-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-left {
        min-height: 200px;
        padding: 2rem;
    }

    .auth-hero h1 {
        font-size: 1.5rem;
    }

    .auth-hero p {
        font-size: 0.9rem;
    }

    .feature-list {
        display: none;
    }

    .auth-right {
        padding: 1.5rem;
    }

    .form-header h2 {
        font-size: 1.3rem;
    }
}

.fw-600 {
    font-weight: 600;
}

.fw-500 {
    font-weight: 500;
}

.fw-bold {
    font-weight: 700;
}