/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #FFD700;
    --dark-gold: #DAA520;
    --light-gold: #FFF8DC;
    --primary-black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #666666;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --gold-glow: 0 0 20px rgba(255, 215, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--primary-black);
    overflow-x: hidden;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.gold-bar {
    width: 200px;
    height: 4px;
    background: var(--primary-gold);
    margin: 0 auto 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.gold-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--light-gold), transparent);
    animation: loading 1.5s infinite;
}

.loading-text {
    color: var(--primary-gold);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--shadow);
}

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

.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.typing-text {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.typing-text::after {
    content: '|';
    color: var(--primary-gold);
    animation: blink 1s infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--light-gray);
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--primary-black);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
    transform: translateY(-2px);
}

.profile-card {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.card-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent);
    animation: pulse 2s ease-in-out infinite;
}

.profile-avatar {
    font-size: 6rem;
    color: var(--primary-black);
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    padding: 10px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
    border: 3px solid rgba(0, 0, 0, 0.2);
}

.profile-photo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-arrow {
    animation: bounce 2s infinite;
    color: var(--primary-gold);
    font-size: 1.5rem;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: var(--dark-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--light-gray);
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--light-gray);
}

.detail-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    width: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--gold-glow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-gray);
    font-weight: 500;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    padding: 100px 0;
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-gold), var(--dark-gold));
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    animation: timelineGrow 1s ease-out 0.2s both;
}

@keyframes timelineGrow {
    from {
        height: 0;
        top: 50%;
    }
    to {
        height: 100%;
        top: 0;
    }
}

.timeline-item {
    position: relative;
    margin: 4rem 0;
    opacity: 1;
    transform: translateY(0);
    animation: timelineItemSlide 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1.0s; }
.timeline-item:nth-child(6) { animation-delay: 1.2s; }
.timeline-item:nth-child(7) { animation-delay: 1.4s; }

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

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    transform: translateX(0);
    opacity: 1;
    animation: slideFromRight 0.8s ease-out forwards;
    animation-delay: inherit;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
    text-align: right;
    transform: translateX(0);
    opacity: 1;
    animation: slideFromLeft 0.8s ease-out forwards;
    animation-delay: inherit;
}

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

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

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 24px;
    height: 24px;
    background: var(--primary-gold);
    border-radius: 50%;
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 6px var(--primary-black), 0 0 20px rgba(255, 215, 0, 0.4);
    animation: markerPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    z-index: 10;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary-black);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: innerDot 0.4s ease-out 0.3s both;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: ripple 2s ease-out infinite;
}

@keyframes markerPop {
    0% {
        transform: translateX(-50%) scale(0) rotate(0deg);
    }
    70% {
        transform: translateX(-50%) scale(1.2) rotate(180deg);
    }
    100% {
        transform: translateX(-50%) scale(1) rotate(360deg);
    }
}

@keyframes innerDot {
    from {
        transform: translate(-50%, -50%) scale(0);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.timeline-content {
    background: rgba(255, 215, 0, 0.08);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

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

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

.timeline-content:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(255, 215, 0, 0.2),
        0 0 30px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.15);
}

.timeline-content h3 {
    color: var(--primary-gold);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
    animation: textSlideUp 0.6s ease-out 0.1s forwards;
}

.timeline-content h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.6s ease 0.8s;
}

.timeline-item:hover .timeline-content h3::after {
    width: 100%;
}

.timeline-content h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    transform: translateY(0);
    animation: textSlideUp 0.6s ease-out 0.2s forwards;
}

.timeline-date {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: block;
    font-weight: 500;
    opacity: 1;
    transform: translateY(0);
    animation: textSlideUp 0.6s ease-out 0.3s forwards;
}

.timeline-content p,
.timeline-content ul {
    opacity: 1;
    transform: translateY(0);
    animation: textSlideUp 0.6s ease-out 0.4s forwards;
}

.timeline-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.timeline-content ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 0.8rem;
    transition: var(--transition);
}

.timeline-content ul li:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

.timeline-content ul li:hover::before {
    transform: scale(1.2);
}

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

/* Progress indicators for each job */
.timeline-item::after {
    content: attr(data-year);
    position: absolute;
    right: -60px;
    top: 15px;
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: scale(0);
    animation: yearBadge 0.4s ease-out 1s forwards;
}

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

@keyframes yearBadge {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Particle effect background */
.experience::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 100px 150px, var(--primary-gold), transparent),
        radial-gradient(2px 2px at 800px 300px, var(--primary-gold), transparent),
        radial-gradient(1px 1px at 200px 500px, var(--primary-gold), transparent),
        radial-gradient(1px 1px at 600px 100px, var(--primary-gold), transparent);
    animation: particles 15s ease-in-out infinite;
    opacity: 0.3;
}

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

/* Active timeline item state */
.timeline-item.timeline-active .timeline-content {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.4);
}

.timeline-item.timeline-active .timeline-marker {
    background: var(--light-gold);
    transform: translateX(-50%) scale(1.4);
    box-shadow: 0 0 0 8px var(--primary-black), 0 0 30px rgba(255, 215, 0, 0.6);
}

.timeline-item.timeline-active .timeline-content h3 {
    color: var(--light-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Enhanced responsive design for experience section */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 70px;
        margin-right: 0;
        text-align: left;
        transform: translateX(0);
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-item::after {
        right: auto;
        left: -50px;
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: -50px;
    }
    
    .experience::after {
        background-image: 
            radial-gradient(1px 1px at 50px 100px, var(--primary-gold), transparent),
            radial-gradient(1px 1px at 300px 200px, var(--primary-gold), transparent);
    }
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 100px 0;
    background: var(--dark-gray);
}

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

.skill-category {
    background: rgba(255, 215, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--gold-glow);
}

.skill-category h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: var(--transition);
}

