/* 
==============================================
Modern Portfolio Website - Neela Prasad
==============================================
*/

/* ===== VARIABLES ===== */
:root {
    /* Main Colors - Inspired by profile photo background */
    --primary-color: #e94e77;
    --secondary-color: #1a75ff;
    --accent-color: #f9a826;
    --dark-color: #2d3436;
    --light-color: #f5f5f5;
    --white-color: #ffffff;
    --gray-color: #6c757d;
    --light-gray-color: #e9ecef;
    --dark-gray-color: #343a40;
    
    /* Typography */
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 15px;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-circle: 50%;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: var(--body-font);
    outline: none;
    border: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.underline::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 40px;
    height: 4px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: var(--transition-normal);
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--dark-color);
    transition: var(--transition-normal);
    padding: 15px 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white-color);
    transition: var(--transition-fast);
    display: block;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--white-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white-color);
    transition: var(--transition-fast);
}

header.scrolled .bar {
    background-color: var(--dark-color);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark-color) 0%, #1e272e 100%);
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white-color);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white-color);
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--light-gray-color);
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.primary-btn:hover {
    background-color: #d63e66;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.secondary-btn {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.secondary-btn:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-circle);
    color: var(--white-color);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.image-container {
    width: 350px;
    height: 350px;
    border-radius: var(--border-radius-circle);
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.2);
    position: relative;
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.image-container:hover img {
    transform: scale(1.05);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--section-padding);
    background-color: var(--white-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--dark-gray-color);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item span {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.info-item p {
    margin: 0;
    color: var(--gray-color);
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    padding: var(--section-padding);
    background-color: var(--light-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 25px;
    background-color: var(--white-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-left: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-right: 15px solid var(--white-color);
    border-bottom: 15px solid transparent;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.timeline-list {
    padding-left: 20px;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--dark-gray-color);
}

.timeline-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-circle);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: var(--section-padding);
    background-color: var(--white-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-header {
    padding: 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.project-type {
    font-size: 0.9rem;
    opacity: 0.8;
}

.project-body {
    padding: 25px;
}

.project-body ul {
    padding-left: 20px;
}

.project-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--dark-gray-color);
    font-size: 0.95rem;
}

.project-body li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-circle);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 25px 25px;
}

.project-tech span {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--light-gray-color);
    color: var(--dark-gray-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: var(--section-padding);
    background-color: var(--light-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
}

.skills-category {
    margin-bottom: 30px;
}

.skills-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-left: 15px;
}

.skills-category h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-sm);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-gray-color);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: var(--light-gray-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-sm);
    position: relative;
    animation: progress 1.5s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0; }
}

.soft-skills {
    margin-top: 60px;
}

.soft-skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.soft-skill {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-fast);
}

.soft-skill:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.soft-skill-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(233, 78, 119, 0.1);
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.soft-skill h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.soft-skill p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* ===== EDUCATION SECTION ===== */
.education {
    padding: var(--section-padding);
    background-color: var(--white-color);
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.education-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.education-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    z-index: 1;
}

.education-content {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.education-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.education-content h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.education-year, .education-gpa {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.certifications {
    margin-top: 60px;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.certification-item {
    display: flex;
    background-color: var(--light-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.certification-icon {
    width: 60px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 1.5rem;
}

.certification-content {
    flex: 1;
    padding: 15px;
}

.certification-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.certification-content h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.certification-date, .certification-id {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 3px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding);
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(233, 78, 119, 0.1);
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-text p {
    color: var(--gray-color);
}

.contact-text a {
    color: var(--gray-color);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--light-color);
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 78, 119, 0.1);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    padding: 60px 0 30px;
    color: var(--white-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-circle);
    color: var(--white-color);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-copyright p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #d63e66;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* New media query for medium screens (425-768px) */
@media (max-width: 767px) and (min-width: 426px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .hero-content {
        padding-top: 40px;
        padding-bottom: 20px;
    }
    
    .image-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 991px) {
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-text h2 {
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-icon {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-content::before {
        left: -15px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    /* Mobile navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--dark-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
        z-index: 1000;
        padding: 50px 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        color: var(--white-color);
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Fixed hero section for mobile */
    .hero-content {
        text-align: center;
        padding-top: 50px;
    }
    
    .hero-text h2, .hero-text .job-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
        white-space: normal; /* Allow text wrapping */
        width: 100%;
        display: block;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
        margin: 0 auto 30px;
    }
    
    /* Adjusted grid layouts for mobile */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .soft-skills-container {
        grid-template-columns: 1fr;
    }
    
    .certifications-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Improved mobile navigation for small screens */
    .nav-links {
        width: 100%;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .image-container {
        width: 280px;
        height: 280px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Improved social icons display for small screens */
    .social-icons {
        justify-content: center;
        margin-top: 25px;
        gap: 20px;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* New media query for very small screens (320-375px) */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .hamburger {
        margin-right: 5px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text h2, .hero-text .job-title {
        font-size: 1.3rem;
    }
    
    .image-container {
        width: 220px;
        height: 220px;
    }
    
    /* Improved social icons display for very small screens */
    .social-icons {
        justify-content: center;
        margin-top: 25px;
        gap: 18px;
    }
    
    .social-icons a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}
    }
    
    /* Header & Navigation fixes */
    .logo {
        font-size: 1.3rem;
    }
    
    /* Hero section fixes */
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 70px;
        padding-bottom: 30px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-text h1 span {
        display: block;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
        white-space: normal;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .image-container {
        width: 200px;
        height: 200px;
    }
    
    /* Section title fixes */
    .section-title h2 {
        font-size: 1.7rem;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    /* Projects section fixes */
    .projects-grid {
        gap: 20px;
    }
    
    .project-header {
        padding: 15px;
    }
    
    .project-header h3 {
        font-size: 1.3rem;
    }
    
    .project-body {
        padding: 15px;
    }
    
    .project-tech {
        padding: 0 15px 15px;
    }
    
    /* Skills section fixes */
    .skills-category h3 {
        font-size: 1.2rem;
    }
    
    .soft-skill {
        padding: 20px 15px;
    }
    
    /* Education section fixes */
    .education-content h3 {
        font-size: 1.1rem;
    }
    
    .education-content h4 {
        font-size: 1rem;
    }
    
    /* Contact section fixes */
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
    
    /* Footer fixes */
    .footer-logo h2 {
        font-size: 1.7rem;
    }
    
    /* Back to top button fixes */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
}
