/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Custom styles */
.home-section {
    min-height: 80vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
    color: var(--bs-dark);
    background: transparent;
}

.home-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.home-section .lead {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.header-image {
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-left: 2rem;
}

/* Video background styles */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bs-dark);
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0.7;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.service-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card .card-text {
    color: #34495e;
    font-size: 0.95rem;
    line-height: 1.6;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

/* Navigation styles */
.navbar-custom {
    transition: background-color 0.3s ease;
}

.navbar-custom.scrolled {
    background-color: var(--bs-light) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Section styles */
section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

section h2 {
    color: var(--bs-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

#services {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

#portfolio {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
}

.portfolio-item h4,
.portfolio-item p {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Contact form styles */
.contact-section {
    padding: 5rem 0;
}

.form-control {
    background-color: var(--bs-white);
    border-color: var(--bs-border-color);
    color: var(--bs-dark);
}

.form-control:focus {
    background-color: var(--bs-white);
    border-color: var(--bs-primary);
    color: var(--bs-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-section {
        min-height: 60vh;
    }

    .portfolio-item {
        margin-bottom: 2rem;
    }
    
    .header-image {
        margin-left: 0;
        margin-top: 2rem;
        max-width: 250px;
    }
    
    .home-section .row {
        flex-direction: column-reverse;
    }
}

.skill-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 20px;
    background: var(--bs-dark);
}

/* Add these styles for the navbar toggler */
.navbar-toggler-dark {
    border-color: var(--bs-dark) !important;
}

.navbar-toggler-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* About Page Styles */
.about-hero-section {
    padding-top: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 60vh;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-info {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--bs-primary);
    margin-top: 2rem;
}

.contact-info i {
    color: var(--bs-primary);
}

.expertise-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
}

.expertise-card h4 {
    color: #1a252f;
    font-weight: 600;
}

.expertise-card p {
    color: #2c3e50;
    line-height: 1.6;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.expertise-icon {
    text-align: center;
}

.success-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    transition: transform 0.3s ease;
    height: 100%;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.success-card .card-title {
    color: #1a252f;
    font-weight: 600;
}

.success-card .card-text {
    color: #2c3e50;
}

.success-card:hover {
    transform: translateY(-3px);
}

.benefit-item {
    padding: 1.5rem;
    text-align: center;
}

.benefit-item i {
    margin-bottom: 1rem;
}

.benefit-item h5 {
    color: #1a252f;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: #2c3e50;
    line-height: 1.6;
}

.tech-categories {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tech-categories h6 {
    color: #1a252f;
    font-weight: 700;
}

/* Section headers on About page */
#expertise h2,
#why-choose h2 {
    color: #1a252f;
    font-weight: 700;
    margin-bottom: 3rem;
}

.tech-badges .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

#cta-about {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
}

.about-hero-section h1 {
    color: #1a252f;
    font-weight: 700;
}

.about-hero-section .lead {
    color: #2c3e50;
    font-weight: 500;
}

.about-hero-section p {
    color: #2c3e50;
}

/* Responsive adjustments for About page */
@media (max-width: 768px) {
    .about-hero-section {
        padding-top: 80px;
        min-height: auto;
    }
    
    .profile-image {
        width: 220px;
        height: 220px;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .tech-categories {
        padding: 2rem 1rem;
    }
}