/* Clean Professional Portfolio CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5B7FFF;
    --secondary-color: #7C3AED;
    --accent-color: #06B6D4;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Crimson Text', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    visibility: hidden;
}

body.loaded {
    visibility: visible;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.hero-contact .contact-item i {
    width: 20px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.hero-contact .contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.hero-contact .contact-item a:hover {
    text-decoration: underline;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #4A6FEE;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

/* Profile Section */
.profile {
    background: var(--bg-secondary);
}

.profile-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Experience Section */
.experience {
    background: white;
}

.experience-list {
    display: grid;
    gap: 1.5rem;
}

.experience-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.experience-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.exp-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.company {
    font-style: italic;
    font-weight: 400;
    color: var(--primary-color);
}

.exp-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.exp-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

/* Education Section */
.education {
    background: var(--bg-secondary);
}

.education-list {
    display: grid;
    gap: 2rem;
}

.education-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.education-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.edu-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.institution {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.cgpa {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.edu-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.edu-date,
.edu-location {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

/* Skills Section */
.skills {
    background: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.skill-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.625rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.project-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Colorful gradient top borders for each card */
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
}

.project-item:nth-child(1)::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.project-item:nth-child(2)::before {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.project-item:nth-child(3)::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.project-item:nth-child(4)::before {
    background: linear-gradient(90deg, #43e97b, #38f9d7);
}

.project-item:nth-child(5)::before {
    background: linear-gradient(90deg, #fa709a, #fee140);
}

.project-item:nth-child(6)::before {
    background: linear-gradient(90deg, #30cfd0, #330867);
}

.project-item:nth-child(7)::before {
    background: linear-gradient(90deg, #a8edea, #fed6e3);
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.08);
}

.project-details {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-header {
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.project-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    display: inline-block;
}

.project-details p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tech span {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    background: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: all 0.3s ease;
    width: 100%;
}

.project-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 127, 255, 0.3);
}

/* Certifications Section */
.certifications {
    background: white;
}

.certifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.certification-item {
    background: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.certification-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cert-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cert-date {
    font-size: 0.875rem;
    color: white;
    background: var(--accent-color);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-detail-item i {
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.contact-detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-detail-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.contact-detail-item a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 127, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Resume Modal */
.resume-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.resume-modal.active {
    display: flex;
}

.resume-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.resume-container {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.resume-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.close-btn {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--primary-color);
    color: white;
}

.resume-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.resume-paper {
    max-width: 800px;
    margin: 0 auto;
}

.resume-top {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.resume-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.resume-contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.resume-contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-contact-info i {
    color: var(--primary-color);
}

.resume-section {
    margin-bottom: 2rem;
}

.resume-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.resume-item {
    margin-bottom: 1.25rem;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.resume-item-header strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.resume-item-header span {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.resume-item-details p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.resume-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
}

.resume-skills-grid {
    display: grid;
    gap: 1rem;
}

.resume-skills-grid div {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.resume-skills-grid strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.resume-skills-grid p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.resume-footer-text {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    z-index: 10001;
    transition: width 0.1s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-contact {
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .projects-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-details {
        padding: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 7rem 0 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image img {
        width: 240px;
        height: 240px;
    }

    .section-title {
        font-size: 2rem;
    }

    .exp-header,
    .edu-header,
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .exp-meta,
    .edu-meta {
        align-items: flex-start;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certifications-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to elements */
.hero-title {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-contact {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-image {
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

/* Improved Mobile Responsiveness */
@media (max-width: 640px) {
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
    
    .hero-contact .contact-item {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .profile-content p {
        font-size: 1.125rem;
        padding: 1.5rem;
    }
    
    .experience-item,
    .education-item,
    .skill-category,
    .certification-item {
        padding: 1.5rem;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-details {
        padding: 1.25rem;
    }
    
    .project-details p {
        -webkit-line-clamp: 3;
        font-size: 0.85rem;
    }
    
    .project-details {
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-header h3 {
        font-size: 1.25rem;
    }
    
    .project-details p {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .resume-header {
        padding: 1rem 1.5rem;
    }
    
    .resume-header h2 {
        font-size: 1.5rem;
    }
    
    .resume-content {
        padding: 1.5rem;
    }
    
    .resume-name {
        font-size: 2rem;
    }
    
    .resume-contact-info {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Tablet Improvements */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-image img {
        width: 260px;
        height: 260px;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 240px;
    }
    
    .project-details p {
        -webkit-line-clamp: 3;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certifications-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth transitions for all interactive elements */
a, button, .btn, .nav-link, .project-item, .skill-category, 
.experience-item, .education-item, .certification-item, 
.contact-detail-item, .social-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.experience-item:hover,
.education-item:hover,
.skill-category:hover,
.certification-item:hover,
.contact-detail-item:hover {
    transform: translateY(-4px);
}

.project-item:hover {
    transform: translateY(-6px);
}

/* Loading state for images */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .nav-toggle,
    .scroll-progress {
        display: none;
    }
    
    body {
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --text-primary: #000000;
        --text-secondary: #000000;
        --border-color: #000000;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if you want to add dark mode support
    :root {
        --bg-primary: #1F2937;
        --bg-secondary: #111827;
        --text-primary: #F9FAFB;
        --text-secondary: #D1D5DB;
        --border-color: #374151;
    }
    */
}

/* Additional responsive improvements */
@media (max-width: 480px) {
    .hero-contact {
        gap: 0.75rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .project-tech {
        gap: 0.5rem;
    }
    
    .project-tech span {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .exp-date,
    .edu-date,
    .edu-location,
    .cert-date,
    .project-date {
        font-size: 0.8rem;
        padding: 0.25rem 0.625rem;
    }
}

/* Landscape mobile improvements */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
}

/* Extra large screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
}
