/* Navigation Fix CSS */

/* Ensure smooth scrolling works */
html {
    scroll-behavior: smooth !important;
}

/* Add proper spacing for sections to account for fixed navbar */
section {
    scroll-margin-top: 80px !important;
    position: relative;
}

/* Fix hero section spacing to prevent overlap with fixed navbar */
.hero {
    padding-top: 100px !important; /* Add space for navbar */
    min-height: calc(100vh - 80px) !important;
}

.hero-content {
    margin-top: 20px !important; /* Additional spacing for content */
}

/* Ensure navbar stays on top */
.navbar {
    z-index: 1000 !important;
}

/* Make sure sections are visible and properly positioned */
section[id] {
    min-height: 100px;
    padding-top: 20px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px !important;
    }
    
    .hero-content {
        margin-top: 10px !important;
    }
}

/* Enhanced button interactions */
.btn {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3) !important;
}

.btn:active {
    transform: translateY(0) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00b894 0%, #00d4ff 100%) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6c5ce7 0%, #00d4ff 100%) !important;
    color: white !important;
}

/* Form message styling */
.form-message {
    animation: slideIn 0.3s ease-out !important;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-message.success {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
    border: 1px solid #00b894;
    animation: slideInDown 0.3s ease-out, successPulse 0.6s ease-out 0.3s;
}

.form-message.error {
    background: rgba(255, 118, 117, 0.1);
    color: #ff7675;
    border: 1px solid #ff7675;
}

.form-message i {
    font-size: 1.2em;
}

/* Form field error state */
.field-error {
    border-color: #ff7675 !important;
    box-shadow: 0 0 0 2px rgba(255, 118, 117, 0.2) !important;
}

/* Enhanced form focus states */
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

/* Submit button loading state */
#contactForm button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Celebration animation */
@keyframes celebrate {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0.5) rotate(720deg);
        opacity: 0;
    }
}

/* Slide in animation for messages */
@keyframes slideInDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Success pulse effect */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Mobile Menu Fixes */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(51, 51, 51, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }
    
    .nav-link {
        font-size: 1.1em;
        padding: 15px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:hover {
        background: rgba(102, 126, 234, 0.2);
    }
}

/* Impact Counter Enhancements */
.impact-stat .stat-number,
.hero-stats .stat-number {
    transition: all 0.3s ease;
    will-change: contents;
}

.impact-stat:hover .stat-number,
.hero-stats .stat:hover .stat-number {
    transform: scale(1.1);
    color: #667eea;
}

/* Ensure counters are visible */
.impact-stat,
.hero-stats .stat {
    opacity: 1;
    visibility: visible;
}

/* Debug mode - add borders to sections (remove after testing) */
/*
section[id] {
    border: 2px solid red !important;
    margin: 10px 0 !important;
}
*/
