﻿/* 
===============================
TABLE OF CONTENTS
===============================
1. Variables
2. Global Styles
3. Animations
4. UI Components
5. Header
6. Navbar
7. Sections
8. About
9. Experience
10. Projects
11. Skills (Modern Design)
12. Achievements
13. Education
14. Contact
15. Footer
16. Project Details Page
17. Responsive
===============================
*/

/* ===== 1. Variables ===== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #3a86ff;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --border-color: #dee2e6;
    --accent-color: #ff5733;
}

/* ===== 2. Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #212529;
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

    a:hover {
        color: var(--secondary-color);
    }

.container {
    max-width: 1200px;
    width: 90%; /* Add this line to make it more responsive */
    margin: 0 auto;
    padding: 0 20px;
}

.section-bg {
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

    .section-title h2 {
        font-size: 2rem;
        font-weight: 700;
        display: inline-block;
        padding-bottom: 10px;
        position: relative;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 3px;
            background-color: var(--primary-color);
        }

.animate {
    opacity: 0;
}

    .animate.fadeIn {
        animation: fadeIn 0.8s ease forwards;
    }

    .animate.slideInLeft {
        animation: slideInLeft 0.8s ease forwards;
    }

    .animate.slideInRight {
        animation: slideInRight 0.8s ease forwards;
    }

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* ===== 3. Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes typing {
    from {
        width: 100%
    }

    to {
        width: 0
    }
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes particleMove {
    0% {
        left: 0%;
        opacity: 0;
        transform: scale(0.5);
    }

    5% {
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        left: 100%;
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes pulseHighlight {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 86, 179, 0.6);
    }

    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ===== 4. UI Components ===== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    cursor: pointer;
}

    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background-color: var(--primary-color);
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    .preloader.fade-out {
        opacity: 0;
        visibility: hidden;
    }

.loader {
    width: 70px;
    height: 70px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 86, 179, 0.3);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

    .custom-cursor.active {
        width: 50px;
        height: 50px;
        background-color: rgba(0, 86, 179, 0.1);
    }

/* ===== 5. Header ===== */
header {
    background: linear-gradient(135deg, var(--primary-color), #062e5e);
    color: white;
    padding: 150px 0 70px; /* Increased from 100px to give more space for the menu */
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Add this line */
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Add this line */
    text-align: center;
    position: relative;
    z-index: 1; /* Lower than nav's z-index of 1000 */
    width: 100%;
}

.profile-container {
    position: relative;
    margin: 0 auto 30px auto; /* Center horizontally */
    z-index: 1;
    display: flex; /* Add this */
    flex-direction: column; /* Add this */
    align-items: center; /* Add this */
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

    .profile-image:hover {
        transform: scale(1.05);
    }

.coding-animation {
    position: absolute;
    right: -350px;
    top: 50px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    width: 320px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.line {
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

    .line::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
        border-left: 2px solid #00ff00;
        animation: typing 3s steps(30, end) forwards;
    }

.line1::after {
    animation-delay: 0s;
}

.line2::after {
    animation-delay: 1s;
}

.line3::after {
    animation-delay: 2s;
}

.brand {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 800px;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

    .contact-info a {
        color: white;
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.1);
        padding: 8px 15px;
        border-radius: 30px;
        backdrop-filter: blur(5px);
    }

        .contact-info a:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px);
        }

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 100px;
}

.cta-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .cta-btn.primary {
        background-color: white;
        color: var(--primary-color);
    }

    .cta-btn.secondary {
        background-color: transparent;
        color: white;
        border: 2px solid white;
    }

    .cta-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .cta-btn.primary:hover {
        background-color: var(--primary-color);
        color: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .cta-btn.secondary:hover {
        background-color: white;
        color: var(--primary-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
.scroll-indicator {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%); /* This ensures it stays centered */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto; /* Remove any width constraints */
    z-index: 5; /* Ensure it's above other elements */
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto; /* Center the mouse horizontally */
}

.wheel {
    width: 6px;
    height: 10px;
    background-color: white;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.scroll-text {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap; /* Prevent text wrapping */
    text-align: center; /* Center the text */
}

/* ===== 6. Navbar ===== */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* High z-index to stay on top */
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

    nav.sticky {
        padding: 10px 0;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.4s ease;
}

nav.sticky .navbar {
    padding: 10px 0;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
}

    .nav-logo::after {
        content: '.Net Developer';
        position: absolute;
        bottom: -12px;
        left: 0;
        font-size: 0.7rem;
        letter-spacing: 3px;
        color: var(--secondary-color);
        opacity: 0.8;
    }

    .nav-logo:hover {
        transform: scale(1.05);
    }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding: 8px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

    .nav-link:hover {
        color: var(--primary-color);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* ===== 7. Sections ===== */
section {
    padding: 80px 0;
}

/* ===== 8. About ===== */
.about-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

    .about-text p {
        margin-bottom: 20px;
        font-size: 1.1rem;
        line-height: 1.8;
        color: #333;
    }

.about-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

    .about-subtitle::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background-color: var(--primary-color);
    }

.about-image-container {
    flex: 1;
    position: relative;
    padding-right: 50px;
}

.about-image {
    position: relative;
    z-index: 1;
}

    .about-image img {
        width: 100%;
        max-width: 400px;
        border-radius: 10px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

.experience-badge {
    position: absolute;
    top: 30px;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.code-snippet {
    position: absolute;
    bottom: 50px;
    right: 0;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    width: 370px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

    .code-snippet pre {
        margin: 0;
        font-family: 'Courier New', monospace;
        font-size: 12px;
        color: #f8f8f2;
        overflow-x: auto;
    }

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.about-info-item {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .about-info-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.about-info-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.about-info-item p {
    color: #555;
    line-height: 1.6;
}

/* ===== 9. Experience ===== */
/* Snake Timeline */
.snake-timeline {
    position: relative;
    padding: 40px 0 300px;
    max-width: 1200px;
    margin: 0 auto;
}

    .snake-timeline.auto-rotating::before {
        content: 'Auto-cycling stations...';
        position: absolute;
        top: 10px;
        right: 30px;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 12px;
        opacity: 0.7;
        z-index: 5;
        animation: fadeInOut 2s infinite;
    }

.company-logo.pulse-highlight {
    animation: pulseHighlight 1s ease-in-out;
}

.timeline-track {
    position: absolute;
    width: 86%;
    height: 4px;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.3), rgba(13, 110, 253, 0.1));
    top: 85px;
    left: 7%;
    z-index: 1;
    border-radius: 4px;
    opacity: 1;
    transform: scaleX(1);
    animation: fadeIn 1s ease;
}

.track-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, var(--primary-color) 30%, rgba(255,255,255,0.8) 70%);
    border-radius: 50%;
    top: -4px;
    box-shadow: 0 0 15px var(--primary-color);
    z-index: 2;
    animation: particleMove 8s infinite linear;
    opacity: 1;
}

.particle-1 {
    animation-delay: 0s;
}

.particle-2 {
    animation-delay: -2.5s;
}

.particle-3 {
    animation-delay: -5s;
}

.timeline-stations {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
    padding: 0 5%;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 1s ease;
}

.station {
    position: relative;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateY(20px);
}

.timeline-stations .station:nth-child(1) {
    animation: fadeSlideUp 0.8s 0.2s ease-out forwards;
}

.timeline-stations .station:nth-child(2) {
    animation: fadeSlideUp 0.8s 0.4s ease-out forwards;
}

.timeline-stations .station:nth-child(3) {
    animation: fadeSlideUp 0.8s 0.6s ease-out forwards;
}

.timeline-stations .station:nth-child(4) {
    animation: fadeSlideUp 0.8s 0.8s ease-out forwards;
}

.timeline-stations .station:nth-child(5) {
    animation: fadeSlideUp 0.8s 1s ease-out forwards;
}

.station-point {
    cursor: pointer;
    padding: 10px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.station.active .station-point {
    transform: translateY(-15px) scale(1.1);
}

.company-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 3px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .company-logo i {
        font-size: 28px;
        color: var(--primary-color);
        opacity: 0.85;
        transition: all 0.5s ease;
    }

.click-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

    .click-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    }

.company-logo:hover .click-tooltip {
    opacity: 1;
    visibility: visible;
    top: -35px;
}

.company-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.8), transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.station:hover .company-logo::before,
.station.active .company-logo::before {
    transform: translateX(100%);
}

.station.active .company-logo {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.3);
}

    .station:hover .company-logo i,
    .station.active .company-logo i {
        opacity: 1;
        transform: scale(1.2);
        color: var(--primary-color);
    }

.station-info {
    position: relative;
    padding: 5px;
    transition: all 0.5s ease;
}

.year {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.job-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 3px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.company-name {
    font-size: 12px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.station.active .year {
    color: var(--primary-color);
}

.station.active .job-title {
    opacity: 1;
}

.timeline-details-container {
    position: relative;
    margin-top: 60px;
    min-height: 200px;
    background: transparent;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 1.2s ease;
}

.job-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 1;
}

    .job-details.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        z-index: 2;
    }

.job-header {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

    .job-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
        border-radius: 3px;
    }

    .job-header h3 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: var(--primary-color);
        animation: fadeSlideUp 1s ease-out both;
    }

.job-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #6c757d;
    animation: fadeSlideUp 1s 0.2s ease-out both;
}

.job-company {
    font-style: italic;
}

.job-duration {
    font-weight: 600;
}

.job-body {
    animation: fadeSlideUp 1s 0.3s ease-out both;
}

.achievements {
    padding-left: 0;
    list-style-type: none;
}

    .achievements li {
        position: relative;
        padding-left: 28px;
        margin-bottom: 15px;
        line-height: 1.6;
    }

        .achievements li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 6px;
            width: 18px;
            height: 18px;
            background-color: rgba(0, 86, 179, 0.1);
            border-radius: 50%;
        }

        .achievements li::after {
            content: '✓';
            position: absolute;
            left: 4px;
            top: 0;
            color: var(--primary-color);
            font-weight: bold;
            font-size: 14px;
        }

