/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-gold: #D4AF37;
    --dark-gold: #B8941F;
    --light-gold: #F4E4C1;
    --deep-navy: #0A1929;
    --rich-black: #000000;
    --soft-white: #F8F9FA;
    --accent-copper: #B87333;
}

/* General Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--rich-black) 100%);
    color: var(--soft-white);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(10, 25, 41, 0.9));
    padding: 60px 80px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    animation: popupSlide 0.6s ease;
}

@keyframes popupSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.popup h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.popup p {
    font-size: 1.3rem;
    color: var(--soft-white);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.popup-close {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--rich-black);
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.popup-close:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

/* Header and Navigation */
header {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

nav .logo img {
    height: 60px;
    filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
}

nav .logo img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--soft-white) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 40px);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

.dropdown-menu {
    background: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    color: var(--soft-white) !important;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent);
    color: var(--primary-gold) !important;
}

/* Main Content */
main {
    min-height: 70vh;
}

.hero-section {
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.95), rgba(0, 0, 0, 0.8));
    padding: 100px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.content-section {
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    padding: 60px;
    margin: 40px 0;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-gold);
    margin-bottom: 30px;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

h2 {
    font-size: 2.5rem;
    margin-top: 50px;
}

h3 {
    font-size: 1.8rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(248, 249, 250, 0.9);
    margin-bottom: 20px;
}

ul, ol {
    margin-left: 30px;
    margin-bottom: 30px;
}

li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: rgba(248, 249, 250, 0.85);
}

/* Cards */
.service-card {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.05), rgba(10, 25, 41, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.3);
    border-color: var(--primary-gold);
}

/* Tables */
table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    background: rgba(10, 25, 41, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
}

th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: var(--rich-black);
}

td {
    padding: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

tr:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Forms */
form {
    background: rgba(10, 25, 41, 0.6);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin: 30px 0;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-gold);
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: var(--soft-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--rich-black);
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

/* Footer */
footer {
    background: rgba(10, 25, 41, 0.95);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease;
}

/* Bootstrap Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--rich-black);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-gold), var(--primary-gold));
    color: var(--rich-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline-primary {
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-gold);
    color: var(--rich-black);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

/* Bootstrap Form Controls */
.form-control, .form-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--soft-white);
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    color: var(--soft-white);
}

.form-control::placeholder {
    color: rgba(248, 249, 250, 0.5);
}

.form-label {
    color: var(--primary-gold);
    font-weight: 500;
    margin-bottom: 8px;
}

/* Responsive Design - Mobile First */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    h4 {
        font-size: 1.2rem;
    }
    
    .popup {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .popup h2 {
        font-size: 2rem;
    }
    
    .popup p {
        font-size: 1rem;
    }
    
    .popup-close {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
    }
    
    nav .logo img {
        height: 40px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .service-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .service-card .display-3,
    .service-card .display-4 {
        font-size: 2.5rem !important;
    }
    
    form {
        padding: 25px 20px;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 12px 8px;
    }
    
    footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer p,
    footer li {
        font-size: 0.9rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .popup {
        padding: 40px 30px;
        max-width: 500px;
    }
    
    .hero-section {
        padding: 70px 0;
    }
    
    .content-section {
        padding: 40px 30px;
    }
    
    .service-card {
        padding: 30px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .popup {
        padding: 50px 40px;
        max-width: 600px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .content-section {
        padding: 50px 40px;
    }
    
    nav .logo img {
        height: 50px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .popup {
        padding: 60px 60px;
    }
    
    .content-section {
        padding: 55px 50px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .popup {
        padding: 20px 40px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .popup h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .popup p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .popup-overlay,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-section {
        background: white;
        border: 1px solid #ccc;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* High DPI / Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    nav .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support (if browser prefers dark mode) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but can add overrides if needed */
}

/* Reduced Motion Support (accessibility) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* Navbar Toggler Styling */
.navbar-toggler {
    border-color: rgba(212, 175, 55, 0.5);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 175, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes for Responsive Spacing */
@media (max-width: 767.98px) {
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}
