/* ========================================
   COSMIC GRAPHICS ENHANCEMENT STYLES
   ======================================== */

/* Animated Cosmic Background */
body {
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(186, 148, 79, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(100, 50, 150, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(50, 100, 200, 0.08) 0%, transparent 70%);
    z-index: -3;
    animation: cosmicPulse 15s ease-in-out infinite;
}

@keyframes cosmicPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Enhanced Header Portrait with 3D Effect */
.header-image-wrapper {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.header-portrait {
    position: relative;
    filter: brightness(1.1) contrast(1.1);
    box-shadow: 
        0 0 40px rgba(186, 148, 79, 0.4),
        0 0 80px rgba(186, 148, 79, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(186, 148, 79, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-portrait::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
        rgba(186, 148, 79, 0.5), 
        rgba(255, 215, 0, 0.3),
        rgba(186, 148, 79, 0.5)
    );
    border-radius: inherit;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.header-portrait:hover::before {
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    0% { filter: blur(10px) hue-rotate(0deg); }
    100% { filter: blur(10px) hue-rotate(360deg); }
}

/* Sponsored Section with Neon Effect */
.sponsored-section {
    position: relative;
    padding: 3rem 2rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(186, 148, 79, 0.05) 50%,
        transparent 100%
    );
}

.sponsored-title {
    position: relative;
    display: inline-block;
    font-size: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(
        90deg,
        #ba944f 0%,
        #ffd700 25%,
        #ba944f 50%,
        #ffd700 75%,
        #ba944f 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(186, 148, 79, 0.8));
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* I.T.A Large Text with Holographic Effect */
.ita-large {
    position: relative;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    background: linear-gradient(
        135deg,
        #ba944f 0%,
        #ffd700 20%,
        #ffffff 40%,
        #ffd700 60%,
        #ba944f 80%,
        #ba944f 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicShine 4s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 5px 15px rgba(186, 148, 79, 0.5));
}

@keyframes holographicShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ita-large::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg, #ba944f, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.7;
}

/* Enhanced Gallery Images with Depth */
.gallery-grid {
    position: relative;
    padding: 4rem 0;
}

.grid-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(186, 148, 79, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.7s ease;
    z-index: 1;
}

.grid-img:hover::before {
    left: 100%;
}

.grid-img:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(186, 148, 79, 0.4),
        0 0 100px rgba(186, 148, 79, 0.2);
}

/* Galactic Title with Cosmic Energy */
.galactic-section {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.galactic-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle,
        rgba(186, 148, 79, 0.2) 0%,
        transparent 70%
    );
    animation: energyPulse 3s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
}

.galactic-title {
    position: relative;
    z-index: 1;
    font-size: clamp(2.5rem, 6vw, 5rem);
    background: linear-gradient(
        to right,
        #ffd700 0%,
        #ffffff 50%,
        #ffd700 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Enhanced CTA Button */
.cta-button {
    position: relative;
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #ba944f 0%, #ffd700 100%);
    border: none;
    border-radius: 50px;
    color: #000;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 
        0 10px 30px rgba(186, 148, 79, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 50px rgba(186, 148, 79, 0.6),
        0 0 50px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Welcome Section with Atmospheric Effect */
.welcome-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.welcome-banner {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2);
}

.welcome-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(186, 148, 79, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        inset 0 0 30px rgba(186, 148, 79, 0.1);
}

.welcome-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #ffd700, #ffffff, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 2s linear infinite;
}

/* Services Section Enhancement */
.services-section {
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(186, 148, 79, 0.03) 50%,
        transparent 100%
    );
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ba944f, #ffd700, #ba944f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(186, 148, 79, 0.5));
}

/* Code Container Enhancement */
.code-container {
    position: relative;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(186, 148, 79, 0.3);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(186, 148, 79, 0.2);
}

.code-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(186, 148, 79, 0.1),
        transparent
    );
    animation: codeScan 3s linear infinite;
}

@keyframes codeScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(500px); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .ita-large {
        font-size: clamp(2rem, 8vw, 6rem);
    }
    
    .galactic-title {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Sparkle Effect */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
    pointer-events: none;
}
