/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Permanent+Marker&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #2d3748;
    --secondary-color: #4a5568;
    --accent-color: #a94442;
    --accent-dark: #8b3634;
    --accent-light: #c95f5d;
    --bg-color: #f7fafc;
    --bg-secondary: #edf2f7;
    --card-bg: #ffffff;
    --text-color: #2d3748;
    --text-light: #718096;
    --border-color: #2d3748;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

/* Navigation Bar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    z-index: 1000;
    border-bottom: 3px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
}

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

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

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

.nav-link {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

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

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Section Styles */
.section {
    min-height: 100vh;
    padding: 100px 0 50px;
    position: relative;
}

.section-title {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Home Section */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-top: 80px;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(169, 68, 66, 0.03) 49px, rgba(169, 68, 66, 0.03) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(169, 68, 66, 0.03) 49px, rgba(169, 68, 66, 0.03) 50px);
    pointer-events: none;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.profile-sketch {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-image {
    width: clamp(200px, 30vw, 300px);
    height: clamp(200px, 30vw, 300px);
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 4px solid var(--border-color);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    transform: rotate(-2deg);
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid var(--accent-color);
    border-radius: 15px 255px 15px 225px/225px 15px 255px 15px;
    transform: rotate(2deg);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 10vw, 8rem);
    color: white;
    position: relative;
    z-index: 1;
}

.home-text {
    padding: 20px 0;
}

.sketch-heading {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: -5px;
    right: -5px;
    height: 15px;
    background: var(--accent-light);
    opacity: 0.3;
    z-index: -1;
    border-radius: 5px;
    transform: rotate(-1deg);
}

.tagline {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.description {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
    padding: 12px 30px;
    border: 3px solid var(--border-color);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text-color);
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-2px);
}

.sketch-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.sketch-arrow a {
    font-size: 2rem;
    color: var(--accent-color);
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* About Section */
#about {
    background: white;
    padding-bottom: 80px;
}

.about-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.about-left,
.about-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 3px solid var(--border-color);
    border-radius: 15px 255px 15px 225px/225px 15px 255px 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-5px) rotate(0.5deg);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.info-list {
    list-style: none;
    flex-grow: 1;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: 2px dashed rgba(45, 55, 72, 0.1);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

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

.info-list strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.interests-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    flex-grow: 1;
}

.interest-tag {
    background: var(--bg-color);
    padding: clamp(0.8rem, 1.5vw, 1rem);
    border: 2px solid var(--border-color);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Caveat', cursive;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    transition: var(--transition);
}

.interest-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.02) rotate(-0.5deg);
}

.interest-tag i {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    min-width: 30px;
    text-align: center;
}

/* Skills Section */
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category h4 {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.skill-tag {
    background: var(--bg-color);
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05) rotate(-1deg);
}

/* Coursework Grid */
.coursework-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.course-item {
    background: var(--bg-color);
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.course-item:hover {
    background: var(--bg-secondary);
    transform: translateX(5px);
}

.course-name {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-color);
    font-weight: 500;
    flex: 1;
}

.course-grade {
    font-weight: 700;
    color: var(--accent-color);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    margin-left: 1rem;
}

/* CV Download Section */
.cv-download-section {
    margin-top: 3rem;
}

.cv-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 15px 255px 15px 225px/225px 15px 255px 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cv-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    color: white;
}

.cv-text {
    flex: 1;
    min-width: 200px;
}

.cv-text h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: white;
    margin-bottom: 0.5rem;
}

.cv-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.cv-card .btn {
    background: white;
    color: var(--accent-color);
    border-color: white;
    white-space: nowrap;
}

.cv-card .btn:hover {
    color: white;
    background: var(--bg-color);
    transform: translateY(-3px);
}

/* Experience Section */
#experience {
    background: var(--bg-color);
    padding-bottom: 80px;
}

.experience-category {
    margin-bottom: 4rem;
}

.category-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.category-title i {
    color: var(--accent-color);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: clamp(30px, 5vw, 50px);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: clamp(20px, 3vw, 30px);
}

