/* Define a custom color palette based on the image */
:root {
    --bs-primary: #1e3a8a; /* Dark Blue */
    --bs-secondary: #f97316; /* Vibrant Orange */
    --bs-dark-bg: #111827; /* Very Dark Gray */
    --bs-light-bg: #f3f4f6; /* Light Gray */
    --bs-light-text: #e5e7eb; /* Off-white */
}
body {
    font-family: 'Inter', sans-serif;
}
.text-primary-custom { color: var(--bs-primary); }
.bg-primary-custom { background-color: var(--bs-primary); }
.text-secondary-custom { color: var(--bs-secondary); }
.bg-secondary-custom { background-color: var(--bs-secondary); }
.bg-dark-custom { background-color: var(--bs-dark-bg); }
.text-light-custom { color: var(--bs-light-text); }
.rounded-xl { border-radius: 1rem; }

/* Base hero section */
.hero-section {
    position: relative;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/dublin.webp'); /* just the image */
    background-size: cover;
    background-position: center;
    color: var(--bs-light-text);
    display: flex;
    align-items: center; /* vertical centering */
    overflow: hidden;
    text-align: center; /* default for mobile */
}

.hero-section .lead {
    opacity: 1; /* remove transparency */
    color: var(--bs-light-text);
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}


/* Large version for homepage */
.jumbotron-lg {
    min-height: 80vh;
    padding: 8rem 0;
}

.jumbotron-lg h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.jumbotron-lg p.lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.jumbotron-lg .logo-bg img {
    max-width: 180px;
}

/* Small version for subpages */
.jumbotron-sm {
    min-height: 50vh;
    padding: 3rem 0;
}

.jumbotron-sm h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.jumbotron-sm p.lead {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.jumbotron-sm .logo-bg img {
    max-width: 120px;
}

/* Base logo styles */
.logo-bg {
    border-radius: 50%;        
    display: inline-block;     
    overflow: hidden;          
    padding: 0;                
    
    /* Fade-in animation */
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.3s;
}

.logo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;         
    border-radius: 50%;        
    display: block;            
}

/* Size modifiers with responsive scaling */
.logo-bg-small {
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
}

.logo-bg-medium {
    width: clamp(120px, 20vw, 180px);
    height: clamp(120px, 20vw, 180px);
}

.logo-bg-large {
    width: clamp(180px, 25vw, 240px);
    height: clamp(180px, 25vw, 240px);
}

/* Text column animation (retained) */
.hero-section .col-md-8 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.6s;
}

/* Fade-in keyframes (retained) */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tweaks */
@media (min-width: 768px) {
    .hero-section {
        text-align: left; /* text aligns left on tablets/desktop */
    }
}

.icon-lg {
    font-size: 3rem;
    color: var(--bs-secondary);
}
.card {
    border: 1px solid var(--bs-primary);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
.contact-form .form-control, .contact-form .form-control:focus {
    border-color: var(--bs-primary);
    background-color: var(--bs-light-bg);
    color: var(--bs-primary);
}
.contact-form .form-control::placeholder {
    color: #6b7280;
}
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 1rem;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}
.btn-custom {
    background-color: var(--bs-secondary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-custom:hover {
    background-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.social-icon {
    color: var(--bs-light-text);
    transition: color 0.3s ease;
}
.social-icon:hover {
    color: var(--bs-secondary);
}
.nav-link {
    color: var(--bs-light-text) !important;
    font-weight: bold;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--bs-secondary) !important;
}
.parallax {
    /* The image used */
    background-image: url('../img/dublin.webp');

    /* Set a specific height */
    min-height: 300px; 

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.text-justify {
    text-align: justify;
}
/* Fade-in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-about,
.section-services,
.section-packages,
.section-clients,
.section-feature,
.section-featured,
.section-social,
.section-branding {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

/* Staggered animation delays for service cards */
.service-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s forwards;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }
.service-card:nth-child(4) { animation-delay: 0.8s; }

/* Hover effects for service cards */
.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Hover effect for feature & branding images */
.section-feature img,
.section-branding img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.section-feature img:hover,
.section-branding img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Optional: subtle text fade on scroll (if using JS scroll library) */
.section-about.fade-in,
.section-services.fade-in,
.section-feature.fade-in,
.section-packages.fade-in,
.section-clients.fade-in,
.section-featured.fade-in,
.section-social.fade-in,
.section-branding.fade-in {
    opacity: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card .btn {
    margin-top: auto;
}

.service-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: var(--delay);
}

.service-img-wrapper {
    height: 160px;
    max-width: 240px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.service-img-wrapper img {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}



