/* Font Face */
@font-face {
    font-family: 'Boogaloo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/boogaloo.ttf') format('truetype');
}

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

/* Twemoji Support */
img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
    display: inline-block;
}

.skill-icon img.emoji {
    height: 8rem;
    width: 8rem;
    margin: 0;
    vertical-align: middle;
}

.feature-icon img.emoji {
    height: 3rem;
    width: 3rem;
    margin: 0;
    vertical-align: middle;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xl);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23ffffff" fill-opacity="0.1"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

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

.name {
    font-family: 'Boogaloo', cursive;
    font-size: 52pt;
    font-weight: 400;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.95;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

.organization {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInDown 0.8s ease-out 0.4s backwards;
}

/* Main Content */
main {
    padding: 60px 40px;
}

section {
    margin-bottom: 60px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.skills-section h3,
.experience-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-card:hover::before {
    opacity: 0.1;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 8rem;
    display: block;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.skill-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

/* Skill Pop-up Styles */
.skill-popup {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 320px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
}

.skill-card:hover .skill-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
                0 10px 20px rgba(102, 126, 234, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    backdrop-filter: blur(10px);
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.popup-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.05));
}

.popup-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--dark);
    margin: 0;
    text-align: left;
    position: relative;
    z-index: 1;
}

/* Experience Section */
.experience-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 40px;
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: 0;
}

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

.portfolio-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray);
}

/* Unique gradient for each portfolio item */
.portfolio-item:nth-child(1) .portfolio-image {
    background: var(--gradient-1);
}

.portfolio-item:nth-child(2) .portfolio-image {
    background: var(--gradient-2);
}

.portfolio-item:nth-child(3) .portfolio-image {
    background: var(--gradient-3);
}

.portfolio-item:nth-child(4) .portfolio-image {
    background: var(--gradient-4);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 30px 40px;
}

footer p {
    font-size: 1.23rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-family: 'Boogaloo', cursive;
        font-size: 66pt;
    }

    .title {
        font-size: 1.4rem;
    }

    .organization {
        font-size: 1rem;
    }

    main {
        padding: 40px 20px;
    }

    .portfolio {
        padding: 40px 20px;
        margin-left: -20px;
        margin-right: -20px;
    }

    h2 {
        font-size: 2rem;
    }

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

    .skill-icon {
        font-size: 6rem;
    }

    .skill-icon img.emoji {
        height: 6rem;
        width: 6rem;
    }

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

    .skill-popup {
        width: 280px;
        bottom: calc(100% + 15px);
    }

    .popup-content {
        padding: 16px 20px;
    }

    .popup-content p {
        font-size: 0.9rem;
    }
}

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

    .name {
        font-family: 'Boogaloo', cursive;
        font-size: 53pt;
    }

    .title {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

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

    .skill-icon {
        font-size: 5rem;
    }

    .skill-icon img.emoji {
        height: 5rem;
        width: 5rem;
    }

    .skill-popup {
        width: calc(100vw - 40px);
        max-width: 280px;
        bottom: calc(100% + 10px);
    }

    .popup-content {
        padding: 14px 18px;
    }

    .popup-content p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}
