/* Variables */
:root {
    --primary-color: #4B0082; /* Royal Purple */
    --primary-dark: #2D004D;
    --accent-color: #FFD700; /* Vibrant Yellow */
    --accent-hover: #E6C200;
    --bg-light: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --text-white: #FFFFFF;
    --card-bg: #FFFFFF;
    --bg-light-alt: #F9F5FF; /* Subtle light purple-tinted background */
    --section-padding: 120px 0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --box-shadow: 0 10px 30px rgba(75, 0, 130, 0.08);
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section {
    padding: var(--section-padding);
}

.bg-light-alt {
    background-color: #F8F9FA;
}

[data-theme="dark"] .bg-light-alt {
    background-color: var(--bg-light-alt);
}

.text-accent {
    color: var(--accent-color);
}

.ls-2 {
    letter-spacing: 2px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(75, 0, 130, 0.2);
}

.btn-outline-light {
    border-radius: 50px;
    font-weight: 600;
    border-width: 2px;
}

/* Navbar */
.navbar {
    padding: 25px 0;
    transition: all 0.5s ease;
    background: transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.8rem;
    color: white !important;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.navbar.scrolled .nav-link {
    color: var(--text-main) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar.scrolled .btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    padding-top: 80px;
}

.hero-section .text-muted {
    color: rgba(255,255,255,0.7) !important;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-graphic-placeholder {
    position: relative;
    z-index: 2;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: -50px;
    right: -50px;
    opacity: 0.2;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #ff00ff;
    bottom: -50px;
    left: -50px;
    opacity: 0.1;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: white;
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* About Section */
.about-image-wrapper {
    position: relative;
}

/* Enguaging Elements */
.experience-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.4);
    z-index: 3;
    animation: float-slow 4s ease-in-out infinite alternate;
}

/* Custom Cursor (Optional but cool) */
body {
    cursor: default;
}

a, button {
    cursor: pointer;
}

/* Parallax Background Dots */
.bg-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Hover Grow for Icons */
.icon-box {
    transition: all 0.4s ease;
}

.info-item:hover .icon-box {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary-color);
    color: white;
}

/* Button Hover Ripple Effect (Conceptual) */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 300%;
    height: 300%;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(75, 0, 130, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

/* Floating Animations */
@keyframes float-slow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-visual img {
    animation: float-slow 6s ease-in-out infinite;
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(75, 0, 130, 0.2);
}

/* Service Card Enhancements */
.service-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid rgba(75, 0, 130, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    z-index: -1;
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(75, 0, 130, 0.15);
    color: white !important;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-icon,
.service-card:hover .text-muted,
.service-card:hover .btn-link {
    color: white !important;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-icon {
    transition: all 0.5s ease;
}

/* Section Title Enguagement */
.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.text-center .section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding: 20px 0 20px 60px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    left: 13px;
    top: 25px;
    z-index: 2;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
}

/* Footer */
.social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(75, 0, 130, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

/* Theme Toggle Button */
#theme-toggle {
    color: var(--text-main);
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
}

#theme-toggle:hover {
    background: rgba(75, 0, 130, 0.1);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(75, 0, 130, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: glow-pulse 10s infinite alternate;
}

@keyframes glow-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 10000;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 0 10px rgba(75, 0, 130, 0.3);
}

/* Ventures & Projects Slider */
.ventures-slider-wrapper {
    padding: 20px 0;
}

.ventures-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 40px 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ventures-slider::-webkit-scrollbar {
    display: none;
}

.venture-slide {
    flex: 0 0 450px;
    scroll-snap-align: start;
    transition: var(--transition);
}

@media (max-width: 991px) {
    .venture-slide {
        flex: 0 0 350px;
    }
}

@media (max-width: 767px) {
    .venture-slide {
        flex: 0 0 100%;
    }
}

.venture-card-v2 {
    height: 100%;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.1);
}

.venture-slide.primary-venture .venture-card-v2 {
    min-height: 520px;
    border: 2px solid rgba(75, 0, 130, 0.1);
}

.venture-slide.secondary-venture .venture-card-v2 {
    min-height: 440px;
    opacity: 0.95;
}

.venture-slide.secondary-venture .venture-card-v2:hover {
    opacity: 1;
}

.venture-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
    transition: var(--transition);
}

.venture-card-v2:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(75, 0, 130, 0.25);
}

.venture-card-v2:hover::before {
    background: linear-gradient(to bottom, rgba(75, 0, 130, 0.2) 0%, rgba(15, 5, 29, 0.95) 100%);
}

.card-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.card-badge.secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(75, 0, 130, 0.1);
}

.card-content-v2 {
    position: relative;
    z-index: 2;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.venture-card-v2:hover .card-content-v2 {
    transform: translateY(0);
}

.venture-icon-v2 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.venture-card-v2:hover .venture-icon-v2 {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: scale(1.1) rotate(5deg);
}

.venture-card-v2 h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.venture-card-v2 p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

/* Slider Nav */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.slider-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-slide { left: -30px; }
.next-slide { right: -30px; }

@media (max-width: 1200px) {
    .prev-slide { left: 0; }
    .next-slide { right: 0; }
}

/* Specific Card Backgrounds */
.nx-card { background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?q=80&w=2070&auto=format&fit=crop'); }
.ngo-card { background-image: url('https://images.unsplash.com/photo-1559027615-cd267397d34b?q=80&w=2070&auto=format&fit=crop'); }
.nf-card { background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=2070&auto=format&fit=crop'); }
.ks-card { background-image: url('https://images.unsplash.com/photo-1556911220-e15b29be8c8f?q=80&w=2070&auto=format&fit=crop'); }
.jq-card { background-image: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?q=80&w=2070&auto=format&fit=crop'); }

/* Timeline Refinement */
.timeline-content h4 {
    margin-bottom: 10px;
}

/* Impact Section Refinement */
.stat-item {
    padding: 30px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: scale(1.05);
}

/* CTA Section Refinement */
.cta-section h2 span {
    display: inline-block;
    position: relative;
}

.cta-section h2 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent-color);
    z-index: -1;
    opacity: 0.3;
}

/* Sophisticated Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Exit animation: slightly move up and fade out when leaving */
.reveal.animate-out {
    opacity: 0;
    transform: translateY(-40px);
    transition: all 0.8s ease-in;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.reveal-left.animate-out {
    opacity: 0;
    transform: translateY(-40px);
    transition: all 0.8s ease-in;
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.animate-out {
    opacity: 0;
    transform: translateY(-40px);
    transition: all 0.8s ease-in;
}

/* Staggered Delay for Grid Items */
.col-lg-4:nth-child(1) .reveal { transition-delay: 0.1s; }
.col-lg-4:nth-child(2) .reveal { transition-delay: 0.2s; }
.col-lg-4:nth-child(3) .reveal { transition-delay: 0.3s; }

/* Floating Particles (Hero Background) */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

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

/* Typography refinements */
h1 {
    line-height: 1.1;
    letter-spacing: -2px;
}

.display-2 {
    font-size: clamp(3rem, 8vw, 5.5rem);
}

/* Dark mode tweaks */
[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 5, 20, 0.98);
}

[data-theme="dark"] .service-card {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar-brand {
    color: white !important;
}

[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .section-title h2 {
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .section {
        padding: 60px 0;
    }
    .display-2 {
        font-size: 3rem;
    }
    .about-image-wrapper {
        margin-bottom: 50px;
    }
    .experience-card {
        right: 0;
        bottom: -20px;
        padding: 20px;
    }
}
