/* ===== Base Styles ===== */
:root {
    /* Colors */
    --primary: #25D366;       /* WhatsApp green */
    --secondary: #333333;     /* Dark gray */
    --white: #ffffff;
    --black: #000000;
    --gray: #808080;
    --light-gray: #f5f5f5;
    
    /* WhatsApp brand colors */
    --whatsapp: #25D366;
    --youtube: #FF0000;
    --price: #0b1d81;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

/* ===== Base Elements ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: var(--secondary);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Floating Buttons ===== */
.floating-buttons {
    position: fixed;
    right: var(--spacing-md);
    top: 300px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: 1000;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    width: 40px;
    height: 40px;
    margin-left: auto;
}

.floating-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gray);
    border-radius: var(--radius-full);
    background-color: #1f2937;
    color: #9ca3af;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 2;
}

/* Button specific styles */
.floating-btn.whatsapp i { color: var(--whatsapp); }
.floating-btn.linkedin i { color: #0077B5; }
.floating-btn.github i { color: #ffffff; }
.floating-btn.X i { color: #000000; }

.floating-btn:hover i {
    transform: rotate(360deg);
    box-shadow: var(--shadow-lg);
}

.floating-btn span {
    position: absolute;
    right: 100%;
    white-space: nowrap;
    background: #1f2937;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 8px 25px 8px 30px;
    margin-right: -15px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.floating-btn:hover span {
    opacity: 1;
    transform: translateX(0);
    background-color: #1f2937;
    color: #e5e7eb;
    box-shadow: var(--shadow-md);
    border-color: #374151;
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #374151;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #9ca3af;
    font-size: 12px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-nav-btn i {
    font-size: 20px;
    margin-bottom: var(--spacing-xs);
    transition: var(--transition);
}

.mobile-nav-btn:hover i {
    transform: scale(1.1);
}

.mobile-nav-btn.whatsapp i {
    color: var(--whatsapp);
}

.mobile-nav-btn.linkedin i {
    color: #0077B5;
}

.mobile-nav-btn.github i {
    color: #ffffff;
}

.mobile-nav-btn.X i {
    color: #000000;
}

/* ===== Hamburger Menu Styles ===== */
#hamburger-btn {
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    transform-origin: center;
    transition: all 0.3s ease;
}

/* Active hamburger animation */
#hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

#hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile navigation menu */
#nav-menu {
    transition: all 0.3s ease;
    z-index: 999;
    display: none; /* Hidden by default on mobile */
}

/* Show on desktop */
@media (min-width: 768px) {
    #nav-menu {
        display: flex;
    }
}

/* Show when active on mobile - IMPORTANT: This must override the display: none */
#nav-menu.active {
    display: flex !important;
    flex-direction: column;
    animation: slideDown 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #374151;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== Logo Rotation Effect ===== */
.logo-link {
    transition: transform 0.8s ease;
    display: inline-block;
}

.logo-link:hover {
    transform: rotateX(360deg);
}

/* ===== Responsive Styles ===== */
@media (max-width: 767px) {
    .mobile-nav {
        display: flex;
    }
    
    .floating-buttons {
        position: fixed;
        bottom: -550px; /* Position above the mobile nav */
        right: var(--spacing-md);
        top: auto;
        transform: none;
        flex-direction: column-reverse;
        gap: var(--spacing-sm);
        z-index: 950; /* Below mobile nav but above content */
    }
    
    /* Show only specific floating buttons on mobile */
    .floating-btn {
        display: none;
        margin-bottom: 0;
        width: 45px;
        height: 45px;
    }
    
    .floating-btn:nth-child(2),
    .floating-btn:nth-child(4),
    .floating-btn:nth-child(1) {
        display: flex;
    }
    
    /* Ensure footer is not covered */
    footer {
        margin-bottom: 60px; /* Space for mobile nav */
    }
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
    
    .floating-btn {
        display: flex !important;
    }
    
    /* Show all floating buttons on desktop */
    .floating-buttons {
        gap: var(--spacing-md);
    }
}
