/* Modern, Professional, Advanced CSS for D Photographers */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-red: #e60000;
    --dark-red: #cc0000;
    --black: #111111;
    --dark-grey: #222222;
    --white: #ffffff;
    --light-grey: #f4f4f4;
    --transition: all 0.3s ease;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-red);
}

.btn-primary-custom {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

/* Topbar */
.topbar {
    background-color: var(--black);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.topbar a {
    color: var(--white);
}

.topbar a:hover {
    color: var(--primary-red);
}

.topbar .social-icons a {
    margin-left: 10px;
    font-size: 16px;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--black) !important;
}

.navbar-brand span {
    color: var(--primary-red);
}

.nav-link {
    color: var(--black) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?q=80&w=2069&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.5s;
    animation-fill-mode: both;
}

/* Portfolio Gallery styling */
.portfolio-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 5px;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 0, 0, 0.8);
    /* Red overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    text-align: center;
    cursor: pointer;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.float-icon:hover {
    transform: scale(1.1);
    color: var(--white);
}

.float-whatsapp {
    background-color: #25d366;
}

.float-call {
    background-color: var(--primary-red);
}

.float-book {
    background-color: var(--black);
    animation: pulse-red 2s infinite;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
}

footer h5 {
    color: var(--primary-red);
    margin-bottom: 20px;
}

footer a {
    color: #bbb;
}

footer a:hover {
    color: var(--primary-red);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Animations */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(230, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 0, 0, 0);
    }
}

.quick-book-float {
    animation: pulse-red 2s infinite;
    transition: transform 0.3s ease;
}

.quick-book-float:hover {
    transform: translateY(-5px);
}

/* Button & Link Hover Transitions */
.btn,
.nav-link,
a {
    transition: all 0.3s ease-in-out;
}

/* Fix Mobile Navbar Collapse Jump */
.navbar-collapse {
    transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

@media (max-width: 991px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .topbar {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary-custom,
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    /* Additional spacing fixes for mobile readability */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .row {
        gap: 20px 0;
    }

    /* Ensure padding for mobile floating button so content isn't hidden */
    body {
        padding-bottom: 80px;
    }
}