.timeline-controls {
    text-align: center;
    margin-bottom: 30px;
}

.timeline-toggle-btn {
    background: linear-gradient(135deg, var(--primary-color), #003a80);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .timeline-toggle-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
    }

    .timeline-toggle-btn i {
        transition: all 0.3s ease;
    }

    .timeline-toggle-btn:hover i {
        transform: rotate(180deg);
    }

/* ===== 10. Projects ===== */
#projects {
    padding: 100px 0;
    background: linear-gradient(to bottom, white, #f8f9fa);
    position: relative;
    overflow: hidden;
}

    #projects::before {
        content: '';
        position: absolute;
        top: -200px;
        right: -200px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(0, 86, 179, 0.05) 0%, rgba(0, 86, 179, 0) 70%);
        border-radius: 50%;
        z-index: 0;
    }

/* Project Filter & Search */
.projects-filter-container {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.projects-search {
    flex: 1;
    max-width: 400px;
}

.search-input {
    position: relative;
}

    .search-input i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #adb5bd;
    }

    .search-input input {
        width: 100%;
        padding: 12px 15px 12px 45px;
        border: 1px solid #e9ecef;
        border-radius: 30px;
        background-color: white;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .search-input input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
        }

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    background-color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .filter-btn.active,
    .filter-btn:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Changed from 350px */
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .project-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .action-btn {
    transform: translateY(0);
    opacity: 1;
}

    .project-card:hover .action-btn:nth-child(1) {
        transition-delay: 0.1s;
    }

    .project-card:hover .action-btn:nth-child(2) {
        transition-delay: 0.2s;
    }

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-info {
    padding: 25px;
    background-color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.project-description {
    margin-bottom: 20px;
    color: #495057;
    line-height: 1.6;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tag {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-metrics {
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: auto;
}

.metric {
    text-align: center;
    flex: 1;
}

.metric-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.metric-label {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Load More Button */
.projects-pagination {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-color), #003a80);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .load-more-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 86, 179, 0.4);
    }

    .load-more-btn i {
        transition: all 0.3s ease;
    }

    .load-more-btn:hover i {
        transform: translateY(3px);
    }

    .load-more-btn.disabled {
        background: #6c757d;
        cursor: not-allowed;
    }

        .load-more-btn.disabled:hover {
            transform: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

/* ===== 11. Skills (Modern Design) ===== */
.skills-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f8f9fa, white);
    position: relative;
}

.skill-level-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.level-indicator {
    width: 40px;
    height: 8px;
    border-radius: 4px;
}

    .level-indicator.beginner {
        background-color: #ffc107;
    }

    .level-indicator.intermediate {
        background-color: #17a2b8;
    }

    .level-indicator.advanced {
        background-color: #28a745;
    }

    .level-indicator.expert {
        background-color: var(--primary-color);
    }

.skills-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.skills-overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.stat-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plus {
    font-size: 24px;
    margin-left: 3px;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Skills Grid */
.skills-grid-container {
    margin-bottom: 60px;
}

.skills-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Skill Card Flip */
.skill-card {
    perspective: 1000px;
    min-height: 280px; /* Changed from fixed height */
    height: auto;
    margin-bottom: 30px;
}

.skill-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.skill-card:hover .skill-card-inner {
    transform: rotateY(180deg);
}

.skill-card-front, .skill-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card-front {
    background-color: white;
}

.skill-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    text-align: center;
}

.skill-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.skill-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.skill-level {
    width: 100%;
}

.level-bar {
    background-color: rgba(0, 0, 0, 0.1);
    height: 8px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
}

    .level-fill.beginner {
        background-color: #ffc107;
        width: 40%;
    }

    .level-fill.intermediate {
        background-color: #17a2b8;
        width: 60%;
    }

    .level-fill.advanced {
        background-color: #28a745;
        width: 80%;
    }

    .level-fill.expert {
        background-color: var(--primary-color);
        width: 95%;
    }

.skill-card-back h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.skill-card-back p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.experience-tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.skill-level-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Radar Chart */
.skills-radar-container {
    margin-bottom: 60px;
}

.skills-radar-container {
    display: none !important;
}

.radar-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
    font-size: 1.6rem;
}

.radar-chart-container {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Skills Cloud */
.skills-cloud-wrapper {
    text-align: center;
}

.cloud-title {
    color: var(--dark-color);
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.cloud-item {
    background-color: white;
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

    .cloud-item:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        background-color: var(--primary-color);
        color: white;
    }

    .cloud-item.size-sm {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .cloud-item.size-md {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .cloud-item.size-lg {
        font-size: 1.3rem;
        font-weight: 700;
    }

/* ===== 12. Achievements ===== */
#achievements {
    padding: 100px 0;
    background-color: white;
}

.achievement-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.stat-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1;
}

.stat-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-description {
    color: #6c757d;
    line-height: 1.6;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
}

    .section-subtitle h3 {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 10px;
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }

        .section-subtitle h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 3px;
            background-color: var(--primary-color);
        }

    .section-subtitle p {
        color: #6c757d;
        max-width: 700px;
        margin: 0 auto;
    }

.recognition-section, .impact-matrix {
    margin-bottom: 80px;
}

.awards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.award-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

    .award-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.award-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.award-details {
    flex: 1;
}

    .award-details h4 {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 10px;
    }

.award-issuer {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.award-year {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.award-details p {
    color: #495057;
    line-height: 1.6;
}

.matrix-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.matrix-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: all 0.3s ease;
}

    .matrix-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.matrix-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.matrix-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.matrix-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.matrix-stats {
    display: flex;
    justify-content: space-between;
}

.matrix-stat {
    text-align: center;
    padding: 15px 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    flex: 1;
    margin: 0 5px;
}

.matrix-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.matrix-label {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

/* ===== 13. Education ===== */
#education {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.education-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.main-degree-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.degree-header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.university-logo {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .university-logo img {
        width: 80%;
        height: auto;
    }

.degree-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.degree-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 15px;
}

.university-info, .graduation-year {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

    .university-info i, .graduation-year i {
        opacity: 0.7;
    }

.degree-details {
    padding: 30px;
}

.details-section {
    margin-bottom: 30px;
}

    .details-section:last-child {
        margin-bottom: 0;
    }

    .details-section h4 {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .details-section h4 i {
            color: var(--primary-color);
        }

    .details-section p {
        margin-bottom: 15px;
        color: #495057;
        line-height: 1.6;
    }

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.achievements-list {
    padding-left: 25px;
}

    .achievements-list li {
        margin-bottom: 10px;
        color: #495057;
        line-height: 1.6;
    }

.certifications-section, .continuing-education {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.certification-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

    .certification-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.cert-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.cert-details {
    flex: 1;
}

    .cert-details h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 8px;
    }

.cert-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.cert-desc {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

.courses-timeline {
    position: relative;
    padding-left: 30px;
}

    .courses-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 100%;
        background-color: var(--primary-color);
        opacity: 0.3;
    }

.course-item {
    position: relative;
    margin-bottom: 40px;
}

    .course-item:last-child {
        margin-bottom: 0;
    }

    .course-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -30px;
        width: 15px;
        height: 15px;
        background-color: var(--primary-color);
        border-radius: 50%;
        border: 3px solid white;
        box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.3);
    }

.course-date {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.course-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.course-content p {
    color: #495057;
    line-height: 1.6;
}

/* ===== 14. Contact ===== */
#contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.contact-info-container, .contact-form-container {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-heading h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.contact-heading p {
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.method-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.method-details a, .method-details p {
    color: #495057;
    transition: all 0.3s ease;
}

    .method-details a:hover {
        color: var(--primary-color);
    }

.availability-indicator {
    margin-top: 30px;
}

.availability-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

    .status-dot.available {
        background-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
    }

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.input-container {
    position: relative;
}

    .input-container i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #adb5bd;
    }

    .input-container input, .input-container textarea {
        width: 100%;
        padding: 12px 15px 12px 45px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        background-color: #f8f9fa;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .input-container input:focus, .input-container textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
        }

    .input-container.textarea i {
        top: 22px;
    }

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), #003a80);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

    .submit-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 86, 179, 0.4);
    }

