* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 24px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.logo:hover {
    color: #007bff;
}
.navbar {
    display: flex;
    gap: 20px;
}

.navbar a {
    display: inline-block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
.navbar a:hover {
    color: #007bff;
    background: #fff;
    border-radius: 5px;
}

.home {
    position: relative;
    width: 100%;
    justify-content: space-evenly;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%; 
}

.home-content {
    max-width: 600px;
    color: #333;
}

.home-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.home-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
}
.home-content h3:last-child {
    font-size: 24px;
    margin-bottom: 20px;
}

.home-content h3 span {
    color: #007bff;
    font-weight: 600;
}

.home-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.home-content a {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.home-content a:hover {
    background: #0056b3 !important;
}

.home-sci {
    margin-top: 20px;
    display: flex;
    gap: 16px;
}

.home-sci a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid #d1d5db;
    border-radius: 50%;
    transition: 
        background 0.2s,
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
    box-shadow: none;
    text-decoration: none;
}

.home-sci a:hover {
    background: #f0f4fa;
    border-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
    transform: scale(1.08);
}

.home-sci img {
    width: 22px;
    height: 22px;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.2s;
}

.home-sci a:hover img {
    filter: grayscale(0%) brightness(1);
}

.profile-photo img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #007bff;
    display: block;
}
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 5% 20px 5%;
        height: auto;
        min-height: 100vh;
    }

    .home-content {
        max-width: 100%;
        width: 100%;
        margin-bottom: 32px;
    }

    .home-content h1 {
        font-size: 32px;
    }

    .home-content h3,
    .home-content h3:last-child {
        font-size: 18px;
    }

    .home-content p {
        font-size: 16px;
    }

    .profile-photo img {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .profile-photo {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .home-sci {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    /* General font size for body */
    html, body {
        font-size: 14px;
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100vw;
    }

    /* Headings hierarchy */
    h1, .home-content h1, .about-content h2, .skills h2, .projects h2, .contact h2 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    h2, .about-content h2, .skills h2, .projects h2, .contact h2 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    h3, .home-content h3, .home-content h3:last-child, .project h3 {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    /* Paragraphs and normal text */
    p, .home-content p, .about-content p, .project p, .skill p, .contact input, .contact textarea {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Buttons and links */
    a, .home-content a, .project a, .contact button[type="submit"] {
        font-size: 13px;
    }

    /* Adjust section-specific overrides if needed */
    .skills h2,
    .projects h2,
    .about-content h2,
    .contact h2 {
        font-size: 18px;
    }
    .skills-container,
    .projects-container {
        gap: 14px;
    }
    .skill p {
        font-size: 13px;
    }
    .project p {
        font-size: 13px;
    }
    .about-content p {
        font-size: 13px;
    }
    .contact input,
    .contact textarea {
        font-size: 13px;
    }
    .contact button[type="submit"] {
        font-size: 13px;
    }
}
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 5% 20px 5%;
        height: auto;
        min-height: 100vh;
    }

    .home-content {
        max-width: 100%;
        width: 100%;
        margin-bottom: 32px;
    }

    .home-content h1 {
        font-size: 32px;
    }

    .home-content h3,
    .home-content h3:last-child {
        font-size: 18px;
    }

    .home-content p {
        font-size: 16px;
    }

    .profile-photo img {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .profile-photo {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .home-sci {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 24px;
    }
    .profile-photo img {
        width: 180px; 
        height: 180px;
    }
    .home {
        padding: 70px 3% 16px 3%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 100vh;
    }
    .home-content {
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .profile-photo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 24px;
    }
}
@media (max-width: 768px) {
    .home {
        flex-direction: column;
    }
    .home-content {
        order: 1;
    }
    .profile-photo {
        order: 2;
        margin-top: 24px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
.about {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    min-height: 100vh;
    background: #007bff;
    color: #fff;
    padding: 0 10%;
    gap: 40px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    background: #0056b3;
}

.about-content {
    flex: 2;
    max-width: 600px;
    color: #fff;
    padding-right: 5%;
}

.about-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #f0f4fa;
}
@media (max-width: 768px) {
    .about {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px 5% 40px 5%;
        gap: 24px;
        min-height: auto;
        text-align: center;
    }
    .about-image {
        order: 1;
        width: 100%;
        justify-content: center;
        align-items: center;
        display: flex;
        margin-bottom: 20px;
    }
    .about-image img {
        width: 180px;
        height: 180px;
        border-radius: 12%;
    }
    .about-content {
        order: 2;
        max-width: 100%;
        padding: 0;
        color: #fff;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .about-content h2 {
        font-size: 28px;
        margin-bottom: 14px;
    }
    .about-content p {
        font-size: 20px;
        margin-bottom: 12px;
        color: #f0f4fa;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 40px 3% 24px 3%;
        gap: 16px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .about-image img {
        width: 180px;
        height: 180px;
        border-radius: 16%;
        box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    }
    .about-content {
        max-width: 100%;
        padding: 0;
        color: #fff;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .about-content h2 {
        font-size: 22px;
        margin-bottom: 12px;
        font-weight: 700;
    }
    .about-content p {
        font-size: 14px;
        margin-bottom: 10px;
        color: #f0f4fa;
        line-height: 1.6;
    }
}
.skills {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.skills h2 {
    font-size: 40px;
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    max-width: 900px;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px 20px 16px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 120px;
}

.skill:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 6px 24px rgba(0,0,0,0.16);
    background: rgba(255,255,255,0.12);
}

.skill img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.skill p {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    text-align: center;
}
@media (max-width: 768px) {
    .skills {
        padding: 60px 5% 40px 5%;
        min-height: 100vh;
    }
    .skills h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }
    .skills-container {
        gap: 20px;
        max-width: 100%;
    }
    .skill {
        min-width: 100px;
        padding: 16px 10px 12px 10px;
    }
    .skill img {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }
    .skill p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .skills {
        padding: 40px 3% 24px 3%;
        min-height: 100vh;
    }
    .skills h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .skills-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        align-items: center;
        max-width: 100%;
    }
    .skill {
        min-width: 0;
        width: 100%;
        padding: 12px 6px 10px 6px;
    }
    .skill img {
        width: 28px;
        height: 28px;
        margin-bottom: 6px;
    }
    .skill p {
        font-size: 10px;
    }
}
.projects {
    background: #007bff;
    color: #fff;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.projects h2 {
    font-size: 40px;
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.project {
    background: #fff;
    color: #141313;
    border-radius: 12px;
    padding: 32px 28px 24px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.18);
    cursor: pointer;
    background: #f4f8ff;
}

.project h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2b2a2a; 
}

.project p {
    font-size: 16px;
    margin-bottom: 18px;
    color: #181818;
}

.project a {
    display: inline-block;
    padding: 8px 18px;
    color: #fff;
    background: #007bff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.project a:hover {
    background: #0056b3;
    color: #fff;
}

@media (max-width: 768px) {
    .projects {
        padding: 60px 5% 40px 5%;
        min-height: 100vh;
    }
    .projects h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }
    .projects-container {
        gap: 20px;
        max-width: 100%;
    }
    .project {
        min-width: 160px;
        max-width: 100%;
        padding: 20px 12px 16px 12px;
    }
    .project h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    .project p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .project a {
        font-size: 15px;
        padding: 7px 14px;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 40px 3% 24px 3%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .projects h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .projects-container {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        align-items: center; 
        justify-content: center; 
        display: flex;
    }
    .project {
        min-width: 0;
        max-width: 260px; 
        width: 90%;      
        margin: 0 auto;   
        padding: 12px 6px 10px 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .project h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .project p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .project a {
        font-size: 13px;
        padding: 6px 10px;
    }
    .project img {
        width: 80px;
        height: auto;
        margin-bottom: 8px;
    }
}
.contact {
    background: #f4f4f4;
    color: #181818;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    min-height: 100vh;
}

.contact h2 {
    font-size: 40px;
    margin-bottom: 32px;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.contact form {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.contact input,
.contact textarea {
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: #181818;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
    width: 100%;
    box-sizing: border-box;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.08);
}

.contact textarea {
    min-height: 120px;
}

.contact button[type="submit"] {
    padding: 12px 0;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    width: 100%;
}

.contact button[type="submit"]:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 5% 40px 5%;
        min-height: 100vh;
    }
    .contact h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .contact form {
        max-width: 100%;
        gap: 14px;
    }
    .contact input,
    .contact textarea {
        font-size: 15px;
        padding: 10px 10px;
    }
    .contact button[type="submit"] {
        font-size: 16px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 40px 3% 24px 3%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .contact h2 {
        font-size: 18px;
        margin-bottom: 12px;
        width: 100%;
        text-align: center;
    }
    .contact form {
        gap: 8px;
        max-width: 90%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }
    .contact input,
    .contact textarea {
        font-size: 12px;
        padding: 6px 6px;
        width: 90%;
        min-width: 0;
        margin: 0 auto;
        text-align: center;
    }
    .contact textarea {
        min-height: 60px;
    }
    .contact button[type="submit"] {
        font-size: 13px;
        padding: 7px 0;
        width: 90%;
        margin: 0 auto;
    }
}

/* Hamburger styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100vw;           
        height: 100vh;
        width: 100vw;            
        background: #fff;
        box-shadow: -2px 0 16px rgba(0,0,0,0.08);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 24px 24px;
        gap: 18px;
        transition: right 0.3s;
        z-index: 150;
        max-width: 100vw;       
        box-sizing: border-box;
        left: auto;
        overflow-x: hidden;      
    }
    .navbar.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .header {
        padding: 20px 4% 20px 4%; 
    }
    .logo {
        margin-right: 8px; 
    }
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
@media (max-width: 900px) {
    .logo {
        font-size: 20px;
        padding: 0 4px;
    }
}
@media (max-width: 480px) {
    .logo {
        font-size: 16px;
        padding: 0 2px;
    }
    html, body {
        font-size: 14px;
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100vw;
    }
    #root, main, .main, .container, .wrapper {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    * {
        box-sizing: border-box !important;
    }
}

.container {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0 auto;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .container {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

