/* Main Styles */
:root {
    --primary-blue: #0056b3;
    --primary-red: #dc3545;
    --hover-blue: #003d7a;
    --hover-red: #bd2130;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-3: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.hero-section {
    padding: 100px 0;
    background: var(--gradient-1);
    color: #fff;
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
    z-index: 1;
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite;
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 50%; animation-delay: 5s; }
.particle:nth-child(3) { top: 40%; left: 80%; animation-delay: 10s; }

@keyframes gradientShift {
    0% { background: var(--gradient-1); }
    33% { background: var(--gradient-2); }
    66% { background: var(--gradient-3); }
    100% { background: var(--gradient-1); }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 15s linear infinite;
    opacity: 0.5;
}

.service-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tech-stack-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    color: white;
    padding: 80px 0;
}

.tech-icon {
    width: 80px;
    height: 80px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.tech-icon:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.testimonials-section {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    padding: 80px 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    margin: 15px;
}

.client-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.projects-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    color: white;
    padding: 80px 0;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px;
    text-align: center;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    transition: all 0.5s ease;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card:hover::before {
    top: 0;
    opacity: 0.1;
}

.service-card:hover .service-icon i {
    color: var(--primary-red);
    transform: scale(1.2) rotate(10deg);
}

.service-icon i {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 0 auto;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-blue));
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: bounce 2.0s infinite ease-in-out, glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px var(--primary-red); }
    50% { box-shadow: 0 0 30px var(--primary-blue); }
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes bounce {
    0%, 100% { transform: scale(0.0) }
    50% { transform: scale(1.0) }
}

.loading-text {
    margin-top: 20px;
    color: var(--primary-blue);
    font-weight: bold;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
}

.tagline {
    margin-top: 10px;
    color: var(--primary-red);
    font-size: 1.2em;
    opacity: 1;
    animation: typewriter 3s steps(20) forwards, blink 0.7s step-end infinite;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-red);
    width: 0;
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 200px;
    }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-red); }
}

/* Header */
.header {
    padding: 15px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    max-height: 50px;
}

.navbar-nav .nav-item {
    margin: 0 10px;
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary-red);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a, var(--primary-blue));
    color: #fff;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(220,53,69,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
    opacity: 0.2;
}

.footer-top {
    padding-bottom: 50px;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-widget h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007bff;
}

.social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-red);
    transform: translateY(-5px) scale(1.2);
    transition: all 0.3s ease;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info-item i {
    margin-right: 10px;
    color: #007bff;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    margin: 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-bottom-links li {
    display: inline-block;
    margin-left: 20px;
}

.footer-bottom-links a {
    color: #fff;
    text-decoration: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: #fff;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    display: none;
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.back-to-top:hover {
    background: #0056b3;
    color: #fff;
}