.timeline-marker {
    position: absolute;
    left: clamp(-36px, -5vw, -56px);
    top: 8px;
    width: clamp(12px, 2vw, 16px);
    height: clamp(12px, 2vw, 16px);
    background: var(--accent-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-content {
    background: white;
    padding: clamp(1.2rem, 2.5vw, 1.5rem);
    border: 3px solid var(--border-color);
    border-radius: 15px 255px 15px 225px/225px 15px 255px 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(5px) rotate(0.5deg);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

.timeline-content h4 {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-color);
    font-weight: 700;
    flex: 1;
}

.timeline-date {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: var(--accent-color);
    font-weight: 600;
    white-space: nowrap;
}

.timeline-institution {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.timeline-detail {
    color: var(--text-light);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

/* Publication Link - Consistent with Timeline */
.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    transition: var(--transition);
    margin-top: 0.5rem;
}

.publication-link:hover {
    color: var(--accent-dark);
    transform: translateX(5px);
}
/* Projects Section - Slider */
#projects {
    background: white;
    padding-bottom: 80px;
}

.projects-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 0 60px;
}

.projects-slider-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.projects-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
    min-width: 100%;
    background: var(--card-bg);
    padding: clamp(1rem, 2vw, 2rem);
    border: 3px solid var(--border-color);
    border-radius: 15px 255px 15px 225px/225px 15px 255px 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.project-icon {
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

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

.project-header h3 {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.project-date {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--accent-color);
    font-weight: 600;
}

.project-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.project-tag {
    background: var(--bg-color);
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    font-weight: 500;
    transition: var(--transition);
}

.project-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Caveat', cursive;
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    transition: var(--transition);
    margin-top: auto;
}

.project-link:hover {
    color: var(--accent-dark);
    transform: translateX(8px);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(169, 68, 66, 0.3);
}

.slider-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(169, 68, 66, 0.4);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

.slider-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

.slider-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover {
    background: var(--accent-light);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Responsive Design for Projects Slider */
@media (max-width: 768px) {
    .projects-slider-container {
        padding: 0 50px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .project-card {
        padding: clamp(1.5rem, 3vw, 2rem);
    }
}

@media (max-width: 480px) {
    .projects-slider-container {
        padding: 0 40px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Contact Section */
#contact {
    background: var(--bg-color);
    padding-bottom: 80px;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.contact-intro h3 {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-intro p {
    color: var(--text-light);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: clamp(1.2rem, 2.5vw, 1.5rem);
    border: 3px solid var(--border-color);
    border-radius: 15px 255px 15px 225px/225px 15px 255px 15px;
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.contact-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    background: var(--accent-color);
    color: white;
}

.contact-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--accent-color);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    color: white;
    transform: scale(1.1);
}

.contact-card h4 {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    margin: 0;
}

.contact-card p {
    font-size: clamp(0.85rem, 1.3vw, 0.9rem);
    margin: 0;
    word-break: break-word;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    margin: 0;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Responsive Design - Tablet */
@media (max-width: 968px) {
    .home-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .profile-sketch {
        order: -1;
    }

    .cta-buttons {
        justify-content: center;
    }

    .about-main-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

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

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--bg-secondary);
    }

    .nav-link::after {
        display: none;
    }

    .section {
        padding: 80px 0 40px;
        min-height: auto;
    }

    #home {
        min-height: calc(100vh - 70px);
        padding-top: 100px;
    }

    .sketch-arrow {
        bottom: 20px;
    }

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

    .cv-card {
        flex-direction: column;
        text-align: center;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline-marker {
        left: -31px;
        width: 10px;
        height: 10px;
    }

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

    }
    
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

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

    .about-card,
    .project-card,
    .timeline-content,
    .cv-card,
    .contact-card {
        padding: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    #navbar,
    .sketch-arrow,
    .cta-buttons {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        min-height: auto;
    }

    body {
        background: white;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
