/* Global Styles */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --accent-color: #666666;
    --text-color: #1a1a1a;
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --hover-color: #404040;
    --transition-speed: 0.3s;
}

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

html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1s ease-in-out forwards;
    animation-delay: 2s;
}

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

/* Navigation */
nav {
    background-color: var(--background-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

.navbar {
    background-color: var(--card-background);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px;
    transition: all var(--transition-speed);
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-left {
    margin-right: 1rem;
}

.nav-right {
    margin-left: 1rem;
}

/* Ensure desktop navbar is always visible */
@media (min-width: 769px) {
    .nav-left, .nav-right {
        display: flex !important;
    }
    
    .nav-line {
        display: block !important;
    }
    
    .hamburger-menu {
        display: none !important;
    }
    
    /* Hide mobile navigation completely on desktop */
    .mobile-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateY(-100%) !important;
        pointer-events: none !important;
    }
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
    position: relative;
    padding: 0.5rem 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.navbar a:hover {
    color: var(--secondary-color);
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a.active {
    color: var(--secondary-color);
}

.navbar a.active::after {
    width: 100%;
}

.logo {
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    text-decoration: none;
}

.hl-logo {
    width: 40px;
    height: 40px;
    transition: transform var(--transition-speed);
    object-fit: contain;
}

.hl-logo:hover {
    transform: scale(1.1);
}

.nav-line {
    height: 2px;
    background: linear-gradient(to var(--direction, right), transparent, #333333, transparent);
    flex: 1;
    max-width: 200px;
    opacity: 0.3;
    position: relative;
}

.nav-line.left {
    --direction: right;
    margin-right: 1rem;
}

.nav-line.right {
    --direction: left;
    margin-left: 1rem;
}

.nav-line::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 20px;
    background: inherit;
    filter: blur(4px);
    opacity: 0.2;
    transform: translateY(-50%);
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 80px auto 2rem;
    padding: 0 1rem;
    animation: fadeIn 1s ease-in-out;
    flex: 1 0 auto;
    width: 100%;
}

/* Home Page */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideUp 1s ease-out;
}

.hero h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    animation: slideUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

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

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

.cta-primary:hover,
.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-primary:hover {
    background-color: #0056b3;
}

.cta-secondary:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Services Banner Section */
.services-banner {
    margin: 4rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.services-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.services-header p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.services-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.services-link:hover {
    color: var(--secondary-color);
}

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

.service-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.services-cta {
    text-align: center;
}

.services-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.services-cta-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

.services-cta-btn i {
    font-size: 1rem;
}

/* Quick Links Section */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.link-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.link-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Skills Page Styles */
.skills-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.skills-container h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.skills-container h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.skills-section {
    margin-bottom: 4rem;
}

.skills-section h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

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

.skill-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

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

.skill-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.skill-card h3 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
}

.skill-card p {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin: 0;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #40a9ff);
    border-radius: 4px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.skill-percentage {
    color: #007bff;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-percentage.visible {
    opacity: 1;
}

.skill-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.skill-card i.skill-icon {
    font-size: 2.5rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.experience {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .skills-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 1.2rem;
    }

    .skills-container h1 {
        font-size: 2rem;
    }

    .skills-section h2 {
        font-size: 1.5rem;
    }
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

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

.project-tech {
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0.5rem 0;
}

.project-date {
    color: #666;
    font-size: 0.9rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 1rem;
    transition: color var(--transition-speed);
}

.github-link:hover {
    color: var(--secondary-color);
}

/* Certifications Page */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.cert-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity var(--transition-speed);
}

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

.cert-card:hover::before {
    opacity: 1;
}

.cert-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.cert-details {
    flex: 1;
}

.cert-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cert-issuer {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cert-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.view-cert-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-speed);
    width: fit-content;
}

.view-cert-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    max-width: 95%;
    max-height: 95vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    transition: opacity 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-speed);
    z-index: 1;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Academic Achievements Section */
.academic-achievements {
    margin-top: 4rem;
}

.achievement-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.achievement-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.achievement-highlight {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.achievement-date {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-container {
    display: flex;
    gap: 2.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 4rem auto;
    position: relative;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.contact-info-section {
    flex: 1;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-info-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
}

.contact-info-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.contact-form-section {
    flex: 2;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.info-item .icon {
    font-size: 1.6rem;
    color: #333;
    width: 24px;
    text-align: center;
}

.info-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-link:hover {
    color: var(--secondary-color);
}

.current-status {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.current-status:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.current-status h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.current-status h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.current-status p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.contact-form h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        padding: 1rem;
        margin: 3rem auto;
    }

    .contact-info-section,
    .contact-form-section {
        width: 100%;
    }

    .contact-form {
        padding: 1.8rem;
    }
}

@media (max-width: 768px) {
    nav {
        margin-bottom: 2rem;
    }
    
    .contact-container {
        margin: 2rem 1rem;
    }
    
    .contact-container::before {
        width: 60px;
    }

    .contact-info-section,
    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-primary,
    .cta-secondary {
        text-align: center;
        justify-content: center;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 1.5rem 0 1rem;
    color: #fff;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 0.3rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0.25rem 0;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-speed);
    margin-bottom: 0.2rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 1rem;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-favicon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
    filter: brightness(0) invert(1);
}

.footer-favicon:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.5rem 1rem;
        height: 60px;
        flex-direction: row;
        position: sticky;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        justify-content: space-between;
        align-items: center;
    }

    .hamburger-menu {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        margin: 0;
    }

    .nav-left, .nav-right {
        display: none;
    }
    
    /* Ensure mobile nav elements are properly hidden on mobile */
    .nav-line {
        display: none;
    }

    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        text-align: center;
        margin: 0;
        width: 100%;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }
    
    .mobile-nav.active {
        display: flex;
        visibility: visible;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-line {
        display: none;
    }

    .navbar a {
        padding: 1rem 1.5rem;
        border-radius: 0;
        transition: all 0.3s ease;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        display: block;
    }

    .navbar a:hover,
    .navbar a.active {
        background-color: rgba(0, 0, 0, 0.05);
        color: var(--primary-color);
        transform: none;
        border-left: 3px solid var(--primary-color);
    }

    .navbar a:last-child {
        border-bottom: none;
    }

    .logo {
        margin: 0.5rem 0;
    }

    .nav-line {
        display: none;
    }

    /* Main Content */
    main {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    /* Mobile Typography & Spacing */
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* Better Mobile Cards */
    .skill-card,
    .project-card,
    .cert-card,
    .link-card,
    .service-card {
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    /* Mobile Grid Improvements */
    .skills-grid,
    .projects-grid,
    .certifications-grid,
    .quick-links,
    .services-grid {
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Services Banner */
    .services-banner {
        margin: 2rem 0;
        padding: 2rem 0;
        border-radius: 15px;
    }

    .services-header h2 {
        font-size: 2rem;
    }

    .services-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    .services-cta-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    /* Quick Links */
    .quick-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .link-card {
        padding: 1.5rem;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 1.2rem;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    /* Certifications Grid */
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cert-card {
        padding: 1.5rem;
    }

    .achievement-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    /* Contact Page */
    .contact-container {
        flex-direction: column;
        padding: 1rem;
        margin: 2rem auto;
        gap: 2rem;
    }

    .contact-info-section,
    .contact-form-section {
        width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .info-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* Mobile Contact Improvements */
    .contact-container::before {
        width: 60px;
        top: -1.5rem;
    }

    .contact-info-section h2,
    .contact-form h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1.2rem;
    }

    .info-item .icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .info-item p {
        font-size: 1rem;
        margin: 0;
    }

    .contact-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .contact-link:hover {
        background: rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .current-status {
        padding: 1.2rem;
        margin-top: 1.5rem;
    }

    .current-status h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .current-status p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px;
        border-radius: 8px;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* About Page */
    .about-content {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .about-header h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .language-cards {
        grid-template-columns: 1fr;
    }

    /* Resume Page */
    .resume-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .resume-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .resume-header h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .resume-frame {
        height: 600px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a:hover {
        transform: translateX(0) scale(1.05);
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 1rem;
        max-width: 100%;
        margin: 1rem;
    }
    
    .modal-content img {
        max-width: 100%;
    }

    /* Touch-friendly improvements */
    .navbar a,
    .cta-primary,
    .cta-secondary,
    .submit-btn,
    .view-cert-btn {
        min-height: 48px;
        min-width: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Mobile Button Improvements */
    .cta-primary,
    .cta-secondary,
    .submit-btn,
    .view-cert-btn,
    .services-cta-btn {
        border-radius: 12px;
        font-weight: 600;
        letter-spacing: 0.3px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .cta-primary:hover,
    .cta-secondary:hover,
    .submit-btn:hover,
    .view-cert-btn:hover,
    .services-cta-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

    /* Mobile Form Improvements */
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
        transform: translateY(-1px);
    }

    .skill-card,
    .project-card,
    .cert-card,
    .link-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Improved mobile navigation */
    .navbar a {
        padding: 0.8rem 1rem;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }

    .navbar a:hover,
    .navbar a.active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Better mobile form inputs */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        border-radius: 8px;
    }

    /* Mobile-optimized buttons */
    .submit-btn,
    .view-cert-btn {
        border-radius: 8px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    /* Improved spacing for mobile */
    .section-header,
    .skills-section,
    .experience-section,
    .timeline-section {
        margin-bottom: 2rem;
    }

    /* Mobile performance optimizations */
    .skill-card:hover,
    .project-card:hover,
    .cert-card:hover,
    .link-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* Mobile Scroll Improvements */
    html {
        scroll-behavior: smooth;
    }

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Mobile Loading Optimizations */
    .loader {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }

    /* Mobile Modal Improvements */
    .modal {
        padding: 1rem;
    }

    .modal-content {
        border-radius: 12px;
        max-height: 85vh;
    }

    /* Mobile Footer - Modern Redesign */
    footer {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        padding: 1.5rem 0 1rem;
        margin-top: 2rem;
        position: relative;
        overflow: hidden;
    }
    
    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        text-align: center;
        position: relative;
        z-index: 1;
    }
    
    .footer-section {
        padding: 1.2rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
        color: white;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        position: relative;
        display: inline-block;
    }
    
    .footer-section h4::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
        border-radius: 1px;
    }
    
    .footer-section p, .footer-section a {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0.4rem 0;
        color: rgba(255, 255, 255, 0.85);
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 1rem;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-links a {
        padding: 0.8rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        font-size: 0.85rem;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
    }
    
    .footer-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .footer-links a:hover::before {
        left: 100%;
    }
    
    .footer-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        border-color: var(--secondary-color);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .footer-links a i {
        font-size: 1rem;
        color: var(--secondary-color);
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding: 1.5rem 1.5rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(0, 0, 0, 0.2);
        position: relative;
    }
    
    .footer-bottom::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
    }
    
    .footer-logo {
        margin-top: 0.8rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
    
    .footer-favicon {
        width: 28px;
        height: 28px;
        opacity: 0.9;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        transition: all 0.3s ease;
    }
    
    .footer-favicon:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    }
    
    /* Hide Quick Links on mobile */
    .footer-section:has(h4:contains("Quick Links")) {
        display: none;
    }
    
    /* Alternative method for browsers that don't support :has() */
    .footer-section:nth-child(1) {
        display: none;
    }

    /* Mobile-friendly animations */
    .hero h1,
    .hero h2,
    .hero p {
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* Better mobile scrolling */
    .modal-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Mobile-optimized images */
    .skill-icon,
    .cert-icon img {
        max-width: 100%;
        height: auto;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-primary,
    .cta-secondary {
        max-width: 100%;
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }

    .quick-links {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .link-card {
        padding: 1.2rem;
    }

    .link-card i {
        font-size: 2rem;
    }

    .skills-grid,
    .projects-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card,
    .project-card,
    .cert-card {
        padding: 1rem;
    }

    .contact-container {
        padding: 0.5rem;
        margin: 1.5rem auto;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .info-item {
        padding: 0.8rem;
    }

    .about-content {
        margin: 1.5rem auto;
        padding: 0 0.5rem;
    }

    .about-header h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .experience-card {
        padding: 1.2rem;
    }

    .resume-container {
        margin: 1.5rem auto;
        padding: 0 0.5rem;
    }

    .resume-frame {
        height: 500px;
    }

    .footer-content {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    /* Mobile Footer - 480px Optimized */
    footer {
        padding: 1rem 0 0.8rem;
        margin-top: 1.5rem;
    }
    
    .footer-content {
        gap: 0;
        padding: 0;
    }
    
    .footer-section {
        padding: 1rem 1rem;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
        letter-spacing: 0.3px;
    }
    
    .footer-section h4::after {
        width: 35px;
        height: 1.5px;
        bottom: -6px;
    }
    
    .footer-section p, .footer-section a {
        font-size: 0.85rem;
        margin: 0.3rem 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-top: 0.8rem;
        max-width: 250px;
    }
    
    .footer-links a {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        padding: 1rem 1rem 0.8rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-favicon {
        width: 24px;
        height: 24px;
    }

    .modal-content {
        width: 98%;
        padding: 0.8rem;
        margin: 0.5rem;
    }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        gap: 2rem;
        padding: 2rem;
    }

    .about-content {
        margin: 3rem auto;
        padding: 0 2rem;
    }

    .resume-container {
        margin: 3rem auto;
        padding: 0 2rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        flex-direction: row;
        height: 60px;
        padding: 0.5rem 2rem;
    }

    .nav-left, .nav-right {
        flex-direction: row;
        gap: 1rem;
    }

    .logo {
        margin: 0;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .cta-primary,
    .cta-secondary {
        width: auto;
        max-width: none;
    }
}

/* About Page */
.about-content {
    max-width: 1000px;
    margin: 80px auto 2rem;
    padding: 0 1rem;
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.about-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.about-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #333333;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.section-header {
    margin-bottom: 2rem;
    position: relative;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #333333;
}

/* Timeline Section */
.timeline-section {
    margin-bottom: 4rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #333333, rgba(51, 51, 51, 0.1));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #333333;
    border: 4px solid var(--card-background);
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.3);
}

.timeline-content {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0;
}

.timeline-date {
    color: #333333;
    font-size: 0.9rem;
}

.timeline-title {
    color: #666;
    margin-bottom: 0.5rem;
}

.timeline-highlight {
    color: #333333;
    font-weight: 500;
}

/* Experience Section */
.experience-section {
    margin-bottom: 4rem;
}

.experience-cards {
    display: grid;
    gap: 2rem;
}

.experience-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.company-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.experience-details {
    list-style-type: none;
    padding: 0;
}

.experience-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #666;
}

.experience-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #333333;
}

/* Languages Section */
/* Technical Services Section */
.technical-services-section {
    margin: 4rem 0;
}

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

.service-item {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-item .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-item .service-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-item .service-details p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.languages-section {
    margin-bottom: 4rem;
}

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

.language-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.language-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.proficiency {
    color: #333333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-header h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .language-cards {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Technical Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-item .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
}

/* Resume Page Styles */
.resume-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.resume-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
}

.resume-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resume-viewer {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.resume-frame {
    width: 100%;
    height: 800px;
    border: none;
}

/* Optional HTML Resume Styles */
.resume-content {
    padding: 2rem;
}

.resume-section {
    margin-bottom: 2rem;
}

.resume-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .resume-container {
        margin: 2rem auto;
    }

    .resume-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .resume-header h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .resume-frame {
        height: 600px;
    }
} 