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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
}

/* Animated Background Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Header - Same as homepage */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

/* Design & Development: Harshad Mahajan | 2025 */

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlow 2s ease-in-out infinite alternate;
    cursor: pointer;
}

@keyframes logoGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
}

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

.nav-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item a:hover {
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

.nav-item.active a {
    color: #4ecdc4;
}

.nav-item.active a::after {
    width: 100%;
}

/* Main Content */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 30% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: titleFloat 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Journey Timeline */
.journey-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: #4ecdc4;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #ff6b6b, #4ecdc4, #45b7d1);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.timeline-content {
    background: rgba(20, 20, 40, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    border: 4px solid rgba(10, 10, 10, 1);
    z-index: 10;
}

.timeline-year {
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.timeline-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Skills & Interests Grid */
.skills-section {
    padding: 4rem 2rem;
    background: radial-gradient(circle at 70% 20%, rgba(69, 183, 209, 0.1) 0%, transparent 50%);
}

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

.skill-card {
    background: rgba(20, 20, 40, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::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;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.skill-card h3 {
    color: #4ecdc4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Quote Section */
.quote-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-text {
    font-size: 2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 4rem;
    color: #4ecdc4;
    position: absolute;
    top: -20px;
}

.quote-text::before {
    left: -40px;
}

.quote-text::after {
    right: -40px;
}

.quote-author {
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: bold;
}

/* Footer - Same as homepage */
.footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.social-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.link-name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Parallax Elements */
.parallax-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
}

.parallax-circle {
    width: 100px;
    height: 100px;
    border: 2px solid #4ecdc4;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.parallax-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid #ff6b6b;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.honours-section {
    padding: 4rem 2rem;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
}

.honours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.honour-card {
    background: rgba(20, 20, 40, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.honour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.honour-slideshow {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.honour-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.honour-slide.active {
    opacity: 1;
}

.honour-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: #4ecdc4;
    transform: scale(1.2);
}

.slide-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-arrows:hover {
    background: rgba(78, 205, 196, 0.8);
}

.slide-prev {
    left: 10px;
}

.slide-next {
    right: 10px;
}

.honour-content {
    padding: 2rem;
}

.honour-title {
    font-size: 1.4rem;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.honour-event {
    font-size: 1.1rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.honour-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.honour-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.honour-achievement {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
    padding: 0.8rem;
    border-radius: 10px;
    border-left: 4px solid #4ecdc4;
    font-weight: 500;
    color: white;
}

/* Experience Section */
.experience-section {
    padding: 4rem 2rem;
    background: radial-gradient(circle at 80% 30%, rgba(69, 183, 209, 0.1) 0%, transparent 50%);
}

.experience-timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.experience-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.experience-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.experience-item:nth-child(even) {
    direction: rtl;
}

.experience-item:nth-child(even) > div {
    direction: ltr;
}

.experience-slideshow {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.experience-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.experience-slide.active {
    opacity: 1;
}

.experience-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-content {
    background: rgba(20, 20, 40, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.experience-role {
    font-size: 1.5rem;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.experience-company {
    font-size: 1.2rem;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.experience-duration {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.experience-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.experience-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.3), rgba(78, 205, 196, 0.3));
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==================== MOBILE RESPONSIVE STYLES ==================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .honours-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .experience-item {
        gap: 2rem;
    }
    
    .parallax-element {
        display: none; /* Hide decorative elements on smaller screens */
    }
}

/* Tablets */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item a {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding-top: 140px; /* Adjust for taller header */
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Timeline adjustments for mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 1.5rem;
        text-align: left;
    }
    
    .timeline-dot {
        left: 20px;
        transform: translateY(-50%);
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
    
    .timeline-year {
        font-size: 1.1rem;
    }
    
    /* Skills grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .skill-icon {
        font-size: 2.5rem;
    }
    
    /* Honours grid */
    .honours-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .honour-slideshow {
        height: 200px;
    }
    
    .honour-content {
        padding: 1.5rem;
    }
    
    .honour-title {
        font-size: 1.2rem;
    }
    
    .honour-event {
        font-size: 1rem;
    }

    /* Experience section */
    .experience-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .experience-item:nth-child(even) {
        direction: ltr;
    }
    
    .experience-slideshow {
        height: 250px;
    }
    
    .experience-content {
        padding: 1.5rem;
    }
    
    .experience-role {
        font-size: 1.3rem;
    }
    
    .experience-company {
        font-size: 1.1rem;
    }
    
    /* Quote section */
    .quote-text {
        font-size: 1.5rem;
        padding: 0 2rem;
    }
    
    .quote-text::before,
    .quote-text::after {
        font-size: 3rem;
        top: -15px;
    }
    
    .quote-text::before {
        left: -20px;
    }
    
    .quote-text::after {
        right: -20px;
    }
    
    .quote-author {
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .social-link {
        min-width: 100px;
        padding: 10px 16px;
    }
    
    .link-name {
        font-size: 0.8rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* FAB */
    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .header {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
    }
    
    .nav-item a {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding-top: 160px;
    }
    
    .hero-section {
        padding: 1.5rem 0.8rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .journey-section,
    .skills-section,
    .honours-section,
    .experience-section,
    .quote-section {
        padding: 2rem 1rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-year {
        font-size: 1rem;
    }
    
    .skill-card {
        padding: 1.2rem;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .skill-card h3 {
        font-size: 1.1rem;
    }
    
    .honour-slideshow {
        height: 180px;
    }
    
    .honour-content {
        padding: 1.2rem;
    }
    
    .honour-title {
        font-size: 1.1rem;
    }
    
    .honour-event {
        font-size: 0.9rem;
    }
    
    .honour-date {
        font-size: 0.8rem;
    }
    
    .experience-slideshow {
        height: 200px;
    }
    
    .experience-content {
        padding: 1.2rem;
    }
    
    .experience-role {
        font-size: 1.2rem;
    }
    
    .experience-company {
        font-size: 1rem;
    }
    
    .experience-duration {
        font-size: 0.9rem;
    }
    
    .experience-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .quote-text {
        font-size: 1.3rem;
        padding: 0 1rem;
        line-height: 1.5;
    }
    
    .quote-text::before,
    .quote-text::after {
        font-size: 2.5rem;
        top: -10px;
    }
    
    .quote-text::before {
        left: -15px;
    }
    
    .quote-text::after {
        right: -15px;
    }
    
    .quote-author {
        font-size: 1rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .fab {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Honour card specific adjustments */
    .honour-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .honour-achievement {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    .slide-arrows {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .slide-prev {
        left: 6px;
    }
    
    .slide-next {
        right: 6px;
    }
    
    /* Smaller dots */
    .slide-nav {
        gap: 6px;
        bottom: 6px;
    }
    
    .slide-dot {
        width: 6px;
        height: 6px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .slide-dot::before {
        width: 6px;
        height: 6px;
    }
}

/* Extra small devices (very small phones) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        padding-left: 1.5rem;
        padding-right: 1rem;
    }
    
    .timeline-dot {
        left: 15px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .honour-title {
        font-size: 1rem;
    }
    
    .honour-event {
        font-size: 0.85rem;
    }
    
    .experience-role {
        font-size: 1.1rem;
    }
    
    .experience-company {
        font-size: 0.95rem;
    }
    
    .quote-text {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }
    
    .social-link {
        width: 180px;
        min-width: 180px;
    }

    .slide-arrows {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .slide-prev {
        left: 4px;
    }
    
    .slide-next {
        right: 4px;
    }
    
    .slide-nav {
        gap: 4px;
        bottom: 4px;
    }
    
    .slide-dot {
        min-width: 24px;
        min-height: 24px;
    }
    
    .slide-dot::before {
        width: 5px;
        height: 5px;
    }

}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .main-content {
        padding-top: 100px;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .journey-section,
    .skills-section,
    .honours-section,
    .experience-section,
    .quote-section {
        padding: 2rem 1.5rem;
    }
    
    .honours-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .honour-slideshow {
        height: 200px;
    }
    
    .experience-slideshow {
        height: 220px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .slide-arrows,
    .fab {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .timeline-dot {
        border-width: 3px;
    }
}

/* Dark mode media query support */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but can add specific dark mode adjustments here if needed */
    .timeline-content,
    .skill-card,
    .honour-card,
    .experience-content {
        background: rgba(15, 15, 30, 0.9);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .star {
        animation: none;
    }
    
    .parallax-circle,
    .parallax-triangle {
        animation: none;
    }
}

/* Focus styles for better accessibility */
@media (max-width: 768px) {
    .nav-item a:focus,
    .social-link:focus,
    .fab:focus,
    .slide-arrows:focus,
    .slide-dot:focus {
        outline: 2px solid #4ecdc4;
        outline-offset: 2px;
    }
    
    /* Ensure touch targets are at least 44px */
    .slide-arrows {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .slide-prev {
        left: 8px;
    }
    
    .slide-next {
        right: 8px;
    }
    
    /* Slide dots - make them smaller */
    .slide-nav {
        gap: 8px;
        bottom: 8px;
    }
    
    .slide-dot {
        width: 8px;
        height: 8px;
        min-width: 32px; /* Touch target size */
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }
    
    .slide-dot::before {
        content: '';
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .slide-dot.active::before {
        background: #4ecdc4;
        transform: scale(1.2);
    }
    
    .fab {
        min-width: 56px;
        min-height: 56px;
    }
}