@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --text-light: #f1f5f9;
    --text-dark: #0f172a;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light);
    font-size: 18px; /* Larger base font for elderly users */
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.logo {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.5px;
    transition: var(--transition);
}
.logo:hover {
    color: var(--primary-dark);
}
.navigation {
    display: flex;
    gap: 2.5rem;
}
.navigation a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.navigation a:hover {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

/* Main section */
section {
    padding: 120px 5% 80px;
}
.main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-light);
    margin-top: 0;
}
.main h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.main h2 span {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
}
.main h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0 2rem;
    line-height: 1.3;
}
.main-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    border: 2px solid transparent;
    transition: var(--transition);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}
.main-btn:hover {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}
.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}
.social-icons a {
    color: var(--text-light);
    font-size: 2rem;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}
.social-icons a:hover {
    color: var(--primary);
    background-color: white;
    transform: translateY(-3px);
}

/* About Me Section */
.About_me {
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.About_me h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    margin-bottom: 3rem;
    position: relative;
}
.About_me h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}
.About_me p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.About_me p:last-of-type {
    background-color: var(--light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    font-weight: 500;
    color: var(--dark);
}
.About_me .social-icons {
    justify-content: center;
    margin-top: 3rem;
}
.About_me .social-icons a {
    color: var(--dark);
    background-color: var(--light);
    font-size: 1.5rem;
}
.About_me .social-icons a:hover {
    background-color: var(--primary);
    color: white;
}

/* Skills Section */
.skills {
    background-color: var(--light);
    padding: 80px 5%;
}
.skills h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}
.skills-vertical {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.skill-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}
.skill-card:hover {
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}
.skill-header {
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: default;
}
.skill-icon {
    font-size: 2rem;
    color: var(--primary);
    width: 40px;
    text-align: center;
}
.skill-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
}
.skill-details {
    max-height: 0;
    opacity: 0;
    padding: 0 2rem;
    background-color: var(--light);
    transition: all 0.4s ease;
    visibility: hidden;
}
.skill-card:hover .skill-details {
    max-height: 150px;
    opacity: 1;
    padding: 1rem 2rem 1.5rem 2rem;
    visibility: visible;
}
.skill-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) ;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skill-details .progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}
.skill-details .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 20px;
    transition: width 0.6s ease;
}

/* Experience Section */
.experience {
    background-color: var(--light);
    padding: 80px 5%;
}
.experience h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}
.experience-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.exp-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}
.exp-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.3rem;
}
.exp-company {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
}
.exp-date {
    font-size: 1rem;
    color: var(--gray);
    background: var(--light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.exp-date i {
    font-size: 0.9rem;
    color: var(--primary);
}
.exp-details {
    list-style: none;
    padding: 0;
    margin: 0;
}
.exp-details li {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.6;
}
.exp-details li::before {
    content: "▹";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Services section */
#services {
    background-color: var(--light);
}
#services h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}
.title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
}
.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}
.card .icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
    text-align: center;
}
.info p {
    font-size: 1.1rem;
    color: var(--gray);
    text-align: center;
    line-height: 1.7;
}

/* Projects section */
.projects {
    background-color: var(--dark);
}
.projects .title {
    color: var(--text-light);
}
.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.2);
}
.project-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}
.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.03) 100%);
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.project-card:hover .project-image img {
    transform: scale(1.05);
}
.project-info {
    padding: 1.8rem;
    flex: 1;
}
.project-category {
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.project-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
}
.project-title span {
    color: var(--dark);
}
.more-details {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--primary);
    transition: var(--transition);
}
.more-details:hover {
    background-color: var(--primary);
    color: white;
}

/* Education section */
.education-container {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}
.education h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}
.edu-nav {
    width: 30%;
    border-right: 2px solid #e2e8f0;  /* subtle separator */
    padding-right: 2rem;
}
.edu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.edu-nav li {
    margin-bottom: 1rem;
}
.edu-nav a {
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.5rem 0;
    display: block;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}
.edu-nav a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}
.edu-content {
    width: 70%;
}
.edu-details {
    display: none;
}
.edu-details.active {
    display: block;
}
.edu-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;  /* light rule under header */
    padding-bottom: 1rem;
}
.edu-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}
.edu-header h3 .edu-at {
    font-weight: 400;
    color: var(--gray);
    white-space: nowrap;
}
.edu-date {
    font-size: 1rem;
    color: var(--gray);
    background: var(--light);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.edu-date i {
    color: var(--primary);
}
.edu-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.8rem 1.5rem;
}
.edu-details-list li {
    font-size: 1.1rem;
    color: var(--gray);
    padding-left: 1.5rem;
    position: relative;
}
.edu-details-list li::before {
    content: "–";              /* simple dash like the screenshot */
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact section */
.contact .card {
    text-align: center;
}
.contact .info h3 {
    margin-bottom: 0.5rem;
}
.contact .info p {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    word-break: break-word;
}
.contact .info p a {
    text-decoration: none; 
    color: inherit;         
    border: none;           
    outline: none;          
}
.contact .info p a:hover {
    color: var(--primary);  
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--text-light);
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-title {
    font-size: 1.2rem;
    font-weight: 500;
}
.footer-title span {
    color: var(--primary);
    font-weight: 700;
}
.footer .social-icons a {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
}
.footer .social-icons a:hover {
    background-color: var(--primary);
    color: white;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    body {
        font-size: 16px;
    }
    
    section {
        padding: 100px 4% 60px;
    }
    
    .main h2 span {
        font-size: 2.8rem;
    }
    
    .main h3 {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    header {
        padding: 1rem 4%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .navigation {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navigation a {
        font-size: 1rem;
        padding: 0.3rem 0;
    }
    
    .main h2 span {
        font-size: 2.2rem;
    }
    
    .main h3 {
        font-size: 1.6rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .About_me h2 {
        font-size: 2.5rem;
    }
    
    .About_me p {
        font-size: 1.1rem;
    }
    .skill-header {
        padding: 1rem 1.5rem;
    }
    .skill-name {
        font-size: 1.2rem;
    }
    .skill-icon {
        font-size: 1.6rem;
        width: 32px;
    }
    .skill-card:hover .skill-details {
        padding: 0.8rem 1.5rem 1.2rem;
    }
    .skill-percent {
        font-size: 1.3rem;
    }
    .skill-details .progress-bar {
        height: 8px;
    }
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .exp-title h3 {
        font-size: 1.3rem;
    }
    .exp-company {
        font-size: 1rem;
    }
    .exp-date {
        font-size: 0.9rem;
    }
    .exp-details li {
        font-size: 1rem;
    }
.education-container {
        flex-direction: column;
        gap: 2rem;
    }
    .edu-nav {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 1rem;
    }
    .edu-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .edu-nav li {
        margin-bottom: 0;
    }
    .edu-content {
        width: 100%;
    }
    .edu-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .edu-header h3 {
        font-size: 1.5rem;
    }
    .edu-header h3 .edu-at {
        display: block;
        white-space: normal;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
    
    .footer .social-icons {
        justify-content: center;
    }
}
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .main h2 span {
        font-size: 1.8rem;
    }
    
    .main-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .social-icons a {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .content {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
}
/* Accessibility improvements for elderly users */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --primary-dark: #0000cc;
        --text-dark: #000000;
        --text-light: #ffffff;
    }
}
