body {
    transition: background 0.4s ease, color 0.4s ease;
}

* {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
/* ============================================
   HASSAN HARUNANI PORTFOLIO - STYLES
   ============================================ */

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3385e0;
    --accent-color: #ff6b35;
    --accent-light: #ff8a5b;
    --secondary-color: #00d4ff;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

/* ============================================
   DARK MODE STYLES
   ============================================ */

body.dark-mode {
    --light-bg: #1a1a2e;
    --text-dark: #e0e0e0;
    --text-light: #ffffff;
    --border-color: #333333;
    --text-muted: #b0b0b0;
    background-color: #0f0f1e;
}

body.dark-mode section {
    background-color: #1a1a2e;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .achievement-card,
body.dark-mode .activity-card,
body.dark-mode .interest-card,
body.dark-mode .info-card,
body.dark-mode .school-card,
body.dark-mode .training-card,
body.dark-mode .subject-card,
body.dark-mode .career-step {
    background-color: #262641;
    color: #e0e0e0;
}

body.dark-mode .modal-content {
    background: linear-gradient(135deg, #262641 0%, #1a1a2e 100%);
}

body.dark-mode .nav-link {
    color: #e0e0e0;
}

body.dark-mode table {
    background-color: #262641;
}

body.dark-mode .personal-bests-table tbody tr:nth-child(even) {
    background: rgba(80, 80, 120, 0.3);
}

body.dark-mode .personal-bests-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.15), rgba(255, 107, 53, 0.15)) !important;
}

body.dark-mode .achievements {
    background: linear-gradient(135deg, #262641 0%, #1f1f35 100%);
}

body.dark-mode .education {
    background: linear-gradient(135deg, #1f1f35 0%, #262641 100%);
}

body.dark-mode .activities-section {
    background: linear-gradient(135deg, #1f1f35 0%, #262641 100%);
}

body.dark-mode .swim-content,
body.dark-mode .edu-timeline-content {
    background-color: #262641;
    border-color: rgba(0, 102, 204, 0.5);
}

body.dark-mode .section-title {
    color: #3385e0;
}

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

/* ============================================
   ENHANCED ANIMATIONS
   ============================================ */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.6);
    }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

/* ============================================
   STICKY NAVIGATION BUTTONS
   ============================================ */

.sticky-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.sticky-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.sticky-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.sticky-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    animation: pulse 0.6s ease-out;
}

@media (max-width: 768px) {
    .sticky-nav {
        right: 10px;
        gap: 10px;
    }

    .sticky-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .sticky-nav {
        display: none;
    }
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    animation: slideInLeft 0.6s ease-out;
}

.logo i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

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

.nav-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 5px;
}

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

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

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

#theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin: 0 15px;
}

#theme-toggle:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
}

#searchInput {
    padding: 8px 12px;
    border-radius: 5px;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin: 0 10px;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.find-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin: 0 5px;
}

.find-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}


/* ============================================
   TEXT LINKS
   ============================================ */

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.text-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ==========================================
   HERO SECTION (FINAL CLEAN VERSION)
   ========================================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
	position: relative;
    padding: 120px 20px 60px;
    background: linear-gradient(-45deg, #0f172a, #1e3a8a, #2563eb, #f97316);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#particles-js {
    position: absolute;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;

    min-height: 75vh;
    padding: 80px 10%;

    background: linear-gradient(
        135deg,
        #003f88 0%,
        #0077cc 45%,
        #ff6b3d 100%
    );

    color: white;
}
.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-left {
    width: 55%;
}

.hero-right {
    width: 45%;
    display: flex;
    justify-content: center;
}

.hero-right img {
    width: 350px;
    max-width: 100%;
    border-radius: 20px;
}

@media (max-width: 768px)


    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-right {
        margin-top: 30px;
    }
}

/* ==========================================
   HERO TEXT STYLING
   ========================================== */

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: white;
}
.hero h1 {
    font-size: 3rem;
	 color: white;
}

/* ==========================================
   HERO BUTTONS
   ========================================== */

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

/* Orange filled button */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: #f97316;
    color: white;
    border-radius: 30px;
    padding: 12px 28px;
    border: none;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* White outline button */
.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #0d5ea6;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */

section {
    padding: 100px 10%;
}



.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin: 20px auto 0;
    border-radius: 5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 60px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.card,
.stat-card {
    transition: 0.3s ease;
}

.card:hover,
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}


.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.stat-card h4 {
    font-size: 2.5rem;
    font-weight: bold;
}


.stat-card p {
    color: var(--text-muted);
    font-weight: 600;
}

.info-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

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

