/* Custom styles for Nitya Acharya Portfolio */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --dark-color: #343a40;
    --light-color: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px; /* Account for fixed navbar */
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.language-selector {
    display: flex;
    gap: 5px;
}

.language-selector .btn {
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.language-selector .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    margin: 0 auto;
    display: block;
}

/* Section Styles */
section {
    scroll-margin-top: 76px; /* Account for fixed navbar */
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Service Items */
.service-item {
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    background: white;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    transform: translateX(5px);
}

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Contact Section */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.contact-info i {
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0;
}

/* Footer */
footer {
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .language-selector {
        margin-top: 10px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Loading Animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Language Button Active State */
.language-selector .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Secure contact form */
.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 10px;
    padding: 12px 14px;
}
.contact-line {
    border-top: 1px solid #edf0f5;
    padding: 18px 0;
}
.contact-line:first-of-type {
    border-top: none;
}
.footer-links a {
    text-decoration: none;
}
.footer-links a:hover {
    color: #fff !important;
    text-decoration: underline;
}
.d-none {
    display: none !important;
}
