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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
}

p {
    margin-bottom: 1.5rem;
    color: #475569;
}

a {
    text-decoration: none;
    color: #2563eb;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    border-radius: 50%;
}

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

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #2563eb;
}

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

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #1e3a8a;
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section with Moving Background */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.7));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white;
}

/* Animated Background Elements */
.bg-animated {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
    animation: float 15s infinite ease-in-out;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #2563eb 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation-delay: 5s;
}

.bg-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Animated Section Background */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #2563eb 0%, rgba(37, 99, 235, 0));
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(150px, -150px);
    z-index: 0;
}

.animated-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(225deg, #2563eb 0%, rgba(37, 99, 235, 0));
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(-150px, 150px);
    z-index: 0;
}

/* Section Styles */
section {
    padding: 6rem 2rem;
    position: relative;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #2563eb;
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-top: -3rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background-color: #fff;
    position: relative;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text {
    max-width: 800px;
}

.about-text h3 {
    margin-bottom: 1.5rem;
    color: #1e3a8a;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-text .btn {
    margin-top: 1rem;
}

.about-gallery {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

.video-wrapper {
    width: 100%;
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
    animation-delay: 0.3s;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

/* Experience Section */
.experience {
    background-color: #f1f5f9;
    position: relative;
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #cbd5e1;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

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

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

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

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 4px solid #2563eb;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

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

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

.timeline-content {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content h4 {
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-content p {
    margin-bottom: 0;
    color: #64748b;
}

.timeline-date {
    color: #2563eb;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Skills Section */
.skills {
    background-color: #fff;
    position: relative;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.skill-category h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1.4rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: #4b5563;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #2563eb;
}

/* Projects Section */
.projects {
    background-color: #f1f5f9;
    position: relative;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 0.6s forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.8rem;
}

.project-content h3 {
    color: #1e3a8a;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.project-content p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Fitness Section */
.fitness-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.fitness-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.fitness-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.fitness-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.fitness-item:hover img {
    transform: scale(1.05);
}

.fitness-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.video-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
    animation-delay: calc(var(--i) * 0.15s);
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-item video {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact {
    background-color: #fff;
    position: relative;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.contact-item p {
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-item a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #f1f5f9;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before, footer::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.05;
}

footer::before {
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: 10%;
    left: 10%;
}

footer::after {
    background: radial-gradient(circle, #2563eb 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    list-style: none;
}

.social-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.social-links a:hover {
    color: #2563eb;
}

.footer-logo {
    max-width: 80px;
    margin: 0 auto 1.5rem;
}

.footer-logo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copyright {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-gallery,
    .fitness-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .fitness-videos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        flex-basis: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        margin: 0.75rem 0;
    }

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

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

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

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

    .timeline-item::after {
        left: 20px;
    }

    .timeline-item:nth-child(odd)::after {
        right: auto;
        left: 20px;
    }

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

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

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

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
    }

    .hero-image {
        width: 150px;
        height: 150px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

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

    .fitness-gallery {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #1e3a8a;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-tag {
    background-color: rgba(101, 190, 255, 0.15);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    border: 1px solid rgba(101, 190, 255, 0.3);
}

.skill-tag:hover {
    background-color: rgba(101, 190, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}