/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly interactions */
a, button, .nav-link, .show-contact-btn, .course-link, .copy-btn {
    -webkit-tap-highlight-color: rgba(30, 64, 175, 0.2);
    touch-action: manipulation;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #1e40af;
}

h2 {
    font-size: 2rem;
    color: #1e40af;
}

h3 {
    font-size: 1.5rem;
    color: #374151;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #6b7280;
}

a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: #1e40af;
    margin: 0;
    font-size: 1.5rem;
}

.nav-title {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1d4ed8;
}

.download-btn {
    background: #1e40af;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #1d4ed8;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #1e40af;
    margin: 3px 0;
    transition: 0.3s;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 120px 0 80px;
    margin-top: 80px;
}

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

.name {
    font-size: 3rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.5rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 1rem;
}

.location {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.location i {
    margin-right: 0.5rem;
    color: #1e40af;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: #1e40af;
    width: 20px;
    text-align: center;
}

.contact-item a {
    font-weight: 500;
}

.profile-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-summary h3 {
    color: #1e40af;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.profile-summary p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.profile-summary strong {
    color: #1e40af;
    font-weight: 600;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1e40af;
    border-radius: 2px;
}

/* Skills Section */
.skills-section {
    background: #f8fafc;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: #1e40af;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category i {
    font-size: 1.2rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 500;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

.technical-skills {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.technical-skills h3 {
    color: #1e40af;
    text-align: center;
    margin-bottom: 2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tech-item {
    background: #1e40af;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease, background 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #1e40af;
    top: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 48%;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) {
    left: 0;
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) {
    left: 52%;
    margin-left: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 15px;
    height: 15px;
    background: #1e40af;
    border-radius: 50%;
    z-index: 10;
}

.timeline-item:nth-child(odd)::before {
    right: -32px;
}

.timeline-item:nth-child(even)::before {
    left: -32px;
}

.timeline-date {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background: #eff6ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.timeline-content h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.achievements {
    list-style: none;
}

.achievements li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: #374151;
    line-height: 1.6;
}

.achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #1e40af;
    font-size: 0.8rem;
}

.achievements strong {
    color: #1e40af;
    font-weight: 600;
}

.authority-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #1e40af;
}

.authority-section strong {
    color: #1e40af;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1rem;
}

/* Education Section */
.education-section {
    background: #f8fafc;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.education-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    color: #1e40af;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.degree h4 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.institution {
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.year {
    color: #9ca3af;
    font-size: 0.9rem;
}

.certification-list {
    list-style: none;
}

.certification-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
}

.certification-list li:last-child {
    border-bottom: none;
}

.certification-list li::before {
    content: '🏆';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* Udemy Courses Section */
.udemy-section {
    background: #f8fafc;
}

.udemy-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.udemy-intro p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.course-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-header i {
    font-size: 3rem;
    opacity: 0.9;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-badge.free {
    background: #10b981;
    color: white;
}

.course-content {
    padding: 2rem;
}

.course-content h3 {
    color: #1e40af;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.course-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1e40af;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.course-link:hover {
    background: #1d4ed8;
    color: white;
    transform: translateX(2px);
}

.course-link i {
    font-size: 0.8rem;
}

/* GitHub Section */
.github-section {
    background: white;
}

.github-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.github-intro p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.github-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.repositories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.repo-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.repo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #1e40af;
}

.repo-card.featured {
    border: 2px solid #1e40af;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
}

.repo-header {
    background: linear-gradient(135deg, #24292e 0%, #333 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.repo-header i {
    font-size: 2rem;
    opacity: 0.9;
}

.repo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.repo-content {
    padding: 1.5rem;
}

.repo-content h3 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.repo-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.repo-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.repo-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.repo-stats .stat i {
    font-size: 0.8rem;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #24292e;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.repo-link:hover {
    background: #1e40af;
    color: white;
    transform: translateX(2px);
}

.repo-link i {
    font-size: 0.9rem;
}

.github-cta {
    text-align: center;
    background: #f8fafc;
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.github-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #24292e;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.github-profile-btn:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.github-profile-btn i {
    font-size: 1.2rem;
}

.github-note {
    margin: 1rem 0 0 0;
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.github-note i {
    color: #3b82f6;
}

/* Hobbies Section */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.hobby-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-5px);
}

.hobby-item i {
    font-size: 3rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.hobby-item span {
    color: #374151;
    font-weight: 500;
}

/* Contact Reveal Functionality */
.contact-reveal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.show-contact-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.show-contact-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.show-contact-btn:active {
    transform: translateY(0);
}

.show-contact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.contact-value {
    margin-top: 0.5rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Modal Styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeInOverlay 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideInModal 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.modal-header h3 {
    margin: 0;
    color: #1e40af;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.modal-body {
    padding: 2rem;
}

.contact-info-display {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-display i {
    font-size: 2rem;
    color: #1e40af;
    margin-top: 0.25rem;
}

.contact-details {
    flex: 1;
}

.contact-details p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #1d4ed8;
}

.copy-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.copy-btn.copied {
    background: #10b981;
    color: white;
    border-color: #059669;
}

.modal-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.modal-note p {
    margin: 0;
    color: #1e40af;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-note i {
    color: #3b82f6;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Contact Section */
.contact-section {
    background: #f8fafc;
}

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

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

.contact-text p {
    font-size: 1.2rem;
    color: #374151;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

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

.contact-card i {
    font-size: 2rem;
    color: #1e40af;
}

.contact-card h4 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-card a {
    font-weight: 500;
    color: #1e40af;
}

/* Footer */
.footer {
    background: #1e40af;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    color: white;
    margin: 0;
}

/* Mobile Modal Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .contact-info-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-link {
        font-size: 1.1rem;
        word-break: break-all;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Additional Mobile Improvements */
@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .repositories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .github-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .repo-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .repo-header {
        padding: 1.5rem 1rem;
        min-height: 70px;
    }
    
    .repo-header i {
        font-size: 1.8rem;
    }
    
    .repo-content {
        padding: 1.25rem;
    }
    
    .repo-content h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .repo-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .repo-stats {
        gap: 0.75rem;
    }
    
    .repo-stats .stat {
        font-size: 0.8rem;
    }
    
    .repo-link {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .github-profile-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .github-cta {
        padding: 2rem 1rem;
    }
    
    .course-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .course-header {
        padding: 1.5rem 1rem;
        min-height: 80px;
    }
    
    .course-header i {
        font-size: 2rem;
    }
    
    .course-content {
        padding: 1.25rem;
    }
    
    .course-content h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .course-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .course-link {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .modal-content {
        width: 98%;
        max-height: 95vh;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 40px !important;
        margin-left: 0 !important;
    }
    
    .timeline-item::before {
        left: -33px !important;
    }
}

/* Tablet and Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
        display: block;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link:hover {
        background: #f3f4f6;
        color: #1e40af;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-item {
        left: 20px !important;
        width: calc(100% - 40px);
    }
    
    section {
        padding: 60px 0;
    }
    
    .udemy-intro p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Enhanced Mobile Styles - Small Screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 100px 0 60px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .profile-summary,
    .skill-category,
    .timeline-item,
    .education-item {
        padding: 1.5rem;
    }
    
    .tech-stack {
        gap: 0.5rem;
    }
    
    .tech-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-brand h2 {
        font-size: 1.25rem;
    }
    
    .nav-brand .nav-title {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-card i {
        font-size: 1.5rem;
    }
    
    .show-contact-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hobby-item {
        padding: 1.25rem;
    }
    
    .hobby-item i {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .navbar,
    .download-btn,
    .hamburger {
        display: none !important;
    }
    
    .header {
        margin-top: 0;
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
    
    .timeline-item,
    .skill-category,
    .education-item {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .section-title {
        margin-bottom: 20px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .title {
        font-size: 18px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    .tech-item {
        background: #e5e7eb !important;
        color: #374151 !important;
        border: 1px solid #d1d5db;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .hobbies-section {
        page-break-before: auto;
    }
    
    .contact-section {
        page-break-before: auto;
    }
    
    .footer {
        margin-top: 20px;
        padding: 10px 0;
    }
}

/* ATS-Friendly Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for accessibility */
a:focus,
button:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    .tech-item {
        background: black;
        color: white;
        border: 2px solid black;
    }
}
