﻿html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7fa;
    line-height: 1.6;
    color: #2d3748;
    transition: all 0.3s ease;
}

.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease-in-out;
}

    .navbar.scrolled {
        background-color: #1a202c;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar.hidden {
        transform: translateY(-100%);
    }

#mobile-menu {
    display: none;
}

    #mobile-menu.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    background: linear-gradient(to bottom, #1a202c, #2d3748);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 16px;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
    flex: 1;
}

.hero-image {
    width: 30%;
    height: auto;
    object-fit: scale-down;
    margin-left: 10px;
    float: right;
    position: absolute;
    top: 8%;
    right: 16px;
}

@media (max-width: 1100px) {
    .hero-image {
        display: none; /* Hide on mobile screens */
    }

    .hero-section .hero-text {
        text-align: center;
        flex: 1;
        max-width: 100%; /* Ensure text container is full width */
        margin: 0 auto; /* Center the text container */
    }

        .hero-section .hero-text p {
            text-align: center !important; /* Force centering with high specificity */
            font-size: 1rem;
            max-width: 600px;
            margin: 0 auto 2rem; /* Center and maintain bottom margin */
        }
}

@media (min-width: 1100px) {
    .hero-image {
        display: block; /* Show on desktop/laptop screens */
    }

    .hero-section .hero-text {
        text-align: left;
        flex: 1;
    }

        .hero-section .hero-text p {
            text-align: left;
            font-size: 1rem;
            max-width: 600px;
            margin-bottom: 2rem;
        }
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .hero-text h2 {
        font-size: 3rem;
    }
}

.hero-text p {
    font-size: 1rem;
    max-width: 600px;
    text-align: left;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-text p {
        font-size: 1.2rem;
    }
}

.contact-btn {
    background-color: #f97316;
    color: white;
    padding: 3px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

    .contact-btn:hover {
        background-color: #ea580c;
    }

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

    .social-icons a {
        color: #f97316;
        font-size: 1.5rem;
        transition: color 0.3s;
        cursor: pointer;
        text-decoration: none;
    }

        .social-icons a:hover {
            color: #ea580c;
        }

.bottom-left-icons {
    position: absolute;
    bottom: 20px;
    left: 16px;
    flex-direction: column;
}

.profile-pic.placeholder {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 5px solid #800080;
    overflow: hidden;
    background-color: #bdbbb7;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-text h2 {
        font-size: 3rem;
    }

    .profile-pic.placeholder {
        max-width: 350px;
    }
}

.profile-pic.placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-pic.placeholder:hover {
    opacity: 0.9;
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    }

input, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    input:focus, textarea:focus {
        border-color: #2dd4bf;
        box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

section {
    animation: fadeIn 0.5s ease;
}

.section-line {
    border: 0;
    height: 5px;
    background-color: #800080;
    margin: 0 auto;
    width: 150px;
}

#about {
    background-color: #bdbbb7 !important;
    min-height: auto;
}

#projects {
    background-color: #bdbbb7 !important; /* Match About Me background */
    min-height: auto;
}

#skills {
    background-color: #bdbbb7 !important; /* Match About Me background */
    min-height: auto;
}

#contact {
    background-color: #bdbbb7 !important; /* Match About Me background */
    min-height: auto;
}

@media (min-width: 768px) {
    #about {
        min-height: 100vh;
    }

    #projects {
        min-height: 100vh; /* Ensure consistent height on larger screens */
    }

    #skills {
        min-height: 100vh; /* Ensure consistent height on larger screens */
    }

    #contact {
        min-height: 100vh; /* Ensure consistent height on larger screens */
    }
}

#about p {
    color: #000000;
}

.w-full.md\:w-2\/3.text-lg.text-gray-700.leading-relaxed {
    color: #000000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .footer-content .mt-4 {
        margin-top: 1rem;
    }

.typing {
    position: relative;
    display: inline-block;
}

    .typing::after {
        content: '|';
        position: initial;
        right: -0.6em;
        color: white;
        animation: blink 0.9s infinite;
    }

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


#skills {
    background-color: #bdbbb7 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#skills-row {
    display: flex;
    overflow-x: auto; /* Allow horizontal scroll */
    scroll-behavior: smooth;
    gap: 4rem;
    padding: 1 6rem; /* Optional: give space for arrows */
}

.skill-category {
    flex: 0 0 100%; /* Full width per category */
    
}


.skill-card {
    background-color: #1a1a1a;
    color: white;
    padding: 1rem;
    text-align: center;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#skills-row::-webkit-scrollbar {
    display: none;
}
