:root {
    --primary-color: #171268;
    --secondary-color: #2E2A9E;
    --accent-color: #4F46E5;
    --cta-hover: #6366F1;
    --bg-light: #F8FAFC;
    --dark-section: #0F172A;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --white: #FFFFFF;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --gradient-primary: linear-gradient(135deg, #171268 0%, #2E2A9E 45%, #4F46E5 100%);
    --gradient-soft: linear-gradient(135deg, rgba(23, 18, 104, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}
.loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
}
.tile-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 120px;
}
.tile {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    animation: tileAnimation 1.5s infinite ease-in-out;
}
.tile:nth-child(1) { background: #171268; animation-delay: 0.1s; }
.tile:nth-child(2) { background: #2E2A9E; animation-delay: 0.2s; }
.tile:nth-child(3) { background: #4F46E5; animation-delay: 0.3s; }
.tile:nth-child(4) { background: #6366F1; animation-delay: 0.4s; }
.tile:nth-child(5) { background: #818CF8; animation-delay: 0.5s; }
.tile:nth-child(6) { background: #A5B4FC; animation-delay: 0.6s; }
.tile:nth-child(7) { background: #C7D2FE; animation-delay: 0.7s; }
.tile:nth-child(8) { background: #E0E7FF; animation-delay: 0.8s; }
.tile:nth-child(9) { background: #EEF2FF; animation-delay: 0.9s; }

@keyframes tileAnimation {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0); opacity: 0; }
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

/* Navbar */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-brand {
    letter-spacing: 1px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}
.navbar-brand img {
    max-width: 100%;
    height: 50px;
    object-fit: contain;
    transition: all 0.4s ease;
}
.navbar.scrolled .navbar-brand img {
    height: 40px;
}



.navbar-brand:hover {
    transform: scale(1.05);
}


.nav-link {
    font-weight: 600;
    color: var(--text-primary) !important;
    margin: 0 18px;
    position: relative;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.nav-link:hover {
    opacity: 1;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 20px;
}

/* Buttons */
.btn-premium {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4F46E5 0%, #2E2A9E 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}
.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
    color: white;
}
.btn-premium:hover::before {
    opacity: 1;
}


.btn-outline-premium {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-premium:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 100px 0;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.floating-element {
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}


/* Hero Section */
.hero-section {
    padding: 180px 0 120px;
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(23, 18, 104, 0.05) 0%, transparent 50%);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
footer {
    background: var(--dark-section);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}
footer h5 {
    color: white;
    margin-bottom: 25px;
}
footer ul {
    padding: 0;
    list-style: none;
}
footer ul li {
    margin-bottom: 12px;
}
footer ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}
footer ul li a:hover {
    color: var(--accent-color);
}

/* Projects Slider */
.projects-slider-section {
    position: relative;
    padding: 100px 0 140px;
}

#projectsCarousel .carousel-indicators {
    bottom: -50px;
}

#projectsCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    opacity: 0.3;
    transition: all 0.3s ease;
    border: none;
    margin: 0 6px;
}

#projectsCarousel .carousel-indicators .active {
    background-color: var(--accent-color);
    opacity: 1;
    transform: scale(1.3);
}

#projectsCarousel .carousel-control-prev-icon,
#projectsCarousel .carousel-control-next-icon {
    background-color: var(--primary-color) !important;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#projectsCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#projectsCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--accent-color) !important;
    transform: scale(1.1);
}

.project-img-wrapper img {
    border: 8px solid #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    max-width: 90%;
    margin: 0 auto;
}

