/* Global Styles & Animations for Fatehpuria - Corporate Level */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #06b6d4;
    --accent: #f43f5e;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-corporate: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor will be added via JS */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    background-color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Custom Cursor */
#custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

#custom-cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, border-color 0.3s ease;
}

/* Text Selection */
::selection {
    background-color: var(--primary);
    color: white;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes revealText {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

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

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.reveal-text {
    animation: revealText 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Shapes & Blobs - Refined */
.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.12;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Button Enhancements - Corporate Level */
.btn-corporate {
    background: var(--gradient-primary);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.5);
}

.btn-corporate::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-corporate:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.6);
}

.btn-corporate:hover::after {
    left: 100%;
}

/* Card Hover Effects */
.hover-card {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.hover-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.1);
}

/* Text Gradient */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Patterns */
.bg-dot-pattern {
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
}

.bg-grid-pattern {
    background-image: linear-gradient(to right, #f1f5f9 1px, transparent 1px),
                      linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Section Header Styles */
.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
}

/* Smooth Image Loading - Simplified to ensure visibility */
img {
    transition: transform 0.3s ease;
}


/* Hero Text Animation Classes */
.hero-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-title span.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Button Base Style */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Background Animated Pattern */
.bg-grid-animate {
    background-image: linear-gradient(to right, #f1f5f9 1px, transparent 1px),
                      linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

/* Marquee Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

.marquee-content {
    display: inline-flex;
    animation: scroll 45s linear infinite;
    gap: 4rem;
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px; /* Ensure space for logos */
}

.marquee-item img {
    height: 60px;
    width: auto;
    max-width: 160px;
    display: block;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.marquee-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Tilt Effect Placeholder (Logic in JS) */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

.shape-1 { width: 100px; height: 100px; border: 20px solid var(--primary); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: float 10s infinite alternate; }
.shape-2 { width: 80px; height: 80px; background: var(--secondary); border-radius: 50%; animation: float 15s infinite alternate-reverse; }
.shape-3 { width: 120px; height: 120px; border: 2px solid var(--accent); animation: float 12s infinite linear; }


/* Image Reveal Effect */
img[data-reveal] {
    opacity: 0;
    transform: scale(1.1);
    transition: all 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

img[data-reveal].loaded {
    opacity: 1;
    transform: scale(1);
}

.reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2;
}

.reveal-overlay.loaded {
    transform: scaleX(0);
    transform-origin: right;
}

/* Background Animated Shapes */
.shape-graphic {
    position: absolute;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

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

.rotate-slow {
    animation: slowRotate 30s linear infinite;
}

/* Custom Underline Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Character Reveal Animation */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.char.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Particles (CSS Only) */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 10s infinite linear;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translate(var(--tw-translate-x), var(--tw-translate-y)); opacity: 0; }
}

/* Image Parallax Style */
.parallax-img {
    transition: transform 0.1s ease-out;
}

/* Advanced Hover for Buttons */
.btn-animate-draw {
    position: relative;
    overflow: hidden;
}

.btn-animate-draw::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid white;
    transform: scale(1.1);
    opacity: 0;
    transition: all 0.4s ease;
}

.btn-animate-draw:hover::before {
    transform: scale(1);
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #121212;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Button Glint/Shimmer Effect */
.btn-glint {
    position: relative;
    overflow: hidden;
}

.btn-glint::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.btn-glint:hover::after {
    left: 150%;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* SVG Line Drawing */
.drawing-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-out;
}

.drawing-line.visible {
    stroke-dashoffset: 0;
}

/* Card Glare Effect */
.glare-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-card:hover .glare {
    opacity: 1;
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }
    #custom-cursor, #custom-cursor-outline {
        display: none;
    }
}

/* Intro Animation Styles */
#intro-overlay {
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

#intro-overlay.hide {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

#intro-logo-container.show {
    opacity: 1;
    transform: scale(1);
}

#intro-map-container.show {
    opacity: 1;
}

#intro-text.show {
    opacity: 1;
}

#intro-map-container img {
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.05));
    animation: simpleFloat 6s ease-in-out infinite;
}

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

/* Ensure main content is hidden initially or just overlay covers it */
body.intro-active {
    overflow: hidden;
}

