/*
|--------------------------------------------------------------------------
| PEM STUDIO - MASTER STYLESHEET (MODERNIZED REVISION)
|--------------------------------------------------------------------------
| Includes modernized typography, increased whitespace, and updated component styles
| for a cleaner, high-end look.
*/

/* --- VARIABLES & RESET (Update these lines) --- */
:root {
    --color-white: #FFFFFF;
    --color-accent-purple: #4527A0; /* NEW: Darker Indigo for CTAs and accents */
    --color-accent-blue: #2196F3; 
    --color-light-gray: #F0F2F5; 

    /* NEW: Professional Tech-Graphics Gradient */
    --color-rainbow-gradient: linear-gradient(
        90deg, 
        #1A237E 0%, /* Deep Navy Blue (Tech/Developer) */
        #512DA8 50%, /* Middle Royal Purple */
        #4527A0 100% /* Deep Indigo (Creative/Graphics) */
    );

    --header-height: 80px; 
}

/* ... rest of the CSS ... */

/* Also update the Mobile Nav background to the new gradient for consistency */
.mobile-nav {
    /* ... other properties ... */
    background: var(--color-rainbow-gradient); 
    /* ... rest of the properties ... */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Body and Font Stack Update for Modern Look */
body {
    /* Changed font stack for a cleaner, modern look (using system fonts for sharpness) */
    font-family: 'Playfair Display', serif;
    line-height: 1.7; /* INCREASED line-height for better readability (modern aesthetic) */
    background-color: var(--color-white);
    color: #444; /* Softened text color for a modern, less harsh feel */
    font-size: 16px;
}

/* Headers stay Playfair Display for elegance */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: #111;
}

a {
    text-decoration: none;
    color: var(--color-accent-blue);
    transition: color 0.3s ease;
}

/* --- STICKY HEADER (RAINBOW) --- */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-rainbow-gradient); 
    z-index: 1000; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
}

.header-content {
    max-width: 1100px; /* SLIGHTLY NARROWER content width for modern focus */
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling - Applied to both Header and Footer */
.logo-link, .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 900;
    color: var(--color-white); 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    transition: text-shadow 0.3s ease;
}

.logo-link:hover, .footer-logo:hover {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Desktop Navigation */
.desktop-nav a {
    margin-left: 25px;
    font-weight: 500;
    color: var(--color-white);
    padding: 5px 0;
}
.desktop-nav a:hover {
    color: var(--color-light-gray); 
}

/* Mobile Toggle */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--color-white);
    padding: 10px;
    z-index: 1100;
}

/* Mobile Navigation */
.mobile-nav {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: (--color-rainbow-gradient); /* Switched to dark overlay for better contrast */
    padding-top: var(--header-height);
    z-index: 999;
    text-align: center;
}
.mobile-nav a {
    display: block;
    padding: 18px 0; /* Slightly larger targets */
    font-size: 1.6em; /* Slightly larger font */
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-nav a:last-child {
    border-bottom: none;
}
.mobile-nav.is-open {
    display: block;
}

/* --- CALL TO ACTION BUTTONS (CTAs) - MODERNIZED --- */
.cta-button, .cta-button-primary, .cta-button-secondary {
    display: inline-block;
    padding: 14px 30px; /* INCREASED padding */
    border-radius: 50px; /* PILL-SHAPE for modern aesthetic */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px; /* INCREASED letter spacing */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle box shadow added */
}

/* Primary Button (Purple) */
.cta-button-primary {
    background-color: var(--color-accent-purple);
    color: var(--color-white);
    border: 2px solid var(--color-accent-purple);
}
.cta-button-primary:hover {
    background-color: #5831a2; 
    color: var(--color-white);
    box-shadow: 0 6px 15px rgba(103, 58, 183, 0.4); /* COLOR SHADOW ON HOVER */
}
.cta-button-primary:active { 
    transform: scale(0.98);
    background-color: var(--color-accent-blue); 
}

/* Secondary Button (Dark/Outline) */
.cta-button { /* In Header Nav */
    background-color: var(--color-accent-blue);
    color: var(--color-white);
}
.cta-button-secondary { /* Used in Services Highlight */
    background-color: transparent;
    color: #111; 
    border: 2px solid #111; 
}
.cta-button-secondary:hover {
    background-color: #111;
    color: var(--color-white);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Shadow on hover */
}


/* --- LAYOUTS & CONTAINERS (MODERNIZED) --- */
main {
    padding-top: 0; 
}

section {
    padding: 100px 20px; /* INCREASED padding for vertical whitespace */
    max-width: 1100px; /* SLIGHTLY NARROWER content width for focus */
    margin: 0 auto;
}

.section-title {
    font-size: 2.8em; /* INCREASED size */
    text-align: center;
    margin-bottom: 60px; /* INCREASED margin for whitespace */
    font-weight: 700;
    letter-spacing: -0.5px; /* Subtle NEGATIVE LETTER SPACING for premium look */
}

/* --- HERO SECTION STYLING (Dual Column with CSS Background & Overlay) --- */
.hero-section {
    padding: 100px 20px;
    position: relative; 
    color: var(--color-white); 

    /* 1. CSS BACKGROUND IMAGE SETUP */
    background: url('Pemspecial.jpg') no-repeat center center; 
    background-size: cover;
}

/* Create the Overlay layer using a pseudo-element */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for better contrast */
    z-index: 1; 
}

