/* ==========================================
   Portfolio Website CSS
   Author: Kenlee C. Tapasao
   ========================================== */

/* Root Variables */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --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%);
    --transition: all 0.3s ease-in-out;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    padding: 1rem 0;
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light) !important;
}

.brand-text {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 0.5rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-light) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-3);
    transition: var(--transition);
}

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

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    background: var(--gradient-1);
    color: var(--text-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.text-gradient {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    min-height: 2.5rem;
    animation: fadeInUp 1.2s ease-out;
}

.typed-text {
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--text-light);
    animation: blink 0.7s infinite;
}

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

.hero-buttons {
    animation: fadeInUp 1.4s ease-out;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-buttons .btn-primary {
    background: var(--gradient-3);
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.hero-buttons .btn-outline-light {
    border-color: var(--text-light);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

/* ==========================================
   Section Styles
   ========================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-3);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* ==========================================
   About Section - UPDATED WITH IMAGE
   ========================================== */
.about-section {
    background: var(--bg-light);
    padding: 120px 0 80px;
    min-height: 100vh;
}

.about-image-wrapper {
    position: relative;
}

.about-image-box {
    background: var(--gradient-1);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-image-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
}

.about-image-box:hover::before {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.about-image-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.profile-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 15px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.profile-img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Alternative circular style (optional) */
.profile-img.circle {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.about-content h3 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.info-list .info-item {
    padding: 0.8rem;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
}

.info-item:hover {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transform: translateX(10px);
}

.info-item a {
    color: var(--primary-color);
}

.info-item a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .about-image-box {
        margin-bottom: 2rem;
    }

    .profile-img {
        max-width: 280px;
    }
}
/* ==========================================
   Skills Section
   ========================================== */
.skills-section {
    padding-top: 120px;
    padding-bottom: 100px;
    background: white;
    min-height: 100vh;
}

.skill-item {
    animation: fadeInLeft 0.6s ease-out;
}

.skill-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.skill-percent {
    font-weight: 600;
    color: var(--primary-color);
}

.progress {
    height: 12px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-3);
    transition: width 1.5s ease-out;
    border-radius: 10px;
}

.progress-bar.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.tech-card {
    padding: 2rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tech-card h6 {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

.text-purple {
    color: #7952b3 !important;
}

/* ==========================================
   Gallery Section
   ========================================== */
.gallery-section {
    background: white;
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-3);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.3);
}

.gallery-item {
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
    padding: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-card:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0.9;
    transition: var(--transition);
    z-index: 2;
}

.video-item:hover .video-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.upload-section {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
/* ==========================================
   Gallery Page Modern Background & Cards
   ========================================== */

/* Add a soft gradient background to the whole gallery page */
.gallery-page {
    background: linear-gradient(135deg, #dbeafe 0%, #f3e8ff 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

/* Category Card Styles */
.category-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(80, 36, 137, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    padding: 0 0 12px 0;
    margin-bottom: 16px;
    border: none;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 40px rgba(80, 36, 137, 0.15);
}

.category-image img {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    width: 100%;
    object-fit: cover;
    height: 220px;
}

.category-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.category-info {
    padding: 16px;
}

.category-info h4 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.category-info p {
    font-size: 1rem;
    color: #6c757d;
}

.badge {
    font-size: 0.95em;
    padding: 0.5em 1em;
    border-radius: 12px;
    font-weight: 600;
}

/* Section title and underline styling */
.section-title {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: #38bdf8;
    margin: 0 auto 1rem auto;
}

/* Responsive Tweaks for Mobile */
@media (max-width: 767px) {
    .category-card {
        margin-bottom: 24px;
    }
    .category-image img {
        height: 160px;
    }
}
/* ==========================================
   Projects Section
   ========================================== */
.projects-section {
    padding-top: 120px;
    padding-bottom: 100px;
    background: var(--bg-light);
    min-height: 100vh;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
}

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

.project-image {
    background: var(--gradient-1);
    padding: 3rem;
    text-align: center;
}

.project-image i {
    color: var(--text-light);
}

.project-content {
    padding: 2rem;
}

.project-title {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-tags .badge {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    padding-top: 120px;
    padding-bottom: 100px;
    background: white;
    min-height: 100vh;
}

.contact-info-wrapper {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.contact-info-card h5 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: #666;
    margin: 0;
}

.contact-info-card a {
    color: var(--primary-color);
}

.contact-info-card a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-floating > label {
    color: #999;
}

/* ==========================================
   Footer
   ========================================== */
.footer-section {
    background: var(--bg-dark);
    color: var(--text-light);
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-3);
    color: var(--text-light);
    transform: translateY(-5px);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text .lead {
        font-size: 1.2rem;
    }

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

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .lead {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

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

    .about-image {
        margin-bottom: 2rem;
    }

    .contact-info-wrapper {
        padding: 1.5rem;
    }

    .gallery-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .gallery-image img {
        height: 250px;
    }

    .upload-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

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

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .tech-card {
        padding: 1.5rem 0.5rem;
    }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
}
/* ==========================================
   Talents & Hobbies Section Styles
   ========================================== */
.talents-section {
    padding: 120px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.talent-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.talent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.talent-icon {
    margin-bottom: 1rem;
}

.talent-card h5 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.talent-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

.hobby-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.hobby-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.hobby-icon {
    margin-bottom: 1rem;
}

.hobby-card h6 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.hobby-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

.fun-facts-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.fun-fact-card {
    padding: 2rem 1rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.fun-fact-card:hover {
    background: var(--gradient-3);
    color: white;
    transform: scale(1.05);
}

.fun-fact-card:hover i {
    color: white !important;
}

.fun-fact-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fun-fact-card p {
    font-size: 0.9rem;
    margin: 0;
}

.text-brown {
    color: #8B4513 !important;
}

.text-purple {
    color: #7952b3 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .talents-section {
        padding: 100px 0 60px;
    }

    .talent-card,
    .hobby-card {
        margin-bottom: 1rem;
    }
}
/* ==========================================
   Updated Contact Section Styles
   ========================================== */
.contact-section {
    padding: 120px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.contact-info-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-info-card h5 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: #666;
    margin-bottom: 1rem;
}

.social-media-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

.social-link-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    color: var(--secondary-color);
    transition: var(--transition);
    min-width: 120px;
}

.social-link-large:hover {
    background: var(--gradient-3);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.social-link-large i {
    transition: var(--transition);
}

.social-link-large:hover i {
    transform: scale(1.2);
}

.social-link-large span {
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-mes
