/* ==========================================================================
   #ENHANCED VISUAL EFFECTS & ANIMATIONS
   ========================================================================== */

/* Logo Styling */
.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: url('../newlogo.jpg') no-repeat center center;
    background-size: 130%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

/* Ensure the logo image is hidden since we're using it as a background */
.logo-img img {
    display: none;
}

/* Enhanced Hero Section */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Philosophy Section Button Positioning */
.philosophy-conclusion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

/* Service Process Keywords */
.service-card {
    position: relative;
    overflow: visible;
}

.service-process {
    position: absolute;
    top: 11px;
    right: 8px;
    background: linear-gradient(135deg, var(--midnight-navy), var(--deep-indigo));
    color: #c4c4c4;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.8rem;
    border-radius: 0;
    transform: rotate(12deg);
    transform-origin: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.service-card:hover .service-process {
    transform: rotate(8deg) scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.philosophy-cta-inline {
    align-self: center;
}

/* Enhanced Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 40, 71, 0.8) 0%, rgba(42, 58, 92, 0.6) 100%);
    border: 1px solid rgba(245, 199, 109, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero {
    position: relative;
    overflow: hidden;
    /* Prevent parallax image gaps and light lines */
    background-color: var(--midnight-navy);
}

/* Additional parallax fixes to prevent light lines */
.hero::before {
    /* Ensure no gaps during scroll */
    background-repeat: no-repeat;
    background-position: center center;
    /* GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 199, 109, 0.1), transparent);
    transition: left 0.8s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(245, 199, 109, 0.4);
}

.service-card i {
    font-size: 3rem;
    color: var(--dawn-gold);
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dawn-gold);
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 1rem;
}

/* Enhanced Philosophy Section */
.philosophy {
    padding: var(--spacing-xxl) 0;
    position: relative;
    background: linear-gradient(135deg, rgba(11, 17, 36, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(245, 199, 109, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 143, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Key Questions */
.key-questions {
    margin: 2rem 0;
}

.question {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(26, 40, 71, 0.3);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--dawn-gold);
    transition: var(--transition);
}

.question:hover {
    background: rgba(26, 40, 71, 0.5);
    transform: translateX(10px);
}

.question-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dawn-gold);
    min-width: 3rem;
    text-align: center;
}

.question-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.question.highlight {
    border-left-color: white;
}

.question.highlight .question-number {
    color: #2A2C36;
    text-shadow: none;
    box-shadow: none;
}

/* Enhanced Footer */
.footer-cta {
    background: var(--gradient-primary);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 0%, rgba(245, 199, 109, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Enhanced Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(26, 40, 71, 0.6);
    border: 2px solid rgba(245, 199, 109, 0.3);
    border-radius: 50%;
    color: var(--dawn-gold);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--gradient-gold);
    color: var(--midnight-navy);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: var(--dawn-gold);
}

.so.cta-button {
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.so.cta-button:hover {
    background: var(--gradient-gold);
    color: var(--midnight-navy);
    transform: translateY(-3px) scale(1.1);
    border-color: var(--dawn-gold);
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--dawn-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite linear;
}

.floating-element:nth-child(2n) {
    animation-delay: -5s;
    animation-duration: 20s;
}

.floating-element:nth-child(3n) {
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Prevent parallax jumping and light lines on all sections */
section {
    position: relative;
    transform: translateZ(0);
}

/* Optimize parallax performance */
.hero, .philosophy, .services {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Fix any potential background gaps */
body {
    background-color: var(--midnight-navy);
    min-height: 100vh;
}

/* Ensure no gaps between sections */
section {
    margin: 0;
    padding: 0;
    background-color: var(--midnight-navy);
}

.hero, .philosophy, .services, .footer-cta {
    margin: 0 !important;
    background-color: var(--midnight-navy);
}

/* Fix parallax gaps */
.hero {
    margin-bottom: -1px !important;
}

.philosophy {
    margin-top: -1px !important;
    margin-bottom: -1px !important;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .question {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .question-number {
        min-width: auto;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced Focus States for Accessibility */
.btn:focus,
.nav-links a:focus,
.social-links a:focus {
    outline: 2px solid var(--dawn-gold);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        display: none;
    }
}