/* Ensure content and image sit above the overlay */
/* --- HERO SECTION STYLING (Add shadow to wrapper) --- */
.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative; 
    z-index: 2;

    /* NEW: FLOATING EFFECT */
    padding: 30px; /* Crucial: Creates space between content and shadow edge */
    background-color: rgba(255, 255, 255, 0.1); /* Very subtle light background to lift it */
    border-radius: 8px;
    /* Soft, diffused shadow for a floating effect */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); 
}

/* Also ensure the content wrapper collapses cleanly on mobile */
@media (max-width: 768px) {
    .hero-content-wrapper {
        padding: 20px; /* Reduce padding on mobile */
        /* You might want to remove the subtle background on mobile if it looks too cluttered */
        /* background-color: transparent; */ 
    }
}

.hero-text h1 {
    font-size: 4em; /* Larger hero text */
    font-weight: 900; 
    color: var(--color-white);
}

.hero-text h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Use body font for subheader */
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--color-white); 
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); 
}




/* --- HORIZONTAL SCROLL GALLERY (MODERNIZED SHADOW) --- */
.horizontal-scroll-container {
    display: flex;
    overflow-x: scroll; 
    padding-bottom: 20px; 
    gap: 20px; 
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.horizontal-scroll-container::-webkit-scrollbar {
    display: none; 
}

.gallery-item {
    flex-shrink: 0; 
    width: 300px; 
    height: 200px; 
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Softer, wider shadow */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover, .gallery-item:focus {
    transform: translateY(-5px) scale(1.02); /* Lift and subtle grow */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


/* --- SERVICES HIGHLIGHT (3-Column Grid) (MODERNIZED SHADOW) --- */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.service-card {
    padding: 30px;
    background-color: var(--color-light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Subtle lift */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Deeper shadow on hover */
}


.section-cta {
    margin-top: 50px;
    text-align: center;
}

/* --- FINAL CONTACT CTA BLOCK --- */
.contact-cta-block {
    text-align: center;
    background-color: var(--color-light-gray); 
}
.contact-cta-block .subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #444;
}

/* --- FOOTER STYLING (RAINBOW) --- */
.main-footer {
    background: var(--color-rainbow-gradient); 
    color: var(--color-white);
    padding: 60px 20px 40px;
}

.footer-grid {
    max-width: 1100px; /* Aligned with main content width */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px;
}

.footer-links li, .contact-details li {
    list-style: none;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.footer-links a, .contact-details a {
    color: var(--color-light-gray);
}
.footer-links a:hover, .contact-details a:hover {
    color: var(--color-white); 
}

/* --- Social Icon Styling (For Footer - CUSTOM CIRCLE LOOK) --- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px; 
}

.social-icon-link {
    display: flex; 
    justify-content: center;
    align-items: center;
    
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    
    background-color: var(--color-white); 
    color: #333; 
    font-size: 1.1em; 
    
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    transform: scale(1.1); 
    background-color: var(--color-accent-blue); 
    color: var(--color-white); 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Ensure icons stack nicely on wider screens where the footer columns are left-aligned */
@media (min-width: 769px) {
    .footer-col.social-col {
        text-align: left; 
    }
    .social-icons {
        justify-content: flex-start;
    }
}

/* --- New CSS for Image-Only Footer Logo --- */
.footer-logo-image-link {
    display: block; 
    margin-bottom: 10px;
}

.footer-logo-icon-only {
    height: 50px; 
    width: auto;
    vertical-align: middle; 
}

/* Ensure centering on mobile */
@media (max-width: 768px) {
    .footer-col.branding-col {
        text-align: center;
    }
    .footer-logo-image-link {
        margin: 0 auto 10px auto; 
        display: inline-block; 
    }
}

/* Remove text-based footer logo styling as it's no longer used */
.footer-logo {
    display: none; 
}

/* --- ABOUT PAGE STYLING --- */
.page-banner {
    text-align: center;
    padding: 60px 20px;
}
.page-banner h1 {
    font-size: 3em;
}

.bio-section {
    padding: 80px 20px;
}
.bio-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.bio-image-col {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.full-bio-portrait {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.bio-text-col {
    flex: 2;
}

@media (max-width: 768px) {
    .bio-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .bio-image-col {
        order: 1;
        margin-bottom: 30px;
    }
    .bio-text-col {
        order: 2;
    }
}

/* --- SERVICES PAGE STYLING --- */
.service-packages {
    text-align: center;
}
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.package-card {
    padding: 30px;
    border: 1px solid var(--color-light-gray);
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Modernized shadow on hover */
}

.package-card h3 {
    color: var(--color-accent-purple);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.package-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.package-card ul li {
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #444;
}

.package-card ul li i {
    color: var(--color-accent-blue);
    margin-right: 8px;
}

/* Featured package to make it stand out */
.featured-package {
    background-color: var(--color-light-gray);
    border: 2px solid var(--color-accent-purple);
}

/* --- GALLERY PAGE STYLING --- */
.full-gallery {
    padding-top: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Modernized subtle shadow */
    transition: transform 0.3s ease;
    display: block; 
}

.gallery-card:hover, .gallery-card:focus {
    transform: scale(1.03); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Modernized shadow on hover */
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Overlay for text/download icon */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(103, 58, 183, 0.85); 
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; 
    transition: opacity 0.3s ease;
    pointer-events: none; 
}

.gallery-card:hover .overlay {
    opacity: 1; 
    pointer-events: auto; 
}

.overlay p {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.overlay i {
    font-size: 2em;
}

.gallery-note {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: var(--color-light-gray);
    border-radius: 8px;
    color: #555;
}

/* --- CONTACT PAGE STYLING --- */
.request-form-section {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
}

.service-selector {
    margin-bottom: 40px;
}

#design-select {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid var(--color-accent-purple);
    border-radius: 4px;
    text-align: center;
}

.dev-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
}

/* Forms Styling */
.design-form {
    background-color: var(--color-light-gray);
    padding: 40px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.design-form h3 {
    text-align: center;
    color: var(--color-accent-purple);
    margin-bottom: 30px;
}

.design-form label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

.design-form input[type="text"],
.design-form input[type="email"],
.design-form input[type="tel"],
.design-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.design-form textarea {
    resize: vertical;
}

.design-form button {
    margin-top: 30px;
    width: 100%;
    padding: 15px;
}

/* Class to hide forms via JS */
.hidden {
    display: none;
}

/* --- Special Content Box Styling --- */
.special-content-box {
    padding: 30px;
    background-color: var(--color-light-gray); 
    border-radius: 8px;
    margin-bottom: 25px; 
    border-left: 5px solid var(--color-accent-purple); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.special-content-box h2, .special-content-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* --- Rainbow Section Divider Styling --- */
.rainbow-divider {
    width: 100%; 
    height: 8px; 
    background: var(--color-rainbow-gradient); 
    margin: 60px 0; 
    border: none;
}

/* Ensures the divider spans full width even if sections are limited */
main > .rainbow-divider {
    max-width: none; 
    padding: 0;
}

/* **NEW: Specific mobile adjustment for section dividers** */
@media (max-width: 768px) {
    .rainbow-divider {
        margin: 40px 0; 
    }
}

/* --- MOBILE RESPONSIVENESS (Media Query) --- */
@media (max-width: 768px) {
    /* Header/Navigation */
    .desktop-nav {
        display: none; 
    }
    .menu-toggle {
        display: block; 
    }

    /* Hero Section (Stacking) */
    .hero-content-wrapper {
        flex-direction: column; 
        text-align: center;
    }
    .hero-image {
        order: 2; 
        text-align: center;
        margin-top: 40px; /* Crucial separation for stacked content */
    }
    .hero-text {
        order: 1;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5em;
    }
    .hero-text h2 {
        font-size: 1.2em;
    }

    /* Services Grid (Stacking) */
    .service-cards-grid {
        grid-template-columns: 1fr; 
    }

    /* Footer (Stacking and Centering) */
    .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .branding-col, .links-col, .contact-col, .social-col {
        margin-bottom: 30px;
    }
}


/* --- THANK YOU PAGE STYLING (MODERN & DARK MODE READY) --- */

/* Ensures the thank you content is vertically and horizontally centered */
.thank-you-section {
    padding: 100px 20px; /* Generous padding for vertical whitespace */
    text-align: center;
    min-height: calc(100vh - var(--header-height) - 100px); /* Ensures it fills the screen minus header/footer */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
}

.thank-you-content {
    max-width: 650px; /* Slightly wider content area */
    margin: 0 auto;
    padding: 40px;
    background-color: var(--color-bg-secondary); /* Use secondary background color (light or dark gray) */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Soft, professional shadow */
}

/* Icon Styling (Prominent Checkmark) */
.success-icon {
    font-size: 5em;
    /* Use the accent color for a punch of success visual */
    color: var(--color-accent-blue); 
    margin-bottom: 25px;
    display: block; /* Ensures it takes full width for centering */
}

.thank-you-content h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-text-primary); /* Primary text color (switches with mode) */
    margin-bottom: 15px;
}

.thank-you-content h2 {
    font-family: 'Playfair Display', serif; 
    font-size: 1.4em;
    font-weight: 400;
    color: var(--color-text-secondary); /* Secondary text color (switches with mode) */
    margin-bottom: 30px;
}

.thank-you-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

/* Grouping the Call-to-Action buttons */
.thank-you-cta-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Mobile Adjustments */
@media (max-width: 500px) {
    .thank-you-content {
        padding: 25px;
    }
    .thank-you-content h1 {
        font-size: 2em;
    }
    .thank-you-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .cta-button-primary, .cta-button-secondary {
        width: 100%; /* Full width buttons on small screen */
    }
}
