/* Reset and Base Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background-color: #ffffff;
    --light-bg: #f3f4f6;
    --dark-bg: #111827;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --focus-outline: 3px solid var(--primary-color);
    --focus-outline-offset: 2px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    max-width: 70ch;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    text-underline-offset: 0.2em;
}

a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

a:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    margin: 0 auto;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.nav-links a:hover, .nav-links a:focus {
    background-color: var(--light-bg);
}

.nav-links a[aria-current="page"] {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus {
    background-color: var(--light-bg);
}

.mobile-menu-btn:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    margin-top: -5vh; /* Reduce space above the title */
}

.hero h1 {
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: white;
}

.hero h2 {
    color: white;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
    color: white;
    max-width: 100%;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
    flex-wrap: wrap;
    margin-bottom: 1.5rem; /* Reduced from 3rem to 1.5rem */
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

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

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover, .cta-button:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cta-button:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -2px;
    animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

/* About Section */
.about {
    padding: 8rem 0;
    background-color: var(--light-bg);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
    display: block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    width: 100%;
    max-width: 800px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 0;
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Experience Section */
.experience {
    padding: 8rem 0;
    background-color: var(--background-color);
    width: 100%;
    position: relative;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(30, 64, 175, 0.03) 100%);
    z-index: 0;
}

.experience .container {
    position: relative;
    z-index: 1;
}

.experience h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.experience h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.timeline {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 2.5rem;
    background-color: var(--background-color);
    position: relative;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    width: 100%;
    border-left: 4px solid var(--primary-color);
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 0 0 0 100%;
    z-index: 0;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -60px;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.timeline-content h4 {
    margin: 5px 0;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.timeline-content .date {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
}

/* Education Section */
.education {
    padding: 8rem 0;
    background-color: var(--background-color);
    width: 100%;
    position: relative;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(30, 64, 175, 0.03) 100%);
    z-index: 0;
}

.education .container {
    position: relative;
    z-index: 1;
}

.education h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.education h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.education-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.education-item {
    background-color: var(--background-color);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 0 0 0 100%;
    z-index: 0;
}

.education-item h3 {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.education-item .date {
    color: var(--light-text);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
}

.education-item .grade {
    color: var(--success-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 1rem;
}

.education-item h4 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.education-item ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.education-item ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.education-item ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.thesis-link {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.thesis-link:hover, .thesis-link:focus {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.thesis-link:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Certifications Section */
.certifications {
    padding: 8rem 0;
    width: 100%;
    background-color: var(--light-bg);
    position: relative;
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    z-index: 0;
}

.certifications .container {
    position: relative;
    z-index: 1;
}

.certifications h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.certifications h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-item {
    background-color: var(--background-color);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.cert-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.cert-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cert-item:hover i {
    transform: scale(1.1);
}

.cert-item h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.cert-item p {
    color: var(--light-text);
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background-color: var(--background-color);
    width: 100%;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(30, 64, 175, 0.03) 100%);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
    display: block;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
    padding: 1rem;
    border-radius: 50%;
    transition: var(--transition);
}

.contact-item:hover i {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: white;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 0 0 0 100%;
    z-index: 0;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 600px;
    z-index: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--background-color);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    color: var(--light-text);
    transition: var(--transition);
    pointer-events: none;
    background-color: var(--background-color);
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.submit-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.submit-btn:hover, .submit-btn:focus {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.submit-btn:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--light-text);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

.hero-content,
.about-content,
.timeline-item,
.education-item,
.cert-item {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .timeline {
        padding: 0 1.5rem;
    }
    
    .timeline-content {
        padding: 15px 25px;
    }
    
    .about-content,
    .education-content,
    .cert-grid,
    .contact-content,
    .timeline {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .about-text {
        max-width: 700px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        max-width: 100%;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        margin-bottom: 30px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-content::before {
        left: -40px;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -40px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .about, .education, .certifications, .contact, .experience {
        padding: 6rem 0;
    }
    
    .about-content,
    .education-content,
    .cert-grid,
    .contact-content,
    .timeline {
        padding: 0 1.5rem;
    }
    
    .about-text {
        max-width: 600px;
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-item {
        width: calc(50% - 1rem);
    }
    
    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .timeline {
        padding: 0 1rem;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-content {
        padding: 15px 20px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .about, .education, .certifications, .contact, .experience {
        padding: 5rem 0;
    }
    
    .about-content,
    .education-content,
    .cert-grid,
    .contact-content,
    .timeline {
        padding: 0 1.5rem;
    }
    
    .about-text {
        max-width: 500px;
    }
    
    .education-item,
    .cert-item,
    .contact-form {
        padding: 2rem;
    }
    
    .contact-item {
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-content::before {
        left: -30px;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -30px;
    }
    
    .about, .education, .certifications, .contact, .experience {
        padding: 4rem 0;
    }
    
    .about-content,
    .education-content,
    .cert-grid,
    .contact-content,
    .timeline {
        padding: 0 1rem;
    }
    
    .about-text {
        max-width: 100%;
    }
    
    .education-item,
    .cert-item,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Reduced Motion */
@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 */
@media (forced-colors: active) {
    .cta-button, .submit-btn, .thesis-link {
        border: 2px solid currentColor;
    }
    
    .timeline-content::before {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .hero, .scroll-indicator, .mobile-menu-btn, .cta-buttons {
        display: none;
    }
    
    body {
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .timeline::before {
        border-left: 2px solid black;
    }
    
    .timeline-content::before {
        border: 2px solid black;
    }
} 