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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid #333;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.stick-logo {
    width: 30px;
    height: 30px;
    position: relative;
}

.stick-logo::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #333;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.stick-logo::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 15px;
    background: #333;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #e74c3c;
    transition: width 0.3s ease;
}

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

/* Stick Figure Base Styles */
.stick-figure {
    position: relative;
    width: 60px;
    height: 80px;
    margin: 20px auto;
}

.stick-figure .head {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid #333;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.stick-figure .body {
    position: absolute;
    width: 3px;
    height: 35px;
    background: #333;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.stick-figure .left-arm,
.stick-figure .right-arm {
    position: absolute;
    width: 20px;
    height: 3px;
    background: #333;
    top: 25px;
    transform-origin: right center;
}

.stick-figure .left-arm {
    left: 18px;
    transform: rotate(-20deg);
}

.stick-figure .right-arm {
    right: 18px;
    transform: rotate(20deg);
    transform-origin: left center;
}

.stick-figure .left-leg,
.stick-figure .right-leg {
    position: absolute;
    width: 25px;
    height: 3px;
    background: #333;
    top: 51px;
    transform-origin: top center;
}

.stick-figure .left-leg {
    left: 22px;
    transform: rotate(20deg);
}

.stick-figure .right-leg {
    right: 22px;
    transform: rotate(-20deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    padding: 0 20px;
}

.stick-hero .stick-figure {
    width: 120px;
    height: 160px;
    margin: 0 auto;
}

.stick-hero .head {
    width: 32px;
    height: 32px;
    border-width: 4px;
}

.stick-hero .body {
    width: 4px;
    height: 70px;
    top: 32px;
}

.stick-hero .left-arm,
.stick-hero .right-arm {
    width: 40px;
    height: 4px;
    top: 50px;
}

.stick-hero .left-arm {
    left: 36px;
}

.stick-hero .right-arm {
    right: 36px;
}

.stick-hero .left-leg,
.stick-hero .right-leg {
    width: 45px;
    height: 4px;
    top: 102px;
}

.stick-hero .left-leg {
    left: 44px;
}

.stick-hero .right-leg {
    right: 44px;
}

/* Waving Animation */
.stick-figure.waving .left-arm.wave {
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-80deg); }
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.highlight {
    color: #e74c3c;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e74c3c;
    animation: underline 3s ease-in-out infinite;
}

@keyframes underline {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #7f8c8d;
}

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

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #e74c3c;
    color: white;
    border: 2px solid #e74c3c;
}

.btn-primary:hover {
    background: transparent;
    color: #e74c3c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
}

/* Floating Sticks Animation */
.floating-sticks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-stick {
    position: absolute;
    width: 30px;
    height: 40px;
}

.floating-stick::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid rgba(51, 51, 51, 0.3);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.floating-stick::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: rgba(51, 51, 51, 0.3);
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.stick1 {
    top: 20%;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
}

.stick2 {
    top: 60%;
    right: 15%;
    animation: float2 8s ease-in-out infinite;
}