.info-card strong {
    color: var(--primary-color);
}

.language-item {
    margin-bottom: 20px;
}

.language-item span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */

.achievements {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4ff 100%);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.achievement-card {
    background: var(--text-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.achievement-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.achievement-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.achievement-card p {
    color: var(--text-muted);
    line-height: 1.8;
}


/* ============================================
   SWIMMING JOURNEY SECTION
   ============================================ */

.swimming-journey {
    background: var(--light-bg);
}

.swimming-timeline {
    position: relative;
    padding: 40px 0;
    margin-bottom: 80px;
}

.swimming-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color), var(--secondary-color));
}

@media (max-width: 768px) {
    .swimming-timeline::before {
        left: 25px;
    }
}

.swim-timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.swim-timeline-item:nth-child(1) { animation-delay: 0.1s; }
.swim-timeline-item:nth-child(2) { animation-delay: 0.2s; }
.swim-timeline-item:nth-child(3) { animation-delay: 0.3s; }
.swim-timeline-item:nth-child(4) { animation-delay: 0.4s; }
.swim-timeline-item:nth-child(5) { animation-delay: 0.5s; }
.swim-timeline-item:nth-child(6) { animation-delay: 0.6s; }
.swim-timeline-item:nth-child(7) { animation-delay: 0.7s; }
.swim-timeline-item:nth-child(8) { animation-delay: 0.8s; }

.swim-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.swim-year {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px var(--light-bg), 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    padding: 10px;
    line-height: 1.2;
    transition: all 0.3s ease;
    position: relative;
}

.swim-year::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.swim-timeline-item:nth-child(2) .swim-year,
.swim-timeline-item:nth-child(4) .swim-year {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

.swim-timeline-item:nth-child(5) .swim-year {
    background: linear-gradient(135deg, var(--secondary-color), #00a8cc);
}

.swim-timeline-item:nth-child(6) .swim-year {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.swim-timeline-item:nth-child(7) .swim-year {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.swim-timeline-item:nth-child(8) .swim-year {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.swim-timeline-item:hover .swim-year {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px var(--light-bg), 0 15px 40px rgba(0, 102, 204, 0.3);
}

.swim-content {
    background: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.swim-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.swim-content:hover::before {
    left: 100%;
}

.swim-timeline-item:nth-child(2) .swim-content,
.swim-timeline-item:nth-child(4) .swim-content {
    border-left-color: var(--accent-color);
}

.swim-timeline-item:nth-child(5) .swim-content {
    border-left-color: var(--secondary-color);
}

.swim-timeline-item:nth-child(6) .swim-content {
    border-left-color: #43e97b;
}

.swim-timeline-item:nth-child(7) .swim-content {
    border-left-color: var(--primary-color);
}

.swim-timeline-item:nth-child(8) .swim-content {
    border-left-color: var(--accent-color);
}

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

.swim-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.swim-timeline-item:nth-child(2) .swim-content h4,
.swim-timeline-item:nth-child(4) .swim-content h4 {
    color: var(--accent-color);
}

.swim-timeline-item:nth-child(5) .swim-content h4 {
    color: var(--secondary-color);
}

.swim-timeline-item:nth-child(6) .swim-content h4 {
    color: #43e97b;
}

.swim-timeline-item:nth-child(7) .swim-content h4 {
    color: var(--primary-color);
}

.swim-timeline-item:nth-child(8) .swim-content h4 {
    color: var(--accent-color);
}

.swim-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.8;
}

.achievement-list {
    list-style: none;
    margin-top: 15px;
    padding-left: 0;
}

.achievement-list li {
    color: var(--text-muted);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    transition: var(--transition);
}

.achievement-list li:hover {
    padding-left: 35px;
    color: var(--primary-color);
}

.achievement-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    transition: var(--transition);
}

.achievement-list li:hover::before {
    left: 10px;
}

.swimming-stats {
    background: var(--text-light);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.swimming-stats h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.training-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.training-card {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(255, 107, 53, 0.05));
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.training-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

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

.training-card:nth-child(1) { animation-delay: 0.1s; }
.training-card:nth-child(2) { animation-delay: 0.2s; }
.training-card:nth-child(3) { animation-delay: 0.3s; }
.training-card:nth-child(4) { animation-delay: 0.4s; }

.training-card:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(255, 107, 53, 0.1));
    transform: translateY(-5px);
}

.training-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.training-card:hover i {
    transform: scale(1.2) rotateZ(10deg);
    color: var(--accent-color);
}

.training-card h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.training-card p {
    color: var(--text-muted);
}

.training-card a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.training-card a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.highlight-text {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 212, 255, 0.1));
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    margin: 15px 0;
    font-style: italic;
    color: var(--text-dark);
    transition: var(--transition);
}

.highlight-text:hover {
    border-left-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(0, 212, 255, 0.15));
}

.image-row {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}

.image-column {
    flex: 1 !important;
    text-align: center !important;
    padding: 10px !important;
}

.image-column img {
    max-width: 90% !important;
    height: auto !important;
    border-radius: 12px;
}

/* ============================================
   PERSONAL BESTS TABLE
   ============================================ */

.personal-bests-section {
    background: var(--text-light);
    padding: 60px 0;
    margin-top: 60px;
}

.personal-bests-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2rem;
    margin-top: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.table-wrapper {
    background: var(--text-light);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 40px 0;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.personal-bests-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.personal-bests-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
}

.personal-bests-table th {
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.personal-bests-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.personal-bests-table tbody tr {
    transition: all 0.3s ease;
}

.personal-bests-table tbody tr:nth-child(even) {
    background: rgba(240, 245, 255, 0.4);
}

.personal-bests-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.08), rgba(255, 107, 53, 0.08));
    transform: scale(1.01);
    box-shadow: inset 0 0 20px rgba(0, 102, 204, 0.05);
}

.personal-bests-table tbody tr:last-child td {
    border-bottom: none;
}

.event-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.not-my-stroke {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-left: 8px;
    font-weight: 600;
}

.training-note {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 204, 0.1));
    color: var(--secondary-color);
    font-weight: 600;
    text-align: center !important;
    padding: 15px 20px !important;
}

.time-cell {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), transparent);
    padding: 18px 20px;
    border-radius: 8px;
}

.meet-name {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

.date-cell {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.pb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pb-stat-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(255, 107, 53, 0.05));
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.pb-stat-card:nth-child(1) { animation-delay: 0.1s; }
.pb-stat-card:nth-child(2) { animation-delay: 0.2s; }
.pb-stat-card:nth-child(3) { animation-delay: 0.3s; }

.pb-stat-card:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(255, 107, 53, 0.1));
    transform: translateY(-5px);
}

.pb-stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.pb-stat-card:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.pb-stat-card h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.pb-stat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive Table */
@media (max-width: 1024px) {
    .personal-bests-table {
        font-size: 0.85rem;
    }

    .personal-bests-table th,
    .personal-bests-table td {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .personal-bests-table {
        font-size: 0.75rem;
    }

    .personal-bests-table th,
    .personal-bests-table td {
        padding: 10px;
    }
    
    .not-my-stroke {
        display: block;
        margin: 5px 0 0 0;
    }
}


/* ============================================
   EDUCATION SECTION
   ============================================ */

.education {
    background: var(--light-bg);
}

.education-timeline {
    position: relative;
    margin-bottom: 80px;
    padding: 40px 0;
}

.edu-timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.edu-marker {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow);
    font-size: 0.95rem;
    line-height: 1.3;
}

.edu-timeline-item:nth-child(4) .edu-marker,
.edu-timeline-item:nth-child(5) .edu-marker {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

.edu-timeline-content {
    background: var(--text-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.edu-timeline-item:nth-child(4) .edu-timeline-content,
.edu-timeline-item:nth-child(5) .edu-timeline-content {
    border-left-color: var(--accent-color);
}

.edu-timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.edu-timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.edu-timeline-item:nth-child(4) .edu-timeline-content h4,
.edu-timeline-item:nth-child(5) .edu-timeline-content h4 {
    color: var(--accent-color);
}

.edu-timeline-content p {
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.milestone {
    color: var(--accent-color);
    font-weight: 600;
}

.target {
    color: var(--primary-color);
    font-weight: 600;
}

.subjects {
    margin-top: 15px;
}

.university-list {
    list-style: none;
    margin-top: 15px;
    padding-left: 0;
}

.university-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-muted);
}

.university-list li::before {
    content: '✈️';
    position: absolute;
    left: 0;
}

.subjects-section {
    background: var(--text-light);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.subjects-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.subjects-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.subject-card {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.subject-card:hover::before {
    left: 0;
}

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

.subject-card.science {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.subject-card.math {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.subject-card.english {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.subject-card.language {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.subject-card.humanities {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.subject-card.tech {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.subject-code {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    opacity: 0.9;
}

.subject-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.level {
    font-size: 0.9rem;
    opacity: 0.8;
}

.education-info {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(255, 107, 53, 0.05));
    padding: 40px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.education-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.school-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.school-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.school-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   INTERESTS SECTION
   ============================================ */

.interests {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4ff 100%);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.interest-card {
    background: var(--text-light);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.interest-card.featured {
    border-top: 4px solid var(--accent-color);
}

.interest-card:not(.featured) {
    border-top: 4px solid var(--primary-color);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.interest-card:not(.featured) .card-icon {
    color: var(--primary-color);
}

.interest-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.interest-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.interest-card.featured .skill-tag {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

/* Career Path */
.career-path {
    background: var(--text-light);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.career-path h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.career-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.career-step {
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(255, 107, 53, 0.05));
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.career-step:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(255, 107, 53, 0.1));
}

.career-step h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.career-step p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}


/* ==========================================
   GALLERY SECTION
   ========================================== */

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
    gap: 700px;
    margin-top: 40px;
}

.image-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    transition: 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

.image-grid img {
    transition: 0.4s ease;
}

@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-card .icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.contact-form .btn {
    margin-top: 10px;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */

.social-links {
    background: var(--text-light);
    padding: 50px 0;
    text-align: center;
    border-top: 2px solid var(--border-color);
}

.social-links p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    transform: translateY(-5px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid var(--border-color);
}

.footer p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .about-content,
    .education-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .achievements-grid,
    .interests-grid {
        grid-template-columns: 1fr;
    }

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

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

    .career-timeline {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: 50px 0;
    }

    .edu-timeline-item {
        grid-template-columns: 1fr;
    }

    .edu-marker {
        margin-bottom: 20px;
    }

    .swim-timeline-item {
        grid-template-columns: 1fr;
    }

    .swim-marker {
        margin-bottom: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .profile-placeholder {
        width: 200px;
        height: 200px;
        font-size: 100px;
    }

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

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

    .social-icons {
        gap: 15px;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .training-info {
        grid-template-columns: 1fr;
    }
	
.flex-container {
    display: block;
    margin: 40px auto;
    max-width: 300px;
    width: 50%;
    border-radius: 15px;
	align-items: center;
    justify-content: center;
	
}

}

}


/* ============================================
   SUBJECT SYLLABUS MODAL
   ============================================ */

.subject-card {
    cursor: pointer;
}

.click-hint {
    font-size: 0.75rem;
    opacity: 0;
    transition: var(--transition);
    margin-top: 8px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.subject-card:hover .click-hint {
    opacity: 1;
}

.subject-card:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: var(--text-light);
    padding: 50px;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

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

.close-btn {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-bg);
}

.close-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 107, 53, 0.1);
    transform: rotate(90deg);
}

.modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
}

.syllabus-content {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.syllabus-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.syllabus-content h4 {
    color: var(--accent-color);
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.syllabus-content ul,
.syllabus-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.syllabus-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.syllabus-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.syllabus-content strong {
    color: var(--primary-color);
}

.code-display {
    background: var(--light-bg);
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    margin: 15px 0;
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px;
        width: 95%;
        max-height: 90vh;
    }

    .modal-body h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .close-btn {
        right: 20px;
        top: 15px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }

    .syllabus-content h3 {
        font-size: 1.1rem;
    }

    .syllabus-content h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        width: 98%;
    }

    .modal-body h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .close-btn {
        right: 15px;
        top: 10px;
        font-size: 1.3rem;
        width: 30px;
        height: 30px;
    }

    .syllabus-content {
        font-size: 0.95rem;
    }

    .code-display {
        font-size: 0.9rem;
        padding: 10px;
    }
}


/* ============================================
   INTERESTS MODAL
   ============================================ */

.click-interest-hint {
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
    margin-top: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.interest-card:hover .click-interest-hint {
    opacity: 1;
}

/* Interest Modal */
.interest-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent-color);
}

.interest-modal-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.interest-modal-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
}

.interest-modal-content {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.interest-modal-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.interest-modal-content h4 {
    color: var(--accent-color);
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.interest-modal-content ul,
.interest-modal-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.interest-modal-content li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.interest-modal-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.interest-modal-content strong {
    color: var(--primary-color);
}

.interest-highlight {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(255, 107, 53, 0.1));
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    margin: 20px 0;
}

.interest-highlight strong {
    color: var(--accent-color);
}

.achievement-highlight {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 212, 255, 0.1));
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--secondary-color);
}

/* Responsive Interest Modal */
@media (max-width: 768px) {
    .interest-modal-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .interest-modal-icon {
        font-size: 2.5rem;
    }

    .interest-modal-header h2 {
        font-size: 1.5rem;
    }

    .interest-modal-content h3 {
        font-size: 1.1rem;
    }

    .interest-modal-content h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .interest-modal-icon {
        font-size: 2rem;
    }

    .interest-modal-header h2 {
        font-size: 1.3rem;
    }

    .interest-highlight,
    .achievement-highlight {
        padding: 12px;
        font-size: 0.95rem;
    }

}


.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: contain;

	@media (max-width: 768px) {
    .image-grid img {
        height: auto;
    }
}

	
}

}

.image-grid img:hover {
    transform: scale(1.05);
}

}

.image-grid img {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    text-align: center;
  }

  .image {
    width: 90%;
  }

  nav ul {
    flex-direction: column;
  }
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */

img {
    max-width: 100%;
    height: auto;
}

/* Stack sections properly on small screens */
@media (max-width: 768px) {

    .about-content,
    .contact-content,
    .training-info,
    .career-timeline {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .personal-bests-table {
        font-size: 0.8rem;
    }
}


img {
  max-width: 100%;
  height: auto;
}



section {
    padding: 80px 20px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

h2.section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    margin-bottom: 40px;
    font-size: 1rem;
    opacity: 0.8;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background: #111;
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}


/* ==========================================
   HERO FADE-IN ANIMATION
   ========================================== */

.hero-left {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.hero-right {
    animation: fadeUp 1.2s ease forwards;
    opacity: 0;
}

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



/* ==========================================
   FLOATING HERO IMAGE
   ========================================== */

.hero-right img {
    animation: float 4s ease-in-out infinite;
}

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


/* ==========================================
   NAVBAR SCROLL EFFECT
   ========================================== */

.navbar {
    transition: 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}


/* ==========================================
   PREMIUM LIGHTBOX
   ========================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 75vw;
    max-height: 75vh;
    border-radius: 20px;
    animation: zoomIn 0.3s ease;
}

.lightbox-caption {
    margin-top: 20px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: scale(1.2);
    transition: 0.2s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* ==========================================
   CLICK TO EXPAND IMAGE
   ========================================== */

.image-card {
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
}

.image-card img {
    width: 100%;
    border-radius: 15px;
    transition: all 0.4s ease;
}

/* Expanded state */
.image-card.active {
    grid-column: span 3;
    z-index: 5;
}

.image-card.active img {
    transform: scale(1.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}


@media (max-width: 768px) {
    section {
        padding: 60px 8%;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #ff6b3d;
    display: block;
    margin: 15px auto 0;
    border-radius: 10px;
}


/* ==========================================
   DARK MODE TOGGLE BUTTON
   ========================================== */

.theme-toggle {
    background: none;
    border: 2px solid white;
    color: white;
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
}

.theme-toggle:hover {
    background: white;
    color: black;
}




/* =========================================
   MOBILE FIXES (PHONES ONLY)
   ========================================= */

@media (max-width: 768px) {

    /* Make sure navbar stays fixed */
    nav {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }

    /* Push ONLY the hero content down */
    .hero {
        padding-top: 140px;   /* Adjust if needed */
    }

    /* Extra safety: push the heading slightly */
    .hero h1 {
        margin-top: 20px;
    }

}



nav a {
    position: relative;
    text-decoration: none;
    color: inherit;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav a.active {
    background: linear-gradient(90deg, #3b82f6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f97316;
}


.find-container{
  display:flex;
  gap:8px;
  align-items:center;
}

#searchInput{
  padding:8px 12px;
  border-radius:8px;
  border:1px solid #ccc;
  outline:none;
  font-size:14px;
}

.find-btn{
  padding:8px 14px;
  border-radius:20px;
  border:none;
  background:#1da1f2;
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.find-btn:hover{
  background:#0d8ae6;
}

mark {
  background: yellow;
  color: black;
  padding: 2px;
  border-radius: 3px;
}

.top-tools{
    position: absolute;
    left: 20px;
    top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.top-tools input{
    padding: 6px;
    border-radius: 6px;
    border: none;
}

.top-tools button{
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    background: #1aa3ff;
    color: white;
    cursor: pointer;
}

#searchMessage{
  margin-top:6px;
  font-size:14px;
  font-weight:500;
}

.not-found{
  color:#ff4d4d;
}

.found{
  color:#4CAF50;
}



/* ============================================
   ACTIVITIES SECTION
   ============================================ */

.activities-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #f8f9fa 100%);
    padding: 100px 10%;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.activity-card {
    background: var(--text-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
    position: relative;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-color);
}

.activity-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.activity-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.activity-timeline {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
}

.activity-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.activity-card ul {
    list-style: none;
    margin-bottom: 15px;
}

.activity-card li {
    color: var(--text-muted);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.activity-card li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.activity-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .activity-card {
        padding: 30px;
    }
}