.skill-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.skill-item i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    min-height: 2rem;
    min-width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback styles for missing icons */
.skill-item i:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
    font-weight: 900;
}

/* Custom icon fallbacks */
.skill-item i.fab.fa-flutter:before {
    content: "🚀";
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.skill-item i.fab.fa-android:before {
    content: "🤖";
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.skill-item i.fab.fa-php:before {
    content: "⚡";
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Ensure Firebase icon displays */
.skill-item i.fas.fa-fire:before {
    content: "\f06d";
}

/* Ensure JavaScript icon displays */
.skill-item i.fab.fa-js-square:before {
    content: "\f3b9";
}

/* Ensure Git icon displays */
.skill-item i.fab.fa-git-alt:before {
    content: "\f841";
}

.skill-item span {
    color: var(--light-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 100px 0;
    background: var(--primary-black);
}

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

.project-card {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--gold-glow);
}

.project-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.project-image i {
    font-size: 3rem;
    color: var(--primary-gold);
}

.project-content h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--primary-gold);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.2);
    color: var(--white);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background: var(--dark-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--gold-glow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-black);
}

.contact-details h3 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--light-gray);
}

.contact-link {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--primary-gold);
    border-bottom: 1px solid var(--primary-gold);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.contact-form {
    background: rgba(255, 215, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: var(--gold-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-gray);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-black);
    padding: 2rem 0;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
    transform: translateY(-3px);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== EDUCATION SECTION ===== */
.education {
    padding: 100px 0;
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.education-content {
    position: relative;
    z-index: 2;
}

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    background: rgba(255, 215, 0, 0.08);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.education-item:nth-child(1) {
    animation-delay: 0.2s;
}

.education-item:nth-child(2) {
    animation-delay: 0.4s;
}

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

.education-item:hover::before {
    left: 100%;
}

.education-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.12);
}

.education-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.education-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.education-item:hover .education-icon::before {
    width: 100%;
    height: 100%;
}

.education-icon i {
    font-size: 2.5rem;
    color: var(--primary-black);
    z-index: 2;
    transition: var(--transition);
}

.education-item:hover .education-icon i {
    transform: scale(1.1) rotate(5deg);
}

.education-details {
    flex: 1;
}

.education-details h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.education-details h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.4s ease;
}

.education-item:hover .education-details h3::after {
    width: 100%;
}

.education-details h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.education-date {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: block;
    font-weight: 500;
}

.education-details p {
    color: var(--light-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* Hobbies Section */
.hobbies-section {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hobbies-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hobbies-section h3 {
    color: var(--primary-gold);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hobbies-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hobby-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.hobby-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.hobby-item i {
    font-size: 2rem;
    color: var(--primary-gold);
    transition: var(--transition);
}

.hobby-item:hover i {
    transform: scale(1.2) rotate(10deg);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hobby-item span {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design for Education */
@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hobbies-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .education-icon {
        width: 60px;
        height: 60px;
    }
    
    .education-icon i {
        font-size: 2rem;
    }
}

/* ===== FLOATING CHARACTER ===== */
.floating-character {
    position: fixed;
    width: 80px;
    height: 80px;
    z-index: 999;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    right: 50px;
    bottom: 100px;
}

.floating-character.visible {
    opacity: 1;
}

.character-container {
    position: relative;
    width: 100%;
    height: 100%;
    animation: characterFloat 4s ease-in-out infinite;
}

.character-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    object-fit: cover;
    transition: all 0.3s ease;
    animation: characterPulse 2s ease-in-out infinite;
    cursor: pointer;
    pointer-events: all;
}

.character-image:hover {
    transform: scale(1.1);
    border-color: var(--light-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.character-container::after {
    content: "💡";
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    animation: helpIndicator 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    border: 2px solid var(--primary-black);
}

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

.character-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

.speech-bubble {
    position: absolute;
    bottom: 90px;
    right: -20px;
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    min-width: 150px;
    max-width: 280px;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary-gold);
}

.speech-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bubble-text {
    display: block;
    animation: textGlow 2s ease-in-out infinite;
}

/* Character Animations */
@keyframes characterFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-5px) rotate(-2deg); 
    }
}

@keyframes characterPulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.1); 
    }
}

@keyframes textGlow {
    0%, 100% { 
        text-shadow: none; 
    }
    50% { 
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
    }
}

@keyframes moveToSection {
    0% { 
        transform: translateX(0) translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateX(-20px) translateY(-20px) rotate(5deg); 
    }
    100% { 
        transform: translateX(0) translateY(0) rotate(0deg); 
    }
}

/* Character movement states */
.floating-character.moving {
    animation: moveToSection 1.5s ease-in-out;
}

.floating-character.excited {
    animation: characterExcited 0.8s ease-in-out;
}

@keyframes characterExcited {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        transform: scale(1.2) rotate(-5deg); 
    }
    50% { 
        transform: scale(1.1) rotate(5deg); 
    }
    75% { 
        transform: scale(1.15) rotate(-3deg); 
    }
}

/* Responsive character */
@media (max-width: 768px) {
    .floating-character {
        width: 60px;
        height: 60px;
        right: 20px;
        bottom: 80px;
    }
    
    .speech-bubble {
        font-size: 12px;
        padding: 8px 12px;
        bottom: 70px;
        right: -10px;
        min-width: 120px;
    }
} 