/* Index page specific styles */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Hero section background override */
.hero {
    background-image: url('../assets/testbg.jpg');
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.3), 
        rgba(0, 0, 0, 0.1), 
        rgba(0, 0, 0, 0.3));
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* AGNIPAKSHA title with slim inward fading white outline */
.hero h1 {
    text-shadow: 
        /* Outer white outline */
        0 0 2px rgba(255, 255, 255, 0.9),
        0 0 4px rgba(255, 255, 255, 0.7),
        0 0 6px rgba(255, 255, 255, 0.5),
        0 0 8px rgba(255, 255, 255, 0.3),
        0 0 10px rgba(255, 255, 255, 0.2),
        /* Inner glow for depth */
        inset 0 0 3px rgba(255, 255, 255, 0.6),
        /* Subtle shadow for contrast */
        0 2px 4px rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    paint-order: stroke fill;
    position: relative;
    z-index: 1;
    animation: titleFloat 6s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Tagline spacing */
.tagline {
    margin-bottom: 1%;
    margin-top: -1%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Slogan color */
.slogan {
    color: #cccccc;
    margin-top: -1px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero .cta-button {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.9s both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

/* Highlights Section */
.highlights {
    padding: 80px 5%;
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 50%, #ffffff 100%);
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

/* Animated wave background */
.highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, transparent 100%);
    animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(20px) scaleY(0.95); }
}

.highlight {
    background-color: #f5f5f5;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.highlight.animate-in {
    animation: slideInUp 0.8s ease-out forwards;
}

.highlight:nth-child(1).animate-in { animation-delay: 0.1s; }
.highlight:nth-child(2).animate-in { animation-delay: 0.2s; }
.highlight:nth-child(3).animate-in { animation-delay: 0.3s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Liquid hover effect */
.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 0, 0, 0.03), 
        transparent);
    transition: left 0.6s ease;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    transition: all 0.5s ease;
    z-index: 0;
}

.highlight h2,
.highlight p,
.highlight .cta-link {
    position: relative;
    z-index: 1;
}

.highlight:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #000000;
}

.highlight:hover::before {
    left: 100%;
}

.highlight:hover::after {
    width: 100px;
    height: 100px;
}

.highlight h2 {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
}

.highlight p {
    color: #1a1a1a;
    line-height: 1.8;
    font-size: 1em;
    flex: 1;
    margin-bottom: 20px;
}

.highlight .cta-link {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    align-self: flex-start;
}

.highlight .cta-link:hover {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    padding: 8px 18px;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.highlight .cta-link:hover::after {
    width: 300px;
    height: 300px;
}

/* News Section */
.news {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 50%, #f9f9f9 100%);
    background-size: 200% 200%;
    animation: gradientFlow 20s ease infinite;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.news h2 {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 50px;
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.news h2.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.news-card.animate-in {
    animation: cardPop 0.8s ease-out forwards;
}

.news-card:nth-child(1).animate-in { animation-delay: 0.2s; }
.news-card:nth-child(2).animate-in { animation-delay: 0.4s; }
.news-card:nth-child(3).animate-in { animation-delay: 0.6s; }

@keyframes cardPop {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.news-card:hover {
    transform: translateY(-12px) rotate(-1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    border-color: #000000;
}

.news-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    background-color: #000000;
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    background-color: #000000;
    filter: grayscale(0%);
}

.news-image-link:hover .news-image {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.95;
    filter: grayscale(0%) brightness(1.1);
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4em;
    color: #000000;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.news-date {
    font-size: 0.85em;
    color: #666666;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.news-content p {
    color: #1a1a1a;
    line-height: 1.7;
    margin: 0 0 20px 0;
    flex: 1;
}

.news-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.4s ease;
}

.news-link:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

.news-link:hover::after {
    width: 100%;
}

/* Contact CTA Section */
.contact-cta {
    padding: 100px 5%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 25%, #e8e8e8 50%, #f5f5f5 75%, #ffffff 100%);
    background-size: 300% 300%;
    animation: gradientPulse 12s ease infinite;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

@keyframes gradientPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-cta h2 {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 20px;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

.contact-cta h2.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-cta p {
    font-size: 1.15em;
    color: #333333;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

.contact-cta p.animate-in {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.contact-cta .cta-button {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

.contact-cta .cta-button.animate-in {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.contact-cta .cta-button:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .highlights {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .highlight {
        padding: 25px;
    }
    
    .highlight h2 {
        font-size: 1.5em;
    }
    
    .news h2,
    .contact-cta h2 {
        font-size: 2em;
    }
    
    .news-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .news-image {
        height: 200px;
    }
    
    .contact-cta {
        padding: 60px 5%;
    }
}

@media (max-width: 480px) {
    .highlights {
        padding: 50px 5%;
    }
    
    .highlight {
        padding: 20px;
    }
    
    .highlight h2 {
        font-size: 1.3em;
    }
    
    .highlight p {
        font-size: 0.95em;
    }
    
    .news h2,
    .contact-cta h2 {
        font-size: 1.6em;
    }
    
    .news {
        padding: 50px 5%;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 1.2em;
    }
    
    .news-image {
        height: 180px;
    }
    
    .contact-cta {
        padding: 50px 5%;
    }
    
    .contact-cta p {
        font-size: 1em;
    }
}