.testimonials-section {
    margin-bottom: 80px;
}

.testimonials-container {
    position: relative;
    margin: 40px 0;
}

.testimonial-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.control-prev, .control-next {
    width: 50px;
    height: 50px;
    background-color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.control-prev {
    margin-left: 30px;
}

.control-next {
    margin-right: 30px;
}

    .control-prev:hover, .control-next:hover {
        background-color: var(--primary-color);
        color: white;
        transform: scale(1.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

.testimonials-track {
    position: relative;
    height: 350px;
    margin: 40px 0;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    height: 100%;
}

    .testimonial-card.active {
        opacity: 1;
        z-index: 1;
        pointer-events: auto;
        position: relative;
        left: 0;
        transform: none;
        margin: 0 auto;
    }

.testimonial-content {
    margin-bottom: 30px;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 86, 179, 0.2);
}

    .author-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.author-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .indicator.active {
        background-color: var(--primary-color);
        width: 30px;
        border-radius: 10px;
    }

.map-container {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

    .map-pin i {
        font-size: 36px;
        color: var(--primary-color);
        margin-bottom: 5px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }

.pin-label {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* ===== 15. Footer ===== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

    .footer-column h3 {
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
        font-size: 1.2rem;
    }

        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 30px;
            height: 2px;
            background-color: var(--secondary-color);
        }

.footer-links li {
    margin-bottom: 10px;
    list-style-type: none;
}

.footer-links a {
    color: #adb5bd;
    transition: all 0.3s ease;
}

    .footer-links a:hover {
        color: white;
        padding-left: 5px;
    }

.social-links {
    display: flex;
    gap: 15px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: #2b3035;
        color: white;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2b3035;
    color: #adb5bd;
}

/* ===== 16. Project Details Page ===== */
/* Integrated styles from projectDetails.css */
#project-details {
    padding-top: 120px;
    padding-bottom: 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

    .back-link i {
        margin-right: 8px;
    }

    .back-link:hover {
        transform: translateX(-5px);
        color: var(--secondary-color);
    }

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 86, 179, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.error-container {
    text-align: center;
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 60px;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-container h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.error-container p {
    color: #666;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px; /* Merged padding from cta-btn.primary */
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase; /* From cta-btn.primary */
    letter-spacing: 1px; /* From cta-btn.primary */
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

/* Project detail styles */
.project-detail {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-banner {
    position: relative;
    height: 400px;
}

    .project-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.project-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

.project-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.project-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px;
}

.project-section {
    margin-bottom: 40px;
}

    .project-section:last-child {
        margin-bottom: 0;
    }

    .project-section h3 {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

        .project-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background-color: var(--primary-color);
        }

    .project-section p {
        color: #495057;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .project-section ul {
        padding-left: 20px;
        margin-bottom: 20px;
    }

        .project-section ul li {
            margin-bottom: 10px;
            color: #495057;
            line-height: 1.6;
        }

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .gallery-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .gallery-item img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

.sidebar-section {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    .sidebar-section:last-child {
        margin-bottom: 0;
    }

    .sidebar-section h4 {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

        .sidebar-section h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 30px;
            height: 2px;
            background-color: var(--primary-color);
        }

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack-item {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.cta-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .cta-links .cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px 20px;
    }

/* ===== 17. Responsive ===== */
/* Improved Responsive Design */

/* Laptop Screens */
@media (min-width: 1024px) and (max-width: 1600px) {
    header {
        padding-top: 100px; /* Reduced from 120px */
        height: 100vh;
    }

    .container {
        width: 95%; /* Make container slightly wider on laptops */
    }

    .profile-image {
        width: 150px; /* Slightly smaller on laptops */
        height: 150px;
    }

    /* Ensure the content is properly positioned */
    .header-content {
        padding-top: 30px;
    }

    /* Adjust the spacing for other elements */
    .brand {
        margin-top: 20px;
    }

    /* Make sure scroll indicator is visible */
    .scroll-indicator {
        bottom: 50px;
    }
}

/* Tablet Landscape */
@media (max-width: 1200px) {
    .brand {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .coding-animation {
        display: none;
    }
}

@media (max-width: 1500px) {
    .coding-animation {
        display: none;
    }
}

@media (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

        .timeline-item:nth-child(even) {
            left: 0;
        }

            .timeline-item:nth-child(odd)::after,
            .timeline-item:nth-child(even)::after {
                left: 15px;
            }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        width: 90%;
        padding: 25px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
       
        max-width: 800px;
        margin: 0 auto;
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        padding: 30px;
        opacity: 0;
        transition: all 0.5s ease;
        pointer-events: none;
        height: auto;
    }

    .testimonial-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .testimonial-controls {
        top: calc(50% - 20px);
    }

    .control-prev {
        margin-left: 15px;
    }

    .control-next {
        margin-right: 15px;
    }

    .project-detail-content {
        grid-template-columns: 1fr;
    }

    .degree-header {
        flex-direction: column;
        text-align: center;
    }

    .university-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .university-info, .graduation-year {
        justify-content: center;
    }

    .certifications-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skill-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .stat-item {
        min-width: 150px;
        padding: 20px;
    }

    .stat-value {
        font-size: 36px;
    }

    .projects-filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-search {
        max-width: 100%;
    }

    .snake-timeline {
        padding-bottom: 500px; /* Increased from 450px */
    }

    .timeline-stations {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; /* Reduced from 30px */
    }

    .station {
        margin: 0 15px;
    }

    .timeline-track {
        display: none;
    }

    .job-details {
        padding: 20px;
    }

    .about-content {
        flex-direction: column;
    }

    /* Improved tablet responsiveness for projects grid */
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    /* Improved matrix stats layout */
    .matrix-stats {
        gap: 10px;
    }

    .testimonials-track {
        position: relative;
        min-height: 350px;
        height: auto;
        margin: 40px 0;
    }

    /* Better spacing for filter buttons */
    .filter-tabs {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
    }
}

/* Landscape tablets and small laptops - new breakpoint */
@media (max-width: 900px) {
    /* Changed from 768px to 900px for navigation breakpoint */
    .menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -300px;
        width: 280px;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        padding: 50px 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 900;
    }

        .nav-links.active {
            right: 0;
        }

    .nav-link {
        margin: 15px 0;
        font-size: 1.1rem;
        text-align: center;
    }

    /* About section adjustments */
    .about-image-container {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .about-image img {
        max-width: 320px;
    }

    .experience-badge, .code-snippet {
        position: relative;
        margin: 20px auto;
        top: auto;
        right: auto;
        bottom: auto;
    }

    .code-snippet {
        width: 320px;
    }

    /* Project details adjustments */
    .project-banner {
        height: 300px;
    }

    .project-banner-overlay {
        padding: 30px;
    }

    .project-detail-title {
        font-size: 2rem;
    }
}

/* Tablet Portrait and Mobile Landscape */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 50px;
    }

    .brand {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .about-content {
        padding: 30px 20px;
    }

    .skills-filter {
        flex-wrap: wrap;
    }

    .skill-card {
        min-height: 250px;
    }

    .skill-name {
        font-size: 1.2rem;
    }

    .project-card {
        height: auto;
    }

    .project-detail-content {
        padding: 30px 20px;
    }

    .projects-filter-container {
        gap: 10px;
    }

    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .testimonial-card {
        width: 95%;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .testimonials-track {
        min-height: 400px;
    }

    .map-container {
        height: 300px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-author {
        align-items: flex-start;
        gap: 15px;
    }

    .quote-icon {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .testimonial-content {
        margin-bottom: 20px;
    }

    .footer-column {
        margin-bottom: 30px;
    }

        .footer-column h3::after {
            left: 50%;
            transform: translateX(-50%);
        }

    .social-links {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .achievement-stats, .certifications-grid {
        grid-template-columns: 1fr;
    }

    .award-card {
        flex-direction: column;
        text-align: center;
    }

    .award-icon {
        margin: 0 auto 20px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {

    .scroll-indicator {
        bottom: 115px; /* Move it up slightly on small screens */
    }

    .mouse {
        width: 24px; /* Slightly smaller on mobile */
        height: 40px;
    }

    .scroll-text {
        font-size: 10px; /* Smaller text on mobile */
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .wheel {
        width: 4px; /* Smaller wheel for the mouse */
        height: 8px;
    }

    .brand {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .about-subtitle {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .timeline-stations {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .station {
        flex-shrink: 0;
        margin: 0 10px;
    }

    .company-logo {
        width: 60px;
        height: 60px;
    }

    .job-title, .company-name {
        font-size: 0.8rem;
    }

    .job-details {
        padding: 20px 15px;
    }

    .job-header h3 {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 180px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-metrics {
        flex-wrap: wrap;
        gap: 10px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-container, .contact-form-container {
        padding: 30px 20px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .testimonials-track {
        min-height: 450px;
    }

    .testimonial-card {
        width: 100%;
        padding: 20px 15px;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .control-prev, .control-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
        opacity: 0.8;
    }

    .control-prev {
        margin-left: 5px;
    }

    .control-next {
        margin-right: 5px;
    }

    .testimonial-indicators {
        margin-top: 20px;
    }

    .snake-timeline {
        padding-bottom: 550px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }

    .skills-overview-stats {
        grid-template-columns: 1fr;
    }

    .skill-card {
        min-height: 220px;
    }

    .skills-cloud {
        gap: 8px;
    }

    .cloud-item {
        padding: 8px 15px;
    }

    .matrix-stats {
        flex-direction: column;
        gap: 10px;
    }

    .matrix-stat {
        margin: 0;
    }

    .project-detail-title {
        font-size: 1.8rem;
    }
    .author-image {
        width: 60px;
        height: 60px;
    }

    .meta-item {
        font-size: 0.8rem;
    }

    .project-section h3 {
        font-size: 1.4rem;
    }

    .tech-stack-list {
        flex-wrap: wrap;
    }

    .tech-stack-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Ultra Small Devices */
@media (max-width: 375px) {
    .brand {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .snake-timeline {
        padding-bottom: 600px;
    }

    .testimonials-track {
        height: 450px;
    }

    .project-metrics {
        flex-direction: column;
    }

    .matrix-card {
        padding: 20px 15px;
    }

    .matrix-value {
        font-size: 1.5rem;
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }

    .year {
        font-size: 12px;
    }

    .job-title, .company-name {
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    nav, .back-to-top, .preloader, .custom-cursor, .scroll-indicator, .cta-buttons, .mouse, footer, .contact-form-container, .map-container {
        display: none !important;
    }

    header {
        height: auto;
        min-height: auto;
        padding: 50px 0;
    }

    .brand {
        font-size: 2.5rem;
    }

    .section {
        padding: 40px 0;
        page-break-inside: avoid;
    }

    .project-card, .skill-card, .stat-card, .award-card, .certification-card, .matrix-card, .testimonial-card {
        break-inside: avoid;
    }

    .projects-grid, .skills-category, .certifications-grid {
        display: block;
    }

    .project-card, .skill-card, .stat-card {
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .snake-timeline {
        padding-bottom: 250px;
    }

    .testimonials-track {
        height: auto;
    }

    .testimonial-card {
        position: relative;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

        .testimonial-card:not(.active) {
            display: none;
        }

    .testimonial-controls, .testimonial-indicators {
        display: none;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }

    a[href^="#"]:after, a[href^="javascript:"]:after {
        content: "";
    }

    @page {
        margin: 1cm;
    }
}

/* Animations for skill cards */
@keyframes flipCard {
    0% {
        transform: rotateY(0);
    }

    100% {
        transform: rotateY(180deg);
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    header {
        height: -webkit-fill-available;
    }

    .nav-links {
        height: -webkit-fill-available;
    }

    .skill-card-inner {
        transform: rotateY(0deg) translateZ(1px);
    }

    .skill-card:hover .skill-card-inner {
        transform: rotateY(180deg) translateZ(1px);
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

    [dir="rtl"] .nav-links {
        right: auto;
        left: -300px;
    }

        [dir="rtl"] .nav-links.active {
            right: auto;
            left: 0;
        }

    [dir="rtl"] .section-title h2::after,
    [dir="rtl"] .about-subtitle::after,
    [dir="rtl"] .job-header::after,
    [dir="rtl"] .project-section h3::after,
    [dir="rtl"] .sidebar-section h4::after {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .section-title h2::after {
        left: auto;
        right: 50%;
        transform: translateX(50%);
    }

    [dir="rtl"] .back-to-top {
        right: auto;
        left: 30px;
    }

    [dir="rtl"] .contact-method {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .method-details {
        text-align: right;
    }

    [dir="rtl"] .award-card,
    [dir="rtl"] .info-item {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .achievement li::before,
    [dir="rtl"] .achievement li::after {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .achievement li {
        padding-left: 0;
        padding-right: 28px;
    }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: #121212;
        color: #e0e0e0;
    }

        body.dark-mode .section-bg {
            background-color: #1a1a1a;
        }

        body.dark-mode nav {
            background-color: rgba(25, 25, 25, 0.95);
        }

        body.dark-mode .nav-link {
            color: #e0e0e0;
        }

        body.dark-mode .nav-logo {
            color: var(--secondary-color);
        }

        body.dark-mode .project-card,
        body.dark-mode .skill-card-front,
        body.dark-mode .contact-info-container,
        body.dark-mode .contact-form-container,
        body.dark-mode .stat-card,
        body.dark-mode .award-card,
        body.dark-mode .matrix-card,
        body.dark-mode .sidebar-section,
        body.dark-mode .testimonial-card {
            background-color: #242424;
            color: #e0e0e0;
        }

        body.dark-mode .project-title,
        body.dark-mode .skill-name,
        body.dark-mode .stat-title,
        body.dark-mode h3,
        body.dark-mode h4 {
            color: #ffffff;
        }

        body.dark-mode .project-description,
        body.dark-mode .project-meta,
        body.dark-mode .metric-label,
        body.dark-mode .stat-description,
        body.dark-mode .cert-desc,
        body.dark-mode p {
            color: #b0b0b0;
        }

        body.dark-mode .skill-icon,
        body.dark-mode .stat-icon,
        body.dark-mode .method-icon,
        body.dark-mode .matrix-icon,
        body.dark-mode .award-icon,
        body.dark-mode .cert-icon {
            background-color: rgba(255, 255, 255, 0.1);
        }

        body.dark-mode input,
        body.dark-mode textarea {
            background-color: #333;
            color: #e0e0e0;
            border-color: #444;
        }

            body.dark-mode input::placeholder,
            body.dark-mode textarea::placeholder {
                color: #888;
            }

        body.dark-mode .input-container i {
            color: #888;
        }

        body.dark-mode .filter-btn {
            background-color: #333;
            color: #e0e0e0;
        }

        body.dark-mode .project-tag,
        body.dark-mode .tech-stack-item,
        body.dark-mode .cloud-item,
        body.dark-mode .experience-tag {
            background-color: rgba(0, 86, 179, 0.2);
        }

        body.dark-mode .level-bar {
            background-color: rgba(255, 255, 255, 0.1);
        }
}

/* Accessibility Enhancements */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

button:focus, a:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate {
        opacity: 1;
        transform: none !important;
    }

    .track-particle {
        display: none;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .project-tag,
    .cloud-item,
    .filter-btn,
    .cta-btn,
    .submit-btn,
    .tech-stack-item {
        border: 1px solid ButtonText;
    }

    .section-title h2::after,
    .about-subtitle::after,
    .job-header::after,
    .project-section h3::after,
    .sidebar-section h4::after {
        background-color: ButtonText;
    }

    .level-fill {
        border: 1px solid ButtonText;
    }
}

