/* Custom CSS for Ranaarr Management */

/* 1. Global & Typography */
:root {
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gold: #FFD700; /* Use gold as a professional accent color */
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

/* NAVBAR LOGO FONT (Script style) */
.logo-font {
    font-family: 'Dancing Script', cursive; /* Applied stylish script font to the Navbar */
    
    /* Kept wide spacing */
    letter-spacing: 5px; 
    
    text-transform: capitalize;
    
    /* Reduced font size to reduce navbar height (Was 5.5em) */
    font-size: 3.5em; 
    
    font-weight: 900; 
}

/* NEW: Stylish Font for Hero Headline (Cinzel) */
.hero-title-font {
    font-family: 'Cinzel', serif; 
    letter-spacing: 12px; /* Increased dramatically for the magazine/luxury look */
    font-weight: 900; /* Made it very bold */
    text-shadow: 0 0 10px rgba(225, 210, 4, 0.5); /* Added subtle shadow for depth against the background */
}

.text-gold {
    color: var(--gold) !important;
}

/* 2. Navigation Styling */
.navbar-brand {
    color: var(--white) !important; 
}

/* ------------------------------------------------------- */
/* BACKGROUND IMAGE & HEIGHT ADJUSTMENT FOR NAVBAR */
/* ------------------------------------------------------- */
#mainNav {
    /* Link to your pattern image (Ensure file is named nav-bg.jpg) */
    background-image: url('../images/nav-bg.jpg'); 
    
    /* Ensure the pattern covers the bar nicely */
    background-size: cover; 
    background-position: center;
    
    /* Optional: Darkens the image slightly so white text remains readable */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5);
    
    /* Adds a luxury gold line at the bottom */
    border-bottom: 1px solid var(--gold);

    /* Manually set smaller padding to decrease bar height */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
/* ------------------------------------------------------- */

.nav-link {
    /* CHANGE: Set the default text color to gold for better visibility */
    color: var(--white) !important;
    
    text-transform: uppercase;
    font-weight: 750;
    margin-left: 15px;
    transition: color 1s;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.nav-link:hover, .nav-link.active {
    color: var(--gold) !important; 
}

/* 3. Hero Section Styling */
.hero-section {
    position: relative;
    padding: 100px 0;
    /* Hero Background Image Path */
    background-image: url('../images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

/* Dark Overlay to enforce B&W high contrast */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); 
    z-index: 0;
}

/* Adjust size for dramatic effect */
.hero-section h1 {
    font-size: 6.5rem; 
    line-height: 1;
}

/* 4. Portfolio Styling */
.portfolio-item {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 0.5rem 1rem rgba(255, 215, 0, 0.5) !important; 
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    height: 200px; /* Match the image height */
    overflow: hidden;
}

/* Slideshow Images */
.slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Hide all images by default */
    transition: opacity 0.5s ease-in-out; /* Smooth fade transition */
}

.slideshow-img.active {
    opacity: 1; /* Only show the active image */
}

/* Remove image hover effects as they conflict with the slideshow */
.portfolio-item:hover img {
    transform: none;
    transition: none;
}
/* ------------------------------------ */

/* 5. Contact Form Styling (UPDATED FOR ELEGANCE) */
#contact input, #contact textarea {
    background-color: #333; 
    border: 1px solid #555;
    color: var(--white);
    /* Apply elegant font to the text/placeholders */
    font-family: 'Cinzel', serif; 
    letter-spacing: 1px;
}

#contact input::placeholder, #contact textarea::placeholder {
    color: #bbb;
    /* Ensure placeholder text also uses the elegant font */
    font-family: 'Cinzel', serif; 
    letter-spacing: 1px;
}

/* Gold Button Style */
.btn-gold {
    background-color: var(--gold);
    color: var(--black);
    font-weight: bold;
    border: none;
    transition: background-color 0.3s;
}

.btn-gold:hover {
    background-color: #e6c200;
    color: var(--black);
}

/* 6. Logo Styling (SIZING AND CONTRAST FIXES) */
#logo-img {
    /* Decreased Logo Height to make navbar smaller */
    height: 70px;
    
    width: auto; 
    filter: drop-shadow(0 0 2px  rgba(45, 244, 5, 0.7));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    /* ADDED: Reduce padding on small screens to fit content better */
    .hero-section {
        padding: 80px 0; 
    }
    
    /* ADDED: Make logo smaller again on mobile so it fits */
    #logo-img {
        height: 50px;
    }
    .logo-font {
        font-size: 1.8em;
    }
}

/* 7. Celebration Keyframes Animation (ENHANCED FOR BURST EFFECT) */
@keyframes celebration-burst {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0); 
    }
    30% { 
        transform: scale(1.15) rotate(1deg); /* Quick Pop Out */
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); /* Gold Glow */
    }
    60% { 
        transform: scale(1.05) rotate(-1deg); /* Settle Down */
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* Apply celebration animation on click */
.hero-section .btn:active {
    animation: celebration-burst 0.4s ease-out; /* Use the new burst animation */
}

/* ------------------------------------ */
/* ** FINAL FIXES & CUSTOM ALIGNMENT ** */
/* ------------------------------------ */

/* FIX: Ensure About Us paragraphs are justified for cleaner visual lines */
#about p {
    text-align: justify !important; /* Force justification */
    text-justify: inter-word; /* Improves word spacing */
}
@media (min-width: 768px) {
    #about p {
        text-align: justify !important;
    }
}

/* ------------------------------------------- */
/* ** NEW: FULL SCREEN SECTION FIX ** */
/* ------------------------------------------- */

/* This targets About, Services, Portfolio, and Contact */
section {
    /* 1. Forces every section to be at least the height of the screen */
    min-height: 100vh; 
    
    /* 2. Centers the content vertically within that full screen */
    display: flex;
    align-items: center;
    
    /* 3. Ensures the sticky navbar doesn't cover the top of the section when clicking links */
    scroll-margin-top: 70px; 
}   