/* Mobile-Optimized Portfolio Styles */

/* CSS Variables */
:root {
    --cream: #f5efe6;
    --beige: #e8dcc4;
    --brown: #8b6f47;
    --dark-brown: #5d4e37;
    --orange: #d17842;
    --light-orange: #e89b6d;
    --text-dark: #2c2416;
    --text-light: #6b5d4f;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
}

/* Mobile Bottom Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 10px var(--shadow);
    z-index: 1000;
}

.mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    min-width: 60px;
}

.mobile-nav .nav-item i {
    font-size: 1.2rem;
}

.mobile-nav .nav-item.active {
    color: var(--orange);
    background: rgba(209, 120, 66, 0.1);
}

/* Hero Section */
.mobile-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(209, 120, 66, 0.1) 0%, rgba(139, 111, 71, 0.1) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.profile-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--orange);
    box-shadow: 0 8px 20px var(--shadow);
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-brown);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-role {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-tags .tag {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px var(--shadow);
}

.hero-tags .tag i {
    color: var(--orange);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(209, 120, 66, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--white);
    color: var(--orange);
    border: 2px solid var(--orange);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* Mobile Sections */
.mobile-section {
    padding: 30px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--light-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(209, 120, 66, 0.3);
}

.section-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

/* About Section */
.about-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px var(--shadow);
}

.about-intro {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--cream);
    border-radius: 12px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--orange);
    min-width: 30px;
}

.info-item strong {
    display: block;
    color: var(--dark-brown);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.quote-card {
    background: linear-gradient(135deg, var(--orange) 0%, var(--light-orange) 100%);
    padding: 20px;
    border-radius: 12px;
    color: var(--white);
    position: relative;
}

.quote-card i {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 10px;
}

.quote-card p {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
}

.quote-card span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: right;
}

/* Skills Section */
.skills-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.skill-tab {
    flex: 1;
    min-width: fit-content;
    background: var(--white);
    border: 2px solid var(--beige);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-tab.active {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.skills-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.skills-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.skill-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Projects Section */
.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--shadow);
}

.project-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-image i {
    font-size: 4rem;
    color: var(--white);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags span {
    background: var(--cream);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.project-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-details {
    background: var(--beige);
    color: var(--dark-brown);
}

.btn-view {
    background: var(--orange);
    color: var(--white);
}

.btn-small:active {
    transform: scale(0.98);
}

/* Testimonials Section */
.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--shadow);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-avatar i {
    font-size: 1.5rem;
    color: var(--white);
}

.testimonial-info h4 {
    font-size: 1.1rem;
    color: var(--dark-brown);
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: #ffa500;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Contact Section */
.contact-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--beige);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--cream);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--white);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-submit:active {
    transform: scale(0.98);
}

.social-links {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px var(--shadow);
}

.social-links h3 {
    font-size: 1.2rem;
    color: var(--dark-brown);
    margin-bottom: 15px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--cream);
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.social-item:active {
    transform: scale(0.98);
}

.social-item i:first-child {
    font-size: 1.5rem;
    color: var(--orange);
    width: 30px;
    text-align: center;
}

.social-item span {
    flex: 1;
    font-weight: 500;
}

.social-item i:last-child {
    color: var(--text-light);
    font-size: 0.9rem;
}

.response-info {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 15px var(--shadow);
}

.response-info i {
    font-size: 1.5rem;
    color: var(--orange);
    margin-top: 2px;
}

.response-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
.mobile-footer {
    background: var(--white);
    padding: 30px 20px 90px;
    text-align: center;
    border-top: 1px solid var(--beige);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--orange);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:active {
    transform: scale(0.9);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.footer-tagline i {
    color: #e74c3c;
}

.desktop-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--orange);
    color: var(--white);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.desktop-link:active {
    transform: scale(0.98);
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: fixed;
    bottom: 0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--cream);
    border: none;
    color: var(--dark-brown);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
}

.modal-header {
    padding: 25px 20px 15px;
    border-bottom: 1px solid var(--beige);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--dark-brown);
    padding-right: 40px;
}

.modal-body {
    padding: 20px;
}

.modal-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.modal-stats .stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--cream);
    border-radius: 12px;
}

.modal-stats .stat i {
    color: var(--orange);
    font-size: 1.2rem;
    width: 25px;
}

.modal-stats .stat span {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-tags span {
    background: var(--beige);
    padding: 8px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--orange);
    color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-btn:active {
    transform: scale(0.98);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