.stick3 {
    top: 80%;
    left: 20%;
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(-15deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

/* Section Styles */
section {
    padding: 100px 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #e74c3c;
}

/* About Section */
.about {
    background: white;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
}

.stick-figure.thinking .left-arm.up {
    transform: rotate(-90deg);
    top: 20px;
    left: 15px;
}

.thought-bubble {
    position: absolute;
    top: -30px;
    right: -20px;
}

.bubble {
    width: 25px;
    height: 20px;
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    position: relative;
}

.bubble-tail {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    bottom: -15px;
    left: 5px;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

.skills h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    background: #f8f9fa;
}

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

.project-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

/* Coding Stick Figure */
.stick-figure.coding .left-arm.typing {
    width: 15px;
    top: 30px;
    left: 25px;
    transform: rotate(-30deg);
    animation: typing 1.5s ease-in-out infinite;
}

.stick-figure.coding .right-arm.typing {
    width: 15px;
    top: 30px;
    right: 25px;
    transform: rotate(30deg);
    animation: typing 1.5s ease-in-out infinite 0.3s;
}

@keyframes typing {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(-50deg); }
}

.laptop {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 15px;
    border: 2px solid #333;
    border-radius: 2px;
}

.laptop::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -3px;
    width: 31px;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

/* Designing Stick Figure */
.stick-figure.designing .right-arm.drawing {
    width: 20px;
    top: 25px;
    right: 15px;
    transform: rotate(45deg);
    animation: drawing 2s ease-in-out infinite;
}

@keyframes drawing {
    0%, 100% { transform: rotate(45deg); }
    50% { transform: rotate(70deg); }
}

.design-board {
    position: absolute;
    top: 15px;
    right: -10px;
    width: 15px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 2px;
}

/* Presenting Stick Figure */
.stick-figure.presenting .left-arm.up {
    transform: rotate(-80deg);
    top: 20px;
}

.stick-figure.presenting .right-arm.pointing {
    transform: rotate(-30deg);
    top: 25px;
}

.presentation-board {
    position: absolute;
    top: 10px;
    right: -15px;
    width: 20px;
    height: 15px;
    border: 2px solid #333;
    border-radius: 2px;
}

.project-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.project-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background: #f1f2f6;
    color: #2c3e50;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

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

.project-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #c0392b;
}

/* Resume Section */
.resume {
    background: white;
}

.resume-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stick-figure.reading .left-arm.holding,
.stick-figure.reading .right-arm.holding {
    width: 15px;
    top: 30px;
    transform: rotate(0deg);
}

.stick-figure.reading .left-arm.holding {
    left: 20px;
}

.stick-figure.reading .right-arm.holding {
    right: 20px;
}

.document {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 25px;
    border: 2px solid #333;
    background: white;
    border-radius: 2px;
}

.document::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 3px;
    width: 12px;
    height: 2px;
    background: #333;
    box-shadow: 0 4px 0 #333, 0 8px 0 #333;
}

.resume-upload h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.resume-upload p {
    margin-bottom: 2rem;
    color: #666;
}

.file-upload-container {
    margin-bottom: 2rem;
}

#resume-upload {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

.file-upload-label i {
    margin-right: 0.5rem;
}

.resume-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.linkedin-btn {
    background: #0077b5;
    color: white;
    border: 2px solid #0077b5;
}

.linkedin-btn:hover {
    background: transparent;
    color: #0077b5;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stick-figure.phone .left-arm.phone-arm {
    transform: rotate(-70deg);
    top: 20px;
    left: 15px;
    width: 15px;
}

.phone-device {
    position: absolute;
    top: 15px;
    left: 12px;
    width: 6px;
    height: 12px;
    border: 2px solid #333;
    border-radius: 2px;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-details p,
.contact-details a {
    color: #666;
    text-decoration: none;
}

.contact-details a:hover {
    color: #e74c3c;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stick-figure.sitting .left-leg.sitting-leg,
.stick-figure.sitting .right-leg.sitting-leg {
    transform: rotate(90deg);
    width: 20px;
    top: 45px;
}

.stick-figure.sitting .left-leg.sitting-leg {
    left: 25px;
}

.stick-figure.sitting .right-leg.sitting-leg {
    right: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .about-text,
    .resume-content,
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .resume-actions {
        justify-content: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .project-card {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Resume PDF Viewer Styling */
.resume-viewer {
    margin: 2rem 0;
    border: 3px solid #e74c3c;
    border-radius: 15px;
    padding: 1rem;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-viewer:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.resume-viewer embed {
    border-radius: 8px;
    border: 2px solid #f1f2f6;
    width: 100%;
    height: 600px;
}

.resume-viewer p {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.resume-viewer p a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

.resume-viewer p a:hover {
    text-decoration: underline;
}

/* File Upload Success State */
.file-upload-label.success {
    background: #e8f5e8;
    border-color: #28a745;
    color: #28a745;
}

/* Additional Animation for File Upload */
#resume-upload:checked + .file-upload-label {
    background: #e8f5e8;
    border-color: #28a745;
    color: #28a745;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Stick Figures */
.stick-figure {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Hover Effects for Project Cards */
.project-card:hover .stick-figure {
    animation-play-state: running;
}

/* Enhanced Button Hover Effects */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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