@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    scroll-behavior: smooth;
    background-color: #fafbfc;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #4f46e5;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #2d3748;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo a {
    text-decoration: none; /* underline hata dega */
    color: inherit; /* logo ka jo color hai wahi rahega */
}

.logo a:hover {
    color: inherit; /* hover pe bhi color change na ho */
}


.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #4f46e5;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: transparent;
}

.nav-menu a:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.15);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border: none;
    background: transparent;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #4f46e5;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Touch device optimizations */
.touch-device .project-card:hover,
.touch-device .skill-category:hover,
.touch-device .achievements:hover,
.touch-device .education-counter:hover,
.touch-device .social-link:hover {
    transform: none;
}

.touch-device .project-link:hover,
.touch-device .email-link:hover,
.touch-device .phone-link:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

/* Improved focus states for accessibility */
.mobile-menu-toggle:focus,
.scroll-to-top:focus,
.theme-toggle:focus,
.nav-menu a:focus,
.project-link:focus,
.email-link:focus,
.phone-link:focus,
.social-link:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Better tap targets for mobile */
@media (max-width: 767px) {
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    .scroll-to-top,
    .theme-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Smooth scrolling behavior for all browsers */
html {
    scroll-behavior: smooth;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 20px;
    transform: translateZ(0);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    letter-spacing: -0.02em;
}

.hero-content .tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s both;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.profile-image {
    width: clamp(200px, 20vw, 280px);
    height: clamp(200px, 20vw, 280px);
    border-radius: 50%;
    margin: 3.5rem auto;
    background: #fff;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.6s both;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

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

/* Section Styles */
section {
    padding: 100px 0;
}

.page-section {
    min-height: calc(100vh - 140px);
    padding: 140px 0 100px;
}

.section-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 4rem;
    color: #1a202c;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

/* Page-specific introductions */
.skills-intro,
.projects-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
}

/* Enhanced Skills Section Styles */
.skill-description {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    text-align: left;
}

.skills-footer {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.skills-footer h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
}

.skills-footer p {
    color: #4a5568;
    line-height: 1.7;
}

/* Enhanced Projects Section Styles */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #4a5568;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-features {
    margin: 1.5rem 0;
}

.project-features h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #1a202c;
    font-weight: 600;
}

.project-features ul {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    padding: 0.3rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.2rem;
}

.project-features li:before {
    content: "→";
    color: #4f46e5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link.secondary {
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.project-link.secondary:hover {
    background: #4f46e5;
    color: white;
}

.projects-footer {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.projects-footer h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
}

.projects-footer p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.inline-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Enhanced Contact Section Styles */
.contact-methods {
    margin: 3rem 0;
}

.contact-method {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.contact-method.primary-contact {
    border: 2px solid #4f46e5;
    background: rgba(79, 70, 229, 0.05);
}

.contact-method h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-method p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-details,
.response-info,
.availability {
    margin: 2rem 0;
}

.contact-details h3,
.response-info h3,
.availability h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-details ul {
    list-style: none;
    padding-left: 0;
}

.contact-details li {
    padding: 0.5rem 0;
    color: #4a5568;
    font-size: 1rem;
}

.professional-links {
    list-style: none;
    padding-left: 0;
}

.professional-links li {
    padding: 0.5rem 0;
    color: #4a5568;
}

.professional-links a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.professional-links a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.social-links .social-link span {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-footer {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 2rem;
    background: rgba(79, 70, 229, 0.05);
    border: 2px solid rgba(79, 70, 229, 0.1);
    border-radius: 20px;
}

.contact-footer h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
}

.contact-footer p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.professional-info {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professional-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.professional-info h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    color: #1a202c;
    font-weight: 600;
}

.position-item {
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 12px;
    border-left: 4px solid #22c55e;
    transition: all 0.3s ease;
}

.position-item:hover {
    background: rgba(34, 197, 94, 0.1);
    transform: translateX(5px);
}

.position-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.position-title .role {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.position-title .company {
    font-size: 0.9rem;
    color: #22c55e;
    font-weight: 500;
}

.position-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.position-details .location {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
}

.position-details .duration {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 400;
}

.social-links-compact {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.about-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

.about-text .professional-info {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    width: 100%;
}

.about-text .professional-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text .professional-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    font-weight: 600;
}

.achievements,
.education-counter {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievements:hover,
.education-counter:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.achievements h3,
.education-counter h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    font-weight: 600;
}

.education-item {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    border-left: 4px solid #4f46e5;
    transition: all 0.3s ease;
}

.education-item:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateX(5px);
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-level {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.education-level .degree {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.education-level .field {
    font-size: 0.9rem;
    color: #4f46e5;
    font-weight: 500;
}

.education-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.education-details .institution {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
}

.education-details .year {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 400;
}

.achievements ul {
    list-style: none;
}

.achievements li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.achievements li:hover {
    padding-left: 10px;
    color: #4f46e5;
}

.achievements li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Skills Section */
.skills {
    background: #ffffff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2rem;
    color: #1a202c;
    font-weight: 600;
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.project-image span {
    position: relative;
    z-index: 2;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
    font-size: 1.3rem;
}

.project-content p {
    margin-bottom: 2rem;
    color: #4a5568;
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Contact Section */
.contact {
    background: #ffffff;
}

.contact-content {
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 3rem;
}

/* .unique-message {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
} */


.contact-info h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    color: #1a202c;
    font-weight: 600;
    font-size: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
}

.email-link {
    font-size: 1.3rem;
    color: #4f46e5;
    text-decoration: none;
    margin-bottom: 3rem;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border: 2px solid #4f46e5;
    border-radius: 10px;
}

.email-link:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.phone-link {
    font-size: 1.3rem;
    color: #059669;
    text-decoration: none;
    margin-bottom: 3rem;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border: 2px solid #059669;
    border-radius: 10px;
}

.phone-link:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

/* Contact Section Form and Cards */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 400px;
}

.contact-card {
    background: #ffffff;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 70, 229, 0.1);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    /* background: linear-gradient(135deg, #4f46e5, #7c3aed); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #7c3aed;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotateY(180deg);
}

.contact-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card p {
    color: #4a5568;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 500;
}

.contact-form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-family: inherit;
    color: #1a202c;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    grid-column: 1 / -1;
}

.submit-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    align-self: center;
    min-width: 200px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 1.5rem;
}

/* Footer Social Links */
.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #cbd5e0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.footer-social-icon:hover {
    color: #ffffff;
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.footer-social-icon svg {
    transition: transform 0.3s ease;
}

.footer-social-icon:hover svg {
    transform: scale(1.1);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-menu a {
    color: #cbd5e1;
}

body.dark-mode .nav-menu a:hover {
    color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
}

body.dark-mode .nav-menu a.active {
    color: #818cf8;
    background: rgba(129, 140, 248, 0.15);
}

body.dark-mode .section-title {
    color: #f1f5f9;
}

body.dark-mode .about {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

body.dark-mode .about-text h3 {
    color: #f1f5f9;
}

body.dark-mode .about-text p {
    color: #cbd5e1;
}

body.dark-mode .about-text .professional-info {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .about-text .professional-info h3 {
    color: #f1f5f9;
}

body.dark-mode .achievements,
body.dark-mode .education-counter,
body.dark-mode .professional-info {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .education-counter h3,
body.dark-mode .professional-info h3 {
    color: #f1f5f9;
}

body.dark-mode .position-item {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
}

body.dark-mode .position-item:hover {
    background: rgba(34, 197, 94, 0.15);
}

body.dark-mode .position-title .role {
    color: #f1f5f9;
}

body.dark-mode .position-title .company {
    color: #34d399;
}

body.dark-mode .position-details .location {
    color: #94a3b8;
}

body.dark-mode .position-details .duration {
    color: #64748b;
}

body.dark-mode .social-icon {
    background: rgba(79, 70, 229, 0.2);
    color: #818cf8;
}

body.dark-mode .social-icon:hover {
    background: #4f46e5;
    color: white;
}

body.dark-mode .education-item {
    background: rgba(79, 70, 229, 0.15);
    border-left-color: #6366f1;
}

body.dark-mode .education-item:hover {
    background: rgba(79, 70, 229, 0.25);
}

body.dark-mode .education-level .degree {
    color: #f1f5f9;
}

body.dark-mode .education-level .field {
    color: #818cf8;
}

body.dark-mode .education-details .institution {
    color: #cbd5e1;
}

body.dark-mode .education-details .year {
    color: #94a3b8;
}

body.dark-mode .achievements h3 {
    color: #f1f5f9;
}

body.dark-mode .achievements li:hover {
    color: #818cf8;
}

body.dark-mode .skills {
    background: #0f172a;
}

body.dark-mode .skill-category {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .skill-category h3 {
    color: #f1f5f9;
}

body.dark-mode .projects {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

body.dark-mode .project-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .project-content h3 {
    color: #f1f5f9;
}

body.dark-mode .project-content p {
    color: #cbd5e1;
}

body.dark-mode .contact {
    background: #0f172a;
}

body.dark-mode .contact-info h3 {
    color: #f1f5f9;
}

body.dark-mode .contact-info p {
    color: #cbd5e1;
}

body.dark-mode .theme-toggle {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .nav-menu {
    background: rgba(15, 23, 42, 0.98);
}

/* Dark mode styles for new page elements */
body.dark-mode .skills-intro,
body.dark-mode .projects-intro {
    color: #cbd5e1;
}

body.dark-mode .skill-description {
    color: #9ca3af;
}

body.dark-mode .skills-footer,
body.dark-mode .projects-footer,
body.dark-mode .contact-footer {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}



body.dark-mode .contact-section h3 {
    color: #f1f5f9;
}

body.dark-mode .contact-section p {
    color: #cbd5e1;
}

body.dark-mode .contact-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

body.dark-mode .contact-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(66, 153, 225, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .contact-card svg {
    color: #fff;
}

body.dark-mode .contact-card h4 {
    color: #f1f5f9;
}

body.dark-mode .contact-card p {
    color: #cbd5e1;
}

body.dark-mode .contact-form-container {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

body.dark-mode .contact-form h4 {
    color: #f1f5f9;
}

body.dark-mode .form-group label {
    color: #e2e8f0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.dark-mode .submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

body.dark-mode .submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

body.dark-mode .skills-footer h2,
body.dark-mode .projects-footer h2,
body.dark-mode .contact-footer h2 {
    color: #f1f5f9;
}

body.dark-mode .skills-footer p,
body.dark-mode .projects-footer p,
body.dark-mode .contact-footer p {
    color: #cbd5e1;
}

body.dark-mode .tech-tag {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #e5e7eb;
}

body.dark-mode .project-features h3 {
    color: #f1f5f9;
}

/* Dark mode footer social links */
body.dark-mode .footer-social-icon {
    color: #9ca3af;
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-social-icon:hover {
    color: #ffffff;
    background: rgba(79, 70, 229, 0.3);
    border-color: rgba(79, 70, 229, 0.6);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

body.dark-mode .project-features li {
    color: #cbd5e1;
}

body.dark-mode .contact-method {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-method.primary-contact {
    background: rgba(79, 70, 229, 0.1);
    border-color: #4f46e5;
}

body.dark-mode .contact-method h3,
body.dark-mode .contact-details h3,
body.dark-mode .response-info h3,
body.dark-mode .availability h3 {
    color: #f1f5f9;
}

body.dark-mode .contact-method p,
body.dark-mode .contact-details li,
body.dark-mode .professional-links li {
    color: #cbd5e1;
}

body.dark-mode .professional-links a,
body.dark-mode .inline-link {
    color: #818cf8;
}

body.dark-mode .professional-links a:hover,
body.dark-mode .inline-link:hover {
    color: #a78bfa;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .hero {
        min-height: 100vh;
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: clamp(4rem, 7vw, 6rem);
        margin-bottom: 2.5rem;
    }
    
    .hero-content .tagline {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
        margin-bottom: 3.5rem;
        max-width: 1000px;
    }
    
    .profile-image {
        width: clamp(280px, 25vw, 350px);
        height: clamp(280px, 25vw, 350px);
        margin: 4rem auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    section {
        padding: 120px 0;
    }
}

/* 15-16 inch Laptops (1440px - 1600px) */
@media (min-width: 1440px) and (max-width: 1600px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    /* Optimized spacing for 15-16 inch laptops */
    .hero-content {
        padding-top: 18vh !important;
        padding-bottom: 12vh !important;
    }
    
    .hero-content h1 {
        font-size: clamp(4rem, 6vw, 4.8rem);
        margin-bottom: 2.2rem;
    }
    
    .hero-content .tagline {
        font-size: clamp(1.5rem, 3vw, 1.7rem);
        margin-bottom: 3.5rem;
    }
    
    .profile-image {
        width: clamp(240px, 20vw, 280px);
        height: clamp(240px, 20vw, 280px);
        margin: 3.5rem auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    section {
        padding: 110px 0;
    }
}

/* Common Laptop Resolutions (1366px - 1920px) */
@media (min-width: 1366px) and (max-width: 1919px) {
    .hero-content {
        padding-top: 20vh !important;
        padding-bottom: 15vh !important;
        transform: translateY(-5vh);
    }
    
    .hero-content h1 {
        margin-bottom: 2rem;
    }
    
    .hero-content .tagline {
        margin-bottom: 3rem;
    }
    
    .profile-image {
        margin: 3rem auto;
    }
}

/* Ultra-Wide and Very Large Monitors (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 60px;
    }
    
    .hero {
        min-height: 100vh;
        padding: 0 60px;
    }
    
    .hero-content h1 {
        font-size: clamp(5rem, 8vw, 7rem);
        margin-bottom: 3rem;
    }
    
    .hero-content .tagline {
        font-size: clamp(2rem, 4vw, 2.8rem);
        margin-bottom: 4.5rem;
        max-width: 1200px;
    }
    
    .profile-image {
        width: clamp(350px, 30vw, 400px);
        height: clamp(350px, 30vw, 400px);
        margin: 5rem auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }
    
    section {
        padding: 140px 0;
    }
}

/* Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
    
    /* Improved Visual Balance for 13-16 inch Laptops */
    .hero-content {
        padding-top: 15vh !important;
        padding-bottom: 10vh !important;
    }
    
    .hero-content h1 {
        font-size: clamp(3.5rem, 5vw, 4.2rem);
        margin-bottom: 2rem;
    }
    
    .hero-content .tagline {
        font-size: clamp(1.3rem, 2.5vw, 1.5rem);
        margin-bottom: 3rem;
    }
    
    .profile-image {
        width: clamp(210px, 18vw, 240px);
        height: clamp(210px, 18vw, 240px);
        margin: 3rem auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Large Tablet/Small Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        max-width: 1024px;
        padding: 0 30px;
    }
    
    /* Better spacing for smaller laptops */
    .hero-content {
        padding-top: 12vh !important;
        padding-bottom: 8vh !important;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
        margin-bottom: 1.8rem;
    }
    
    .hero-content .tagline {
        font-size: 1.25rem;
        margin-bottom: 2.8rem;
    }
    
    .profile-image {
        width: 190px;
        height: 190px;
        margin: 2.5rem auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .about-text .professional-info {
        margin-top: 1.8rem;
        padding: 2rem;
        border-radius: 16px;
    }
    
    .about-text .professional-info h3 {
        font-size: 1.2rem;
        margin-bottom: 1.3rem;
    }
    
    .position-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links-compact {
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .about {
        padding: 100px 0;
    }
    
    section {
        padding: 90px 0;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 25px;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .hero {
        padding: 130px 0 90px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-content .tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
        margin: 2rem auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about {
        padding: 100px 0;
    }
    
    .achievements,
    .education-counter {
        margin: 0 auto;
        max-width: 500px;
    }
    
    .about-text .professional-info {
        margin: 2rem auto;
        max-width: 500px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .skill-category {
        padding: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .project-card {
        min-height: 400px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .contact-content {
        padding: 0 2rem;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 55px;
        height: 55px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .scroll-to-top {
        bottom: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        right: 15px;
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu a {
        padding: 1rem 1.5rem;
        border-radius: 15px;
        text-align: center;
        background: rgba(249, 250, 251, 0.8);
        margin: 0.25rem 0;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .page-section {
        padding: 120px 0 80px;
    }

    .hero {
        min-height: 100vh;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .hero-content .tagline {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
        margin: 2rem auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }
    
    .about {
        padding: 90px 0;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1.2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .achievements,
    .education-counter {
        padding: 2rem 1.5rem;
    }
    
    .about-text .professional-info {
        margin: 2rem auto;
        max-width: 500px;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .about-text .professional-info h3,
    .achievements h3,
    .education-counter h3 {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 1.2rem;
    }
    
    .position-item {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
    
    .position-title .role {
        font-size: 1rem;
    }
    
    .position-title .company {
        font-size: 0.88rem;
    }
    
    .position-details .location,
    .position-details .duration {
        font-size: 0.9rem;
    }
    
    .social-links-compact {
        gap: 1rem;
        justify-content: center;
        margin-top: 1.3rem;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-category {
        padding: 2rem 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
    }
    
    .skill-tags {
        gap: 0.6rem;
    }
    
    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .skills-intro,
    .projects-intro {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .skills-footer,
    .projects-footer,
    .contact-footer {
        margin-top: 3rem;
        padding: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card {
        min-height: auto;
    }
    
    .project-image {
        height: 160px;
        font-size: 1.1rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .project-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .project-link {
        text-align: center;
    }

    .contact-content {
        padding: 0 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    
    .contact-method {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .email-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .phone-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .social-links {
        gap: 1rem;
        justify-content: center;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .social-link span {
        display: none;
    }

    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        right: 15px;
        font-size: 1.1rem;
    }
}

/* Small Tablet (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-text .professional-info {
        margin: 1.8rem auto;
        max-width: 450px;
        padding: 2rem 1.3rem;
        border-radius: 16px;
    }
    
    .about-text .professional-info h3 {
        font-size: 1.15rem;
        text-align: center;
        margin-bottom: 1.1rem;
    }
    
    .position-item {
        padding: 1.1rem;
        margin-bottom: 1.3rem;
        border-radius: 10px;
    }
    
    .position-title .role {
        font-size: 1rem;
    }
    
    .position-title .company {
        font-size: 0.87rem;
    }
    
    .position-details .location {
        font-size: 0.9rem;
    }
    
    .position-details .duration {
        font-size: 0.85rem;
    }
    
    .social-links-compact {
        gap: 0.9rem;
        justify-content: center;
        margin-top: 1.2rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Contact Section Tablet */
    .contact-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin: 3rem 0;
    }
    
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .contact-card {
        padding: 1.2rem 1rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-card h4 {
        font-size: 0.85rem;
    }
    
    .contact-card p {
        font-size: 0.75rem;
    }
    
    .contact-form-container {
        padding: 2.5rem 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Footer Social Links Tablet */
    .footer-social-links {
        gap: 1.2rem;
        margin-bottom: 1.3rem;
    }
    
    .footer-social-icon {
        width: 38px;
        height: 38px;
    }
    
    .footer-social-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .profile-image {
        width: clamp(500px, 60vw, 700px);
        height: clamp(500px, 60vw, 700px);
    }
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.8rem;
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        padding: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 1rem 1.2rem;
        text-align: center;
        background: rgba(249, 250, 251, 0.8);
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        margin: 0.2rem 0;
    }

    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }

    .hero {
        min-height: 100vh;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
        line-height: 1.2;
    }

    .hero-content .tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        line-height: 1.5;
    }
    
    .profile-image {
        width: 140px;
        height: 140px;
        margin: 1.8rem auto;
        border-width: 4px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    .about-text .professional-info {
        margin-top: 1.5rem;
        padding: 1.5rem 1rem;
        border-radius: 15px;
        max-width: 100%;
    }
    
    .about-text .professional-info h3 {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .achievements,
    .education-counter {
        padding: 1.5rem 1rem;
    }
    
    .achievements h3,
    .education-counter h3 {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .achievements li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    .education-item,
    .position-item {
        margin-bottom: 1rem;
        padding: 0.9rem;
        border-radius: 8px;
    }

    .education-level .degree,
    .position-title .role {
        font-size: 0.95rem;
    }

    .education-level .field,
    .position-title .company {
        font-size: 0.82rem;
    }

    .education-details .institution,
    .position-details .location {
        font-size: 0.85rem;
    }
    
    .position-details .duration {
        font-size: 0.8rem;
    }
    
    .social-links-compact {
        justify-content: center;
        gap: 0.7rem;
        margin-top: 1rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }

    .education-details .year {
        font-size: 0.8rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem 1rem;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .skill-tags {
        gap: 0.5rem;
    }
    
    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Contact Section Mobile */
    .contact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2.5rem 0;
    }
    
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-card {
        padding: 1rem 0.8rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-card h4 {
        font-size: 0.8rem;
    }
    
    .contact-card p {
        font-size: 0.7rem;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 1rem 2.5rem;
        font-size: 0.95rem;
        min-width: 180px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 140px;
        font-size: 1rem;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.6;
    }
    
    .project-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .contact-content {
        padding: 0 0.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .email-link {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        margin-bottom: 2rem;
        display: block;
        text-align: center;
    }

    .phone-link {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        margin-bottom: 2rem;
        display: block;
        text-align: center;
    }

    .social-links {
        gap: 0.8rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }

    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .section-title::after {
        width: 40px;
        height: 3px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        right: 10px;
        font-size: 1rem;
    }
    
    footer {
        padding: 2rem 0;
    }
    
    footer p {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
    
    /* Footer Social Links Mobile */
    .footer-social-links {
        gap: 1rem;
        margin-bottom: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-social-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
    }
    
    .footer-social-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Extra Small Mobile (max-width: 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .hero-content .tagline {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        margin: 1rem auto;
    }
    
    .about-text h3 {
        font-size: 1.2rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .achievements,
    .education-counter {
        padding: 1.2rem 0.8rem;
    }
    
    .skill-category {
        padding: 1.2rem 0.8rem;
    }
    
    .skill-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.1rem;
    }
    
    .email-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .phone-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .scroll-to-top,
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Footer Social Links Extra Small */
    .footer-social-links {
        gap: 0.8rem;
        margin-bottom: 1rem;
        padding: 0 10px;
    }
    
    .footer-social-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .footer-social-icon svg {
        width: 14px;
        height: 14px;
    }
    
    footer p {
        font-size: 0.8rem !important;
        text-align: center;
        padding: 0 5px;
        word-break: break-word;
    }
}

/* Dark Mode Responsive Adjustments */
body.dark-mode .nav-menu {
    background: rgba(15, 23, 42, 0.98);
}

body.dark-mode .nav-menu a {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-menu a:hover {
    background: rgba(129, 140, 248, 0.15);
    color: #818cf8;
}

/* Landscape Mobile Specific */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 0 20px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        margin: 1rem auto;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content .tagline {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    .mobile-menu-toggle,
    .scroll-to-top,
    .theme-toggle,
    .nav-menu {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .hero {
        background: none;
        color: #000;
        padding: 20px 0;
    }
    
    .section-title {
        color: #000;
        page-break-after: avoid;
    }
    
    .project-card,
    .skill-category,
    .achievements,
    .education-counter {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
