/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fafafa;
    color: #656565;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

/* Offset main content by the exact header height so headings aren't hidden */
main#main-content {
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Header Styles - Fixed position with smooth shrinking */
header {
    background: transparent;
    box-shadow: none;
    position: static;
    top: auto;
    z-index: 1;
    padding: 20px 0;
    transform: none;
    transition: none;
}

/* Auto-hide header on scroll for all sizes */
header.hide-on-scroll { position: static; top: auto; left: auto; right: auto; transform: none; transition: none; pointer-events: auto; }

/* Shrink header when scrolled - vertical only */
header.scrolled {
    padding: 10px 0; /* revert to stable padding to prevent jitter */
    background: rgba(255, 255, 255, 0.85);
    opacity: 0.98;
}

header.scrolled .logo img { height: 120px; transition: none; }

header.scrolled .slogan {
    opacity: 0.0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

header.scrolled .company-name {
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    transform-origin: top center;
    will-change: transform;
    transition: transform 0.25s ease;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 120px;
    transform: translateY(0) scale(1);
    opacity: 1;
    transition: none;
}

header.scrolled .logo img {
    height: 120px; /* keep constant, we scale container instead */
    transform: translateY(0) scale(1);
    opacity: 0.95;
}

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

.slogan-container {
    text-align: center;
    padding: 5px 0;
    background: rgba(255,255,255,0.9);
}

.slogan {
    color: #656565;
    font-size: 1.1em;
    font-weight: 300;
    font-style: italic;
    margin: 0;
    transform: translateY(0);
    opacity: 1;
    transition: none;
}

.company-info {
    text-align: center;
    margin-left: 20px;
}

.company-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #C1ADF1 0%, #DD8776 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-name:hover {
    transform: scale(1.05);
}

header.scrolled .company-name {
    transform: translateY(0);
    opacity: 0.9;
}

/* GPU-friendly shrink using scale on the whole header content */
header.scrolled .header-content {
    transform: scale(0.84); /* compact but stable */
}

header.scrolled .slogan {
    display: none;
}

