/* Modern variables */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #4a90e2;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --transition: all 0.3s ease;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    height: 40px;
    width: 40px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 65%;
    transition: var(--transition);
}

.nav-logo:hover img {
    transform: scale(1.1);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background: var(--light-bg);
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-text h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: linear-gradient(45deg, 
        rgba(128, 20, 40, 0.15),
        rgba(128, 20, 40, 0.05));
    border: 2px solid rgba(128, 20, 40, 0.2);
    animation: jellyMorph 12s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
    filter: drop-shadow(0 0 15px rgba(128, 20, 40, 0.2));
    transform-origin: center center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg,
        rgba(128, 20, 40, 0.1),
        rgba(128, 20, 40, 0.03));
    border: 1px solid rgba(128, 20, 40, 0.15);
    animation: jellyMorph 12s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite reverse;
    filter: blur(8px);
    transform-origin: center center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 65%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.95);
    transform: translateZ(0);
}

.hero-image img:hover {
    filter: saturate(1.05);
    box-shadow: 0 0 40px rgba(128, 20, 40, 0.25);
    transform: scale(1.25);
}

.hero-image:hover::before {
    transform: scale(0.8);
    opacity: 0.7;
    filter: drop-shadow(0 0 15px rgba(128, 20, 40, 0.15));
}

.hero-image:hover::after {
    transform: scale(0.85);
    opacity: 0.6;
    filter: blur(6px);
}

@keyframes jellyMorph {
    0% {
        border-radius: 65% 35% 55% 45% / 45% 55% 35% 65%;
        transform: rotate(0deg) scale(1);
    }
    33% {
        border-radius: 45% 55% 35% 65% / 55% 45% 65% 35%;
        transform: rotate(120deg) scale(1.1);
    }
    66% {
        border-radius: 55% 45% 65% 35% / 35% 65% 45% 55%;
        transform: rotate(240deg) scale(1.1);
    }
    100% {
        border-radius: 65% 35% 55% 45% / 45% 55% 35% 65%;
        transform: rotate(360deg) scale(1);
    }
}

/* Sections */
section {
    padding: 100px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

/* About Section */
.about {
    background: #fff;
    overflow: hidden;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-paragraph {
    position: relative;
    padding: 2rem;
    border-radius: 15px;
    background: var(--light-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    max-width: 80%;
}

.about-paragraph:nth-child(even) {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(128, 20, 40, 0.05), rgba(128, 20, 40, 0.02));
    border-left: 3px solid rgba(128, 20, 40, 0.2);
}

.about-paragraph:nth-child(odd) {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(74, 144, 226, 0.02));
    border-right: 3px solid rgba(74, 144, 226, 0.2);
}

.about-paragraph p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-paragraph:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-paragraph.highlight {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .about-content {
        padding: 0 1rem;
        gap: 2rem;
    }

    .about-paragraph {
        max-width: 95%;
        padding: 1.5rem;
    }

    .about-paragraph p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

/* Experience Section */
.experience {
    background: var(--light-bg);
}

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

.timeline-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-item span {
    color: #666;
    font-size: 0.9rem;
}

.timeline-item ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* Education Section */
.education {
    background: #fff;
}

.education-items {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: var(--transition);
}

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

/* Skills Section */
.skills {
    background: var(--light-bg);
}

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

.skill-category {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

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

.skill-category li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-color);
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

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

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
    }
    
    .skill-category li {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
}

/* Contact Section */
.contact {
    background: #fff;
    text-align: center;
}

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

.social-links a {
    font-size: 2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

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

    .nav-links {
        display: none;
    }

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

    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .hero-image::before {
        width: 270px;
        height: 270px;
    }
    
    .hero-image::after {
        width: 290px;
        height: 290px;
    }
}

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Badge of Honor Section */
.badge {
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.badge-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.youtube-stats {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.youtube-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.youtube-icon {
    font-size: 3rem;
    color: #ff0000;
    margin-bottom: 2rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.youtube-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.youtube-link i {
    margin-left: 0.5rem;
}

.youtube-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .youtube-stats {
        padding: 2rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }
}