:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --navbar-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.brand-text {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.navbar.scrolled .brand-text {
    color: var(--dark-color);
    text-shadow: none;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    margin-right: 0.5rem;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.65);
}

.navbar.scrolled .brand-logo {
    border-color: rgba(99, 102, 241, 0.25);
}

.navbar.scrolled .navbar-brand {
    background: transparent;
    backdrop-filter: none;
}

/* Toggler visibility on gradient vs white */
.navbar-toggler { border-color: rgba(255,255,255,0.6); }
.navbar-toggler-icon { filter: invert(1); }
.navbar.scrolled .navbar-toggler { border-color: rgba(30,41,59,0.6); }
.navbar.scrolled .navbar-toggler-icon { filter: invert(0); }

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fbbf24 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.navbar.scrolled .nav-link {
    color: var(--dark-color) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary-custom {
    background: var(--gradient);
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - var(--navbar-height));
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: calc(var(--navbar-height) + 100px) 0 80px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 span {
    background: linear-gradient(90deg, #fff, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-image {
    position: relative;
    z-index: 2;
}

/* Slight downward offset for hero image on desktop */
@media (min-width: 992px) {
    .hero-image { 
        margin-top: 24px;
        position: relative;
    }
    
    .hero-image::before {
        content: '';
        position: absolute;
        width: 120%;
        height: 120%;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 30px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-6deg);
        z-index: -1;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item-hero {
    text-align: left;
}

.stat-item-hero h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(90deg, #fff, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item-hero p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

/* Floating badges around hero image */
.floating-badge {
    position: absolute;
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    z-index: 10;
    animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge i {
    font-size: 1.2rem;
}

.badge-1 {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.badge-2 {
    top: 30%;
    right: -8%;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 25%;
    left: -3%;
    animation-delay: 2s;
}

.badge-4 {
    bottom: 10%;
    right: -5%;
    animation-delay: 1.5s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 991px) {
    .floating-badge {
        display: none;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.btn-light-custom {
    background: white;
    color: var(--primary-color);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-light-custom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.btn-outline-light-custom {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.btn-outline-light-custom:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    border-color: white;
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* About Section */
.about-section {
    background: var(--light-color);
}

.about-image {
    position: relative;
    display: inline-block;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    text-align: center;
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 0.25rem;
}

.about-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-content .lead {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    margin-bottom: 2.5rem;
}

.about-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.about-features .feature-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.about-features .feature-item span {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.stat-item {
    text-align: left;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    margin: 0;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Services Section */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Why Choose Us Section */
.why-choose-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.why-choose-section .section-title h2,
.why-choose-section .section-title p {
    color: white;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-box h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-box p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    background: var(--dark-color);
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.95;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 1rem;
}

/* Testimonial Section */
.testimonial-section {
    background: var(--light-color);
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 1rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-text {
    font-style: italic;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-section .section-title h2,
.contact-section .section-title p {
    color: white;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.contact-form .form-control {
    border: 2px solid #e2e8f0;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    :root { --navbar-height: 64px; }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-brand { font-size: 1.5rem; }
    .brand-logo { width: 32px; height: 32px; }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .about-badge {
        bottom: 10px;
        right: 10px;
        padding: 0.75rem 1rem;
    }
    
    .badge-number {
        font-size: 2rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }
    
    .about-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