.no-link {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.nav-container {
    background: transparent; /* no white bar above heroes */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(193, 173, 241, 0.2);
    margin-top: 15px;
    transform: translateY(0);
    opacity: 1;
    will-change: transform;
    transition: transform 0.2s ease, margin-top 0.2s ease-out, opacity 0.2s ease-out;
}

header.scrolled .nav-container {
    margin-top: 10px; /* keep layout stable */
    transform: translateY(-10px); /* visually reclaim space without reflow */
    opacity: 0.95;
    background: rgba(255,255,255,0.95); /* restore background after scroll for readability */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* allow wrapping to a new line when needed */
    padding: 15px 0;
    transform: translateY(0);
    opacity: 1;
    transition: padding 0.2s ease-out, gap 0.2s ease-out;
}

/* prevent items from stretching; keep natural width while allowing wrap */
nav ul li {
    flex: 0 0 auto;
}

header.scrolled nav ul {
    padding: 4px 0; /* revert to previous stable value */
    gap: 10px;
    transform: translateY(0);
    opacity: 0.95;
}

nav ul li a {
    text-decoration: none;
    color: #DD8776;
    font-weight: 500;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    padding: 6px 12px;
    border-radius: 25px;
    position: relative;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #C1ADF1;
    background: rgba(193, 173, 241, 0.1);
    transform: translateY(-2px);
}

/* Home link styling - only when active */
.home-link.active {
    background: linear-gradient(135deg, #C1ADF1 0%, #DD8776 100%);
    color: white !important;
    font-weight: 600;
    border-radius: 25px;
    padding: 8px 16px !important;
    box-shadow: 0 2px 8px rgba(193, 173, 241, 0.3);
    transition: all 0.3s ease;
}

.home-link.active:hover {
    background: linear-gradient(135deg, #DD8776 0%, #C1ADF1 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 173, 241, 0.4);
}

/* Active page button styling */
nav ul li a.active {
    background: linear-gradient(135deg, #C1ADF1 0%, #DD8776 100%);
    color: white !important;
    font-weight: 600;
    border-radius: 25px;
    padding: 8px 16px !important;
    box-shadow: 0 2px 8px rgba(193, 173, 241, 0.3);
    transition: all 0.3s ease;
}

nav ul li a.active:hover {
    background: linear-gradient(135deg, #DD8776 0%, #C1ADF1 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 173, 241, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #C1ADF1 0%, #DD8776 100%);
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}


.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: transparent;
    color: #C1ADF1;
    border-color: #C1ADF1;
    box-shadow: 0 4px 15px rgba(193, 173, 241, 0.2);
}

.btn-primary:hover {
    background: #C1ADF1;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(193, 173, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #DD8776;
    border-color: #DD8776;
    box-shadow: 0 4px 15px rgba(221, 135, 118, 0.2);
}

.btn-secondary:hover {
    background: #DD8776;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(221, 135, 118, 0.4);
}


/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #C1ADF1;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #C1ADF1, #DD8776);
    border-radius: 2px;
}

/* Services Overview */
.services-overview {
    padding: 70px 0 30px;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(193, 173, 241, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(193, 173, 241, 0.2);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #C1ADF1 0%, #DD8776 50%, #C1ADF1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 3em;
    font-weight: 900;
    box-shadow: 
        0 10px 30px rgba(193, 173, 241, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon .check-icon {
    width: 56px;
    height: 56px;
    display: block;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.service-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 15px 40px rgba(193, 173, 241, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.9),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.service-icon:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.service-icon i {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: 900;
    font-size: 3.2em;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    filter: 
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.6))
        drop-shadow(0 0 24px rgba(255, 255, 255, 0.3));
    transform: rotate(-2deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Brush Script MT', cursive, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: block;
    line-height: 1;
}

.service-icon i::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 10px;
    background: white;
    border-radius: 5px;
    transform: translate(-50%, -50%) rotate(45deg) translate(-10px, 5px);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.service-icon i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 30px;
    background: white;
    border-radius: 5px;
    transform: translate(-50%, -50%) rotate(-45deg) translate(5px, -10px);
    box-shadow: 
        0 0 12px rgba(255, 255, 255, 0.7),
        0 0 24px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.service-icon:hover i {
    transform: rotate(2deg) scale(1.1);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(255, 255, 255, 0.5),
        0 3px 6px rgba(0, 0, 0, 0.1);
}

.service-icon:hover i::before {
    transform: translate(-50%, -50%) rotate(45deg) translate(-10px, 5px) scale(1.15);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 3px 6px rgba(0, 0, 0, 0.15);
}

.service-icon:hover i::after {
    transform: translate(-50%, -50%) rotate(-45deg) translate(5px, -10px) scale(1.15);
    box-shadow: 
        0 0 18px rgba(255, 255, 255, 0.8),
        0 0 36px rgba(255, 255, 255, 0.5),
        0 3px 6px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: #C1ADF1;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.service-card p {
    color: #656565;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card ul li {
    padding: 8px 0;
    color: #656565;
    position: relative;
    padding-left: 25px;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #DD8776;
    font-weight: bold;
}

/* Featured Work */
.featured-work {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.work-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.work-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(193, 173, 241, 0.9));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
}

.work-overlay p {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Why Choose Us */
.why-choose-us {
    padding: 45px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
}

.feature img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature:hover img {
    transform: scale(1.1);
}

.feature h3 {
    color: #C1ADF1;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.feature p {
    color: #656565;
    line-height: 1.6;
}

/* Call to Action */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #C1ADF1 0%, #DD8776 100%);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
}

.cta p {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: transparent;
    color: white;
    border-color: white;
    font-size: 1.1em;
    padding: 18px 40px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta .btn-primary:hover {
    background: white;
    color: #DD8776;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Footer */
footer {
    background: #f8f9fa;
    color: #656565;
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: none; /* Hide the main footer content */
}

.footer-section h3 {
    color: #C1ADF1;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    color: #ccc;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-section ul li:hover {
    color: #DD8776;
}

.footer-section i {
    color: #DD8776;
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 10px 20px;
    margin: 0;
    border-top: none;
    color: #656565;
    font-size: 0.8em;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5em;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo img {
        height: 80px;
    }
    
    .company-name {
        font-size: 1.4em;
    }
    
    nav ul {
        gap: 10px;
        padding: 10px 0;
    }
    
    nav ul li a {
        font-size: 0.75em;
        padding: 4px 8px;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 2.2em;
    }
    
    .hero p {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5em;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .company-name {
        font-size: 1.2em;
    }
    
    nav ul {
        gap: 8px;
    }
    
    nav ul li a {
        font-size: 0.7em;
        padding: 3px 6px;
    }
}