/* ===== ULTIMATE WEBSITE - Landing Popup & Additional Styles ===== */

/* Landing Page Popup */
.landing-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease;
}

.landing-popup-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 3% auto;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: slideDown 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.landing-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s;
}

.landing-close:hover {
    transform: rotate(90deg) scale(1.2);
}

.popup-inner {
    padding: 25px 20px 20px;
    color: white;
}

.popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.popup-badge i {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.popup-inner h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.15;
}

.highlight-text {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.popup-subtitle {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.popup-benefits {
    margin: 15px 0;
}

.popup-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: all 0.3s;
}

.popup-benefit:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.popup-benefit i {
    font-size: 1.1rem;
    color: #00ff88;
}

.popup-benefit span {
    font-size: 0.85rem;
    font-weight: 500;
}

.popup-form {
    margin-top: 15px;
}

.popup-form input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.popup-form select {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.popup-form select:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.2);
}

.popup-form select option {
    color: #111;
}

.popup-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.popup-form input:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.2);
}

.popup-cta-btn {
    width: 100%;
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    margin-top: 5px;
}

.popup-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.popup-cta-btn i {
    transition: transform 0.3s;
}

.popup-cta-btn:hover i {
    transform: translateX(5px);
}

.popup-trust {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Override background for scrapbook sections */
.services-section {
    background: var(--cream-bg, #f5f3ed) !important;
}

.portfolio-section {
    background: white;
}

.case-studies-section {
    background: var(--cream-bg, #f5f3ed) !important;
}

.about-section {
    background: white;
}

/* Service Cards - Mixed Style */
.service-card {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 3px 6px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.service-card[onclick] {
    cursor: pointer;
}

.service-card[onclick]:hover {
    transform: translateY(-8px) rotate(0deg) !important;
    box-shadow: 0 10px 30px rgba(128, 100, 162, 0.3);
    border: 2px solid #8064A2;
}

/* Process Step Hover Effects */
.process-step[onclick] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.process-step[onclick]:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.process-step[onclick]:hover .step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.service-card .service-icon {
    font-size: 3rem;
    color: #8064A2;
    margin-bottom: 20px;
}

.service-tagline {
    color: #8064A2;
    font-weight: 600;
    font-size: 1rem;
    margin: 10px 0;
}

/* Section Headers - Unified Style */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 1.8rem;
    color: #9B7653;
    font-weight: 300;
}

.section-header p {
    font-size: 1.2rem;
    color: #6c757d;
}

/* Purple Text */
.purple-text {
    color: #8064A2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Floating Social Media Icons */
.floating-social-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(128, 100, 162, 0.2), rgba(102, 126, 234, 0.2));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8064A2;
    font-size: 1.5rem;
    animation: floatRandom 20s infinite ease-in-out, pulse 3s infinite ease-in-out;
    box-shadow: 0 5px 20px rgba(128, 100, 162, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(128, 100, 162, 0.3);
    transition: all 0.3s ease;
}

.floating-icon i {
    animation: rotateIcon 3s infinite ease-in-out;
}

/* Individual icon positions and delays */
.icon-1 { top: 10%; left: 10%; animation-delay: 0s; animation-duration: 15s; }
.icon-2 { top: 20%; right: 15%; animation-delay: 2s; animation-duration: 18s; }
.icon-3 { top: 60%; left: 8%; animation-delay: 4s; animation-duration: 16s; }
.icon-4 { bottom: 20%; right: 10%; animation-delay: 1s; animation-duration: 20s; }
.icon-5 { top: 40%; right: 5%; animation-delay: 3s; animation-duration: 17s; }
.icon-6 { bottom: 30%; left: 12%; animation-delay: 5s; animation-duration: 19s; }
.icon-7 { top: 15%; left: 35%; animation-delay: 1.5s; animation-duration: 14s; }
.icon-8 { bottom: 15%; left: 30%; animation-delay: 2.5s; animation-duration: 21s; }
.icon-9 { top: 50%; right: 25%; animation-delay: 3.5s; animation-duration: 16s; }
.icon-10 { top: 70%; right: 20%; animation-delay: 4.5s; animation-duration: 18s; }

/* Float animation */
@keyframes floatRandom {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, 40px) rotate(180deg) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translate(40px, 20px) rotate(270deg) scale(1.05);
        opacity: 0.9;
    }
}

/* Icon rotation */
@keyframes rotateIcon {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(360deg) scale(1.2);
    }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(128, 100, 162, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1), 0 0 0 0 rgba(128, 100, 162, 0.5);
    }
    50% {
        box-shadow: 0 5px 25px rgba(128, 100, 162, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.2), 0 0 0 10px rgba(128, 100, 162, 0);
    }
}

