/* Mobile Responsive Design for Manning Project */

/* Base Mobile Responsive Styles */
@media only screen and (max-width: 768px) {
    /* General Layout */
    .hai {
        padding-top: 70px !important; /* Reduced padding for mobile */
    }
    
    /* Navbar */
    .profile-page .navbar {
        padding: 0 5% !important;
        height: 60px !important;
    }
    
    .logo-img {
        height: 40px; /* Smaller logo for mobile */
    }
    
    /* Menu */
    .menu {
        width: auto;
    }
    
    ul li {
        margin-left: 20px;
        font-size: 14px;
    }
    
    /* User Info Sections */
    .user-info {
        width: 95% !important;
        padding: 15px !important;
        margin: 15px auto !important;
    }
    
    .user-info h2 {
        font-size: 20px;
        padding: 8px;
    }
    
    .user-info span {
        min-width: 120px;
        margin-right: 10px;
        text-align: left;
    }
    
    /* Form Layout */
    .form-row {
        flex-direction: column;
    }
    
    .form-row .one, 
    .form-row .two {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Profile Photo */
    .profile-photo,
    .profile-photo-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .profile-photo-placeholder .initials {
        font-size: 36px;
    }
}

/* Small Mobile Devices */
@media only screen and (max-width: 480px) {
    /* Navbar */
    .profile-page .navbar {
        padding: 0 3% !important;
        height: 50px !important;
    }
    
    .logo-img {
        height: 35px;
    }
    
    ul li {
        margin-left: 15px;
        font-size: 12px;
    }
    
    /* User Info */
    .user-info h2 {
        font-size: 18px;
    }
    
    .user-info span {
        display: block;
        text-align: left;
        margin-bottom: 5px;
    }
    
    /* Profile Photo */
    .profile-photo,
    .profile-photo-placeholder {
        width: 120px;
        height: 120px;
    }
}

/* 3D Design Elements */
.profile-photo {
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.profile-photo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.user-info {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logout-btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

@media only screen and (max-width: 768px) {
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }
    
    .menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: auto;
        background: white;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .menu.active {
        left: 0;
    }
    
    ul {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    ul li {
        margin: 15px 0;
        display: block;
    }
}
