/* Page-specific styles for Home page */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #20c997 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.1;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.hero-image {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.section-transition {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.section-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #20c997);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.section-transition:hover::after {
    width: 100px;
}

.section-transition:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.5);
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(40, 167, 69, 0.2);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax effect for sections */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Stagger animation for cards */
.card-stagger {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-stagger.visible:nth-child(1) { transition-delay: 0.1s; }
.card-stagger.visible:nth-child(2) { transition-delay: 0.2s; }
.card-stagger.visible:nth-child(3) { transition-delay: 0.3s; }
.card-stagger.visible:nth-child(4) { transition-delay: 0.4s; }

.card-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Particle effect */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 15s linear infinite;
}

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

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 100px 0;
        min-height: 80vh;
    }

    .section-transition {
        margin: 10px 0;
        padding: 15px;
    }

    .parallax {
        background-attachment: scroll;
    }

    .particle {
        width: 2px;
        height: 2px;
    }
}

/* Improved Image Styles */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.team-member-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
}

.about-img {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-card-img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card-img:hover {
    transform: scale(1.05);
}

.blog-card-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-img:hover {
    transform: scale(1.05);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #20c997);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.5);
}

/* Achievement Counters */
.achievement-counter {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    transition: all 0.4s ease;
}

.achievement-counter:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(40, 167, 69, 0.3);
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

/* Process Timeline Styles */
.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #20c997);
    z-index: 1;
}

.process-step {
    flex: 1;
    min-width: 200px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    z-index: 2;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(40, 167, 69, 0.3);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), #20c997);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-color);
}

.process-step h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.process-step p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        width: 100%;
        max-width: 300px;
    }
}

/* Contact Card Styles */
.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
    margin-bottom: 20px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.contact-card i {
    transition: transform 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .contact-card {
        margin-bottom: 15px;
        padding: 15px;
    }
}
