/* Enhanced Styles for L.N. Joshi & Co. Website */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Updated body styles */
body {
    background-color: var(--light-color);
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
    opacity: 1;
}

/* Page transition effect */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Simplified header with site title instead of logo */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.site-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle animations for site title */
.site-title a {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.site-title a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    transition: left 0.8s ease;
}

.site-title a:hover::before {
    left: 100%;
}

.site-title a {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif; /* More elegant font */
}

.site-title a:hover {
    color: var(--accent-color);
}

.site-title a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.site-title a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .site-title a {
        font-size: 20px;
    }
    
    header {
        padding: 10px 0;
    }
}

/* Enhanced mobile header */
@media (max-width: 768px) {
    header .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 15px;
    }
    
    .hamburger.left {
        order: 1;
        margin-right: 10px;
    }
    
    .site-title {
        order: 2;
        justify-content: flex-start;
    }
    
    nav {
        order: 3;
    }
    
    .site-title a {
        font-size: 18px;
    }
}

/* Enhanced Service Cards with new color scheme */
.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.service-card .service-icon {
    color: var(--primary-color);
    background-color: rgba(123, 44, 61, 0.08);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

/* Team Cards with enhanced hover effects */
.team-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.team-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(0deg, rgba(44, 106, 193, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(44, 106, 193, 0.15);
}

.team-card:hover::before {
    height: 100%;
}

.member-image {
    position: relative;
    overflow: hidden;
}

.member-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(44, 106, 193, 0) 70%, rgba(44, 106, 193, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-card:hover .member-image::after {
    opacity: 1;
}

/* Enhanced Team Member Cards */
.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.team-member:hover {
    box-shadow: 0 10px 25px rgba(123, 44, 61, 0.15);
    transform: translateY(-5px);
}

.member-image {
    position: relative;
    overflow: hidden;
}

.member-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.team-member:hover .member-image::after {
    transform: scaleX(1);
}

.member-info {
    padding: 25px;
}

.member-info h3 {
    color: var(--dark-color);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.team-member:hover .member-info h3 {
    color: var(--primary-color);
}

.member-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Enhanced form styling */
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: var(--light-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 106, 193, 0.1);
    background-color: white;
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.form-submit {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    transition: left 0.4s ease;
    z-index: -1;
}

.form-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(44, 106, 193, 0.15);
}

.form-submit:hover::before {
    left: 0;
}

.form-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.form-submit:hover::after {
    animation: ripple 1s ease-out;
}

/* Enhanced hero section */
.hero {
    position: relative;
    background: linear-gradient(rgba(42, 67, 101, 0.85), rgba(42, 67, 101, 0.85)), url('../Images/sir\ speech.JPG');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 130px 0;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(64, 54, 55, 0.8), rgba(123, 44, 61, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero .btn {
    margin: 0 10px;
}

/* Enhanced page banners */
.page-banner {
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(64, 54, 55, 0.8), rgba(123, 44, 61, 0.9));
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

/* Enhanced hover effects for all clickable elements */
a, button, .btn, .service-card, .team-card, .form-control, .social-icon {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover {
    color: var(--accent-color);
}

/* Improved card styles */
.service-card, .team-card, .opportunity-card, .gallery-item, .culture-card {
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover, .team-card:hover, .opportunity-card:hover, .gallery-item:hover, .culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(42, 67, 101, 0.12);
}

/* Gallery item hover effects */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(42, 67, 101, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Enhanced form controls */
.form-control {
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

/* Enhanced button styles to match the new color scheme */
.btn {
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    padding: 12px 28px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(123, 44, 61, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(123, 44, 61, 0.25);
}

/* Footer enhancements */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a365d 100%);
}

.footer-logo img {
    filter: brightness(1.1);
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer title styling */
.footer-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--light-color);
    font-family: 'Georgia', serif;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Footer logo style update */
.footer-logo {
    margin-bottom: 25px;
}

/* Enhanced animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Bouncing animation for attention */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Pulsating effect */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f7f9fc;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 6px;
    border: 3px solid #f7f9fc;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Hamburger menu for mobile */
.hamburger.left {
    margin-right: auto;
    margin-left: 0;
    order: -1;
}

@media (max-width: 768px) {
    .logo {
        margin: 0 auto;
    }
    
    .hamburger.left {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2000;
    }
    
    .hamburger.left.active span {
        background-color: var(--accent-color);
    }
    
    .nav-links {
        background-color: white;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        width: 85%;
        left: -100%;
        padding-top: 90px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 18px 30px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
    }
    
    .nav-links a::before {
        content: '';
        width: 6px;
        height: 6px;
        background-color: var(--accent-color);
        border-radius: 50%;
        margin-right: 15px;
        opacity: 0;
        transform: scale(0);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover::before, .nav-links a.active::before {
        opacity: 1;
        transform: scale(1);
    }
    
    .dropdown-content {
        background-color: rgba(248, 250, 253, 0.6);
    }
    
    .dropdown-content a {
        padding-left: 50px;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s forwards;
    }
    
    .logo {
        z-index: 1001;
        position: relative;
    }
    
    .nav-links {
        padding-top: 100px;
    }
}

/* Enhanced navigation styles */
.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.dropdown-content {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dropdown-content a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(123, 44, 61, 0.05);
    padding-left: 25px;
    color: var(--primary-color);
}

/* Pure HTML Dropdown Styles - Click to Toggle */
.nav-links .dropdown {
    position: relative;
}

/* Hide the checkbox but keep it functional */
.dropdown-toggle {
    display: none;
}

/* Style the label to look like a nav link */
.dropdown-label {
    color: var(--text-dark);
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.dropdown-label:hover,
.dropdown-label.active {
    color: var(--primary-color);
}

/* Add underline for active dropdown labels */
.dropdown-label.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-color);
}

/* Style the dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Show dropdown when checkbox is checked */
.dropdown-toggle:checked + .dropdown-label + .dropdown-content {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Rotate arrow when dropdown is open */
.dropdown-toggle:checked + .dropdown-label {
    color: var(--primary-color);
}

.dropdown-content a {
    color: #333;
    padding: 14px 20px;
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    transform: translateX(5px);
}

/* Mobile responsive dropdown styles */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
        background: rgba(0,0,0,0.03);
        border-radius: 0;
        margin-top: 5px;
        border: none;
    }
    
    .dropdown-toggle:checked + .dropdown-label + .dropdown-content {
        display: block;
        animation: slideDownMobile 0.3s ease;
    }
    
    .dropdown-content a {
        padding: 12px 30px;
        border-left: 3px solid transparent;
        background: rgba(255,255,255,0.9);
        color: #333;
    }
    
    .dropdown-content a:hover {
        background: var(--primary-color);
        border-left-color: var(--accent-color);
        color: white;
        transform: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownMobile {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

/* Enhanced footer styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-column h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.link-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.link-column ul li {
    margin-bottom: 12px;
}

.link-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.link-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}