/* Hover effect for social icons */
.floating-icon:hover {
    background: rgba(128, 100, 162, 0.3);
    transform: scale(1.3) !important;
    pointer-events: auto;
    cursor: pointer;
}

/* Constrain hero section */
.hero {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

.hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Enhanced hero content z-index */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Fix hero title typography */
.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.title-line {
    display: block !important;
    margin-bottom: 0.3rem !important;
}

/* Add glow effect to hero title */
.hero-title .gradient-text {
    text-shadow: 0 0 30px rgba(128, 100, 162, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Hero description spacing */
.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem) !important;
    line-height: 1.7 !important;
    margin-bottom: 2rem !important;
    max-width: 600px !important;
    color: #4b5563 !important;
}

/* Hero CTA buttons */
.hero-cta-group {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 2.5rem !important;
    flex-wrap: wrap !important;
}

.cta-btn {
    padding: 16px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.cta-btn.primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5) !important;
}

.cta-btn.secondary {
    background: white !important;
    color: #667eea !important;
    border: 2px solid #667eea !important;
}

.cta-btn.secondary:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-3px) !important;
}

/* Hero badge improvements */
.hero-badge {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2) !important;
}

/* Hero social proof */
.hero-social-proof {
    display: flex !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
    flex-wrap: wrap !important;
}

.social-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.social-icon {
    width: 45px !important;
    height: 45px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #667eea !important;
    font-size: 1.2rem !important;
}

.social-text strong {
    display: block !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    line-height: 1 !important;
}

.social-text span {
    display: block !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    margin-top: 2px !important;
}

/* View More Services Button */
.services-view-more {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* Services Modal */
.services-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.services-modal-content {
    position: relative;
    background: white;
    margin: 2% auto;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: slideDown 0.5s ease;
}

.services-close {
    position: absolute;
    right: 30px;
    top: 30px;
    color: #667eea;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.services-close:hover {
    color: #764ba2;
    transform: rotate(90deg) scale(1.2);
}

.services-modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #1f2937;
}

/* Services Tabs */
.services-tabs-container {
    margin-top: 30px;
}

.services-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

.service-tab-btn {
    background: transparent;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.service-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Service Details */
.services-tab-content {
    min-height: 400px;
}

.service-detail {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.service-detail.active {
    display: block;
}

/* Service Detail Layout - Button Left, Content Right */
.service-detail-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.service-cta-left {
    flex-shrink: 0;
    width: 180px;
    position: sticky;
    top: 20px;
}

.service-cta-left .cta-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.service-cta-left .cta-btn i {
    font-size: 1.5rem;
}

.service-content-right {
    flex: 1;
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.service-detail-header i {
    font-size: 3rem;
    color: #8064A2;
}

.service-detail-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.service-detail .service-tagline {
    font-size: 1.3rem;
    color: #8064A2;
    font-weight: 600;
    margin-bottom: 25px;
}

.service-description h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.service-description ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.service-description li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #4b5563;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-description li:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.service-description li i {
    color: #10b981;
    font-size: 1.2rem;
}

.service-cta {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-social-icons {
        display: none; /* Hide on mobile for better performance */
    }
    
    .floating-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Mobile hero typography */
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 1rem !important;
    }
    
    .title-line {
        margin-bottom: 0.2rem !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-cta-group {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .cta-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 24px !important;
    }
    
    .hero-social-proof {
        gap: 1.5rem !important;
        justify-content: space-between !important;
    }
    
    .social-item {
        flex: 1 1 auto !important;
        min-width: 120px !important;
    }
    
    .social-text strong {
        font-size: 1.25rem !important;
    }
    
    .social-text span {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .landing-popup-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .popup-inner {
        padding: 40px 25px 30px;
    }
    
    .popup-inner h2 {
        font-size: 1.8rem;
    }
    
    .popup-subtitle {
        font-size: 1rem;
    }
    
    .popup-cta-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    /* Services Modal Mobile */
    .services-modal-content {
        margin: 5% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .services-modal-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .services-close {
        right: 15px;
        top: 15px;
        font-size: 2rem;
    }
    
    .services-tabs {
        gap: 8px;
        padding-bottom: 10px;
    }
    
    .service-tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .service-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .service-detail-header i {
        font-size: 2rem;
    }
    
    .service-detail-header h3 {
        font-size: 1.5rem;
    }
    
    .service-detail .service-tagline {
        font-size: 1.1rem;
    }
    
    .service-description ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .service-description li {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .view-more-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    /* Mobile layout for service detail */
    .service-detail-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-cta-left {
        width: 100%;
        position: relative;
        top: auto;
    }
    
    .service-cta-left .cta-btn {
        flex-direction: row;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .service-cta-left .cta-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .popup-inner h2 {
        font-size: 1.5rem;
    }
    
    .popup-benefit {
        font-size: 0.9rem;
    }
}
