/* Mobile Navigation Styles */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
    padding: 10px;
    margin-left: auto;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(17, 44, 57, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1002;
    transition: right 0.3s ease;
    padding: 20px 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    max-height: 100vh;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
    padding-bottom: 30px;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header img {
    height: 30px;
}

/* Update the close button styles */
.mobile-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.mobile-close-btn i {
    pointer-events: none;
}

/* Mobile Menu Links */
.mobile-menu-links {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex-grow: 0;
}

.mobile-menu-links li {
    margin: 10px 0;
}

.mobile-menu-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-links a:hover {
    color: #1dbf73;
    transform: translateX(10px);
}

/* Mobile Social Section */
.mobile-menu-social {
    padding-top: 15px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile-cta-button {
    display: block;
    background: #1dbf73;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 25px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-cta-button:hover {
    background: transparent;
    color: #1dbf73;
    box-shadow: 0 0 0 2px #1dbf73;
}

.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.mobile-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(29, 191, 115, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1dbf73;
    transition: all 0.3s ease;
}

.mobile-social-icons a:hover {
    background: #1dbf73;
    color: #fff;
    transform: translateY(-3px);
}

/* Show mobile menu button only on mobile */
@media (max-width: 768px) {
    /* Hide desktop nav links */
    .nav-links {
        display: none;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: #fff;
        background: none;
        border: none;
        padding: 10px;
        margin-left: auto;
        z-index: 1001;
    }

    /* Mobile Menu Panel */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(17, 44, 57, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1002;
        transition: right 0.3s ease;
        padding: 20px;
        display: flex;
        flex-direction: column;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .mobile-menu.active {
        right: 0;
    }

    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-header img {
        height: 30px;
    }

    .mobile-close-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

    .mobile-close-btn i {
        pointer-events: none;
    }

    /* Mobile Menu Links */
    .mobile-menu-links {
        list-style: none;
        padding: 30px 0;
        margin: 0;
        flex-grow: 1;
    }

    .mobile-menu-links li {
        margin: 15px 0;
    }

    .mobile-menu-links a {
        color: #fff;
        text-decoration: none;
        font-size: 1.1rem;
        display: block;
        padding: 10px;
        transition: all 0.3s ease;
    }

    .mobile-menu-links a:hover {
        color: #1dbf73;
        transform: translateX(10px);
    }

    /* Mobile Social Section */
    .mobile-menu-social {
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-cta-button {
        display: block;
        background: #1dbf73;
        color: #fff;
        text-align: center;
        padding: 12px;
        border-radius: 25px;
        margin-bottom: 20px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .mobile-social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

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

    .mobile-social-icons a:hover {
        background: #1dbf73;
        transform: translateY(-3px);
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Projects Section Container */
    .portfolio {
        padding: 40px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .portfolio .container {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .portfolio .section-title {
        margin-bottom: 30px;
        padding: 0 20px;
        text-align: center;
        width: 100%;
    }

    .portfolio .section-title h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .portfolio .section-title p {
        font-size: 1rem;
    }

    /* Portfolio Grid */
    .portfolio-grid {
        display: grid;
        grid-template-columns: 1fr;  /* Single column for mobile */
        gap: 25px;
        padding: 0 20px;
        width: 100%;
        max-width: 350px;  /* Control maximum width of folders */
        margin: 0 auto;
    }

    /* Folder Container */
    .folder-container {
        height: 120px;
        width: 100%;
        background: rgba(17, 44, 57, 0.6);
        border: 1px solid rgba(29, 191, 115, 0.2);
        border-radius: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        overflow: hidden;
        position: relative;
    }

    .folder-container:hover {
        transform: translateY(-5px);
        border-color: #1dbf73;
        box-shadow: 0 10px 20px rgba(29, 191, 115, 0.2);
    }

    /* Folder Content */
    .folder {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        text-align: center;
        gap: 15px;
    }

    .folder i {
        font-size: 2.5rem;
        color: #1dbf73;
        transition: all 0.3s ease;
    }

    .folder h3 {
        font-size: 1.2rem;
        color: #fff;
        margin: 0;
        font-weight: 500;
    }

    /* Hover Effects */
    .folder-container:active {
        transform: scale(0.98);
    }

    /* Add subtle animation */
    .folder-container {
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }

    .folder-container:nth-child(2) {
        animation-delay: 0.2s;
    }

    .folder-container:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Project Page Mobile Adjustments */
    .project-page {
        padding: 60px 0;
    }

    .category-title {
        font-size: 1.8rem;
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;  /* Single column for videos */
        gap: 20px;
        padding: 0 20px;
    }

    .video-card {
        margin-bottom: 20px;
    }

    .video-info {
        padding: 15px;
    }

    .video-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .video-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Project Close Button Position */
    .project-close {
        top: 15px;
        right: 15px;
    }

    /* About Section Mobile Styles */
    .about {
        padding: 40px 0;
    }

    .about .container {
        width: 100%;
        padding: 0 20px;
    }

    .about .section-title {
        text-align: center;
        margin-bottom: 30px;
    }

    .about .section-title h2 {
        font-size: 2rem;
    }

    /* About Content Layout */
    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    /* About Image */
    .about-image {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        border-radius: 15px;
        overflow: hidden;
    }

    .about-image iframe {
        width: 100%;
        height: 315px;
        border: none;
    }

    /* About Text Adjustments */
    .about-text {
        text-align: center;
        padding: 0;
        max-width: 100%;
    }

    .about-text h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
        color: #1dbf73;
    }

    .about-text p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 20px;
        color: rgba(255, 255, 255, 0.9);
        padding: 0 15px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        letter-spacing: 0.3px;
    }

    /* About Contact Info Adjustments */
    .about-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .contact-info-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        text-decoration: none;
        font-size: 0.9rem;
        padding: 8px 16px;
        background: rgba(29, 191, 115, 0.1);
        border-radius: 25px;
        transition: all 0.3s ease;
    }

    .contact-info-item:hover {
        background: rgba(29, 191, 115, 0.2);
        transform: translateY(-2px);
    }

    .contact-info-item i {
        color: #1dbf73;
        font-size: 1.2rem;
    }

    /* About Social Container Adjustments */
    .about-social-container .cta-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .about-social-container .cta-button {
        min-width: 200px;
        padding: 0 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-size: 1rem;
    }

    .about-social-container .header-social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .about-social-container .header-social-icons a {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 50%;
        background: rgba(29, 191, 115, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1dbf73;
        transition: all 0.3s ease;
    }

    .about-social-container .header-social-icons a:hover {
        background: #1dbf73;
        color: #fff;
        transform: translateY(-3px);
    }

    /* Add animation */
    .about-image, .about-text {
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }

    .about-text {
        animation-delay: 0.2s;
    }

    /* Services Section Mobile Styles */
    .services {
        padding: 40px 0;
        min-height: 100vh;  /* Full viewport height */
        display: flex;
        flex-direction: column;
        justify-content: center;  /* Center vertically */
    }

    .services .container {
        width: 100%;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;  /* Center horizontally */
    }

    .services .section-title {
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
    }

    .services .section-title h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .services .section-title p {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
    }

    /* Services Grid */
    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 350px;
        margin: 0 auto;
        width: 100%;
    }

    /* Service Card */
    .service-card {
        background: rgba(17, 44, 57, 0.6);
        border: 1px solid rgba(29, 191, 115, 0.2);
        border-radius: 15px;
        padding: 25px 20px;
        text-align: center;
        transition: all 0.3s ease;
        height: fit-content;  /* Adjust height to content */
    }

    .service-card:hover {
        transform: translateY(-5px);
        border-color: #1dbf73;
        box-shadow: 0 10px 20px rgba(29, 191, 115, 0.2);
    }

    /* Service Icon */
    .service-icon {
        width: 60px;
        height: 60px;
        background: rgba(29, 191, 115, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
    }

    .service-icon i {
        font-size: 1.8rem;
        color: #1dbf73;
    }

    /* Service Content */
    .service-card h3 {
        font-size: 1.3rem;
        color: #fff;
        margin-bottom: 15px;
    }

    .service-details ul {
        list-style: none;
        padding: 0;
        margin: 0 0 20px;
    }

    .service-details li {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 10px;
        line-height: 1.4;
    }

    /* Service CTA Button */
    .service-cta {
        display: inline-block;
        background: #1dbf73;
        color: #fff;
        padding: 10px 25px;
        border-radius: 25px;
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

    .service-cta:hover {
        background: transparent;
        color: #1dbf73;
        box-shadow: 0 0 0 2px #1dbf73;
    }

    /* Add animation */
    .service-card {
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }

    .service-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .service-card:nth-child(3) {
        animation-delay: 0.4s;
    }

    /* Contact Section Mobile Styles */
    .contact {
        padding: 40px 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .contact .container {
        width: 100%;
        padding: 0 20px;
    }

    .contact .section-title {
        text-align: center;
        margin-bottom: 30px;
    }

    .contact .section-title h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .contact .section-title p {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
    }

    /* Contact Content Layout */
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        max-width: 380px;  /* Increased from 350px */
        margin: 0 auto;
        width: 100%;
    }

    /* Contact Info */
    .contact-info {
        text-align: center;
        width: 100%;
    }

    .contact-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
        width: 100%;  /* Added to ensure full width */
    }

    .contact-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 20px;
        background: rgba(29, 191, 115, 0.1);
        border-radius: 25px;
        color: #fff;
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

    .contact-link:hover {
        background: rgba(29, 191, 115, 0.2);
        transform: translateY(-2px);
    }

    .contact-link i {
        color: #1dbf73;
        font-size: 1.2rem;
    }

    /* Contact Social */
    .contact-social {
        margin-bottom: 30px;
    }

    .contact-social h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: #fff;
    }

    /* Contact Social Icons - Matching About Me Style */
    .contact-social .header-social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .contact-social .header-social-icons a {
        width: 45px;       /* Match width */
        height: 45px;      /* Match height */
        min-width: 45px;   /* Ensure consistent width */
        border-radius: 50%;
        background: rgba(29, 191, 115, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1dbf73;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    .contact-social .header-social-icons a:hover {
        background: #1dbf73;
        color: #fff;
        transform: translateY(-3px);
    }

    /* Adjust Contact Section Hire Me Button */
    .contact-social .about-social-container .cta-button {
        min-width: 200px;
        padding: 0 40px;
        height: 45px;      /* Match height with other social buttons */
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-size: 1rem;
    }

    /* Hover effect to match About section */
    .contact-social .about-social-container .cta-button:hover {
        background: transparent;
        color: #1dbf73;
        transform: translateY(-3px);
        box-shadow: 0 0 0 2px #1dbf73;
    }

    /* Social Icons Container */
    .header-social-icons {
        display: flex;
        justify-content: center;
        gap: 12px;  /* Reduced gap between icons */
        flex-wrap: wrap;  /* Allow wrapping if needed */
        width: 100%;
    }

    .header-social-icons a {
        width: 40px;  /* Slightly reduced from 45px if needed */
        height: 40px;
        min-width: 40px;  /* Ensure consistent width */
    }

    /* Contact Form */
    .contact-form {
        background: rgba(17, 44, 57, 0.6);
        border: 1px solid rgba(29, 191, 115, 0.2);
        border-radius: 15px;
        padding: 25px 20px;
        width: 100%;  /* Ensure form takes full width */
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: #fff;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #1dbf73;
        outline: none;
        background: rgba(29, 191, 115, 0.05);
    }

    .message-group textarea {
        height: 120px;
        resize: none;
    }

    .submit-btn-container {
        text-align: center;
        margin-top: 20px;
    }

    .submit-btn {
        background: #1dbf73;
        color: #fff;
        padding: 12px 30px;
        border: none;
        border-radius: 25px;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .submit-btn:hover {
        background: transparent;
        box-shadow: 0 0 0 2px #1dbf73;
        color: #1dbf73;
    }

    .submit-btn i {
        font-size: 1.1rem;
    }

    /* Add animations */
    .contact-info, .contact-form {
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }

    .contact-form {
        animation-delay: 0.2s;
    }

    /* Placeholder styles */
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
} 