:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --accent2: #f72585;
    --accent3: #7209b7;
    --accent4: #3a0ca3;
    --light: #f8f9fa;
    --dark: #3f3f3f;
    --gradient1: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --gradient2: linear-gradient(135deg, #f72585 0%, #7209b7 100%);
    --gradient3: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    --gradient4: linear-gradient(135deg, #3a0ca3 0%, #7209b7 100%);
    --secondary-color: #b12667;
    --accent-color: #6fb34c;
    --primary-color: #3279e3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn {
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 700;
    transition: all 0.4s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient1);
    color: white;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--gradient2);
    color: white;
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(247, 37, 133, 0.5);
    color: white;
}

/* Header */
.navbar {
    padding: 4px 0;
    transition: all 0.4s cubic-bezier(.77,0,.18,1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* Scrolled State - Half Height */
.navbar.navbar-scrolled {
    padding: 8px 0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.navbar.navbar-scrolled .navbar-brand .logo-icon img {
    width: 110px;
    height: 45px;
}

.navbar-brand .logo-icon img {
    width: 150px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    transition: width 0.4s, height 0.4s;
}

.navbar-nav .nav-link {
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    color: var(--dark);
    font-size: 1rem;
    padding: 8px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: font-size 0.4s, padding 0.4s;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gradient1);
    left: 0;
    bottom: 0;
    transition: width 0.4s ease;
    border-radius: 10px;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 15px 0;
}

.dropdown-item {
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding-top: 0px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-1 {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.85) 0%, rgba(58, 12, 163, 0.85) 100%);
}

.slide-2 {
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.85) 0%, rgba(114, 9, 183, 0.85) 100%);
}

.slide-3 {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.85) 0%, rgba(67, 97, 238, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-title .typing-text {
    background: linear-gradient(135deg, #fff 0%, #4cc9f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-title .typing-text:after {
    content: '|';
    animation: blink 1s infinite;
    position: absolute;
    right: -10px;
}

/* Sliding hero phrases */
.hero-phrases {
    display: inline-block;
    position: relative;
    width: 420px; /* reserve space to avoid layout jump; adjust as needed */
    height: 1.1em;
    vertical-align: bottom;
    overflow: hidden;
}

.hero-phrases .phrase {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 600ms cubic-bezier(.22,.9,.28,1), opacity 600ms ease;
}

.hero-phrases .phrase.active {
    transform: translateY(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-phrases { width: 260px; }
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-features {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.hero-feature-item i {
    color: white;
    margin-right: 15px;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-feature-item span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 6px;
    background: var(--gradient1);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.text-left .section-title:after {
    left: 0;
    transform: none;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 30px auto 50px;
    text-align: center;
    line-height: 1.7;
}

/* Service Cards */
.service-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 40px 30px;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.5s ease;
}

.service-card-modern:hover .service-icon {
    background: var(--gradient1);
    transform: scale(1.1) rotate(5deg);
}

.service-card-modern:hover .service-icon i {
    color: white;
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: all 0.5s ease;
}

.service-card-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card-modern p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* About Preview */
.about-preview .about-image {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.about-preview .about-image img {
    transition: transform 0.8s ease;
    width: 100%;
}

.about-preview .about-image:hover img {
    transform: scale(1.05);
}

.about-features {
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateX(10px);
}

.about-feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.about-feature:hover .about-feature-icon {
    background: var(--gradient1);
    transform: translateY(-5px);
}

.about-feature:hover .about-feature-icon i {
    color: white;
}

.about-feature-icon i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.about-feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.about-feature-content p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-item p {
    font-weight: 700;
    color: #495057;
    font-size: 1.1rem;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.tech-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.tech-name {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* CTA Section */
.cta-section {
    background: var(--gradient4);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    margin: 0 20px;
}

.cta-content {
    text-align: center;
    color: white;
    padding: 80px 20px;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-light {
    background: white;
    color: var(--primary);
}

.cta-section .btn-light:hover {
    background: var(--light);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background: var(--dark) !important;
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient1);
}

.footer h3, .footer h4 {
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: white;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-right: 10px;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

      .gradient-text {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

                .page-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            padding: 100px 0 80px;
        }


.hero-title .gradient-text {
    background-color: #ffff !important;
    background-clip: text;
    -webkit-text-fill-color: white;
}

.hero-title {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
}


/* Hero Phrases Animation - Fixed */
.hero-phrases {
    display: inline-block;
    position: relative;
    width: 420px;
    height: 1.2em;
    vertical-align: bottom;
    overflow: hidden;
}

.hero-phrases .phrase {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), 
                opacity 0.8s ease;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #4cc9f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-phrases .phrase.active {
    transform: translateY(0%);
    opacity: 1;
}

/* Mobile responsiveness for hero phrases */
@media (max-width: 768px) {
    .hero-phrases {
        width: 280px;
        height: 1.1em;
    }
}

@media (max-width: 576px) {
    .hero-phrases {
        width: 220px;
    }
}



/* Hero Section Styling */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Background Animation */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

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

/* Hero Title Animation */
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Subtitle Animation */
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Buttons Animation */
.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Hero Features Animation */
.hero-features {
    animation: zoomIn 1s ease-out 0.9s both;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Feature Items */
.hero-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.hero-feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.hero-feature-content h4 {
    color: white;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.hero-feature-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-feature-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}


/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatRandom 15s infinite linear;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes floatRandom {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Pulse Animation for CTA Button */
.btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}