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

:root {
    /* Lighter Dark Theme Colors */
    --primary-color: #00d4ff;
    --secondary-color: #0096c7;
    --accent-color: #7b2cbf;
    --accent-light: #9d4edd;
    
    /* Lighter Dark Backgrounds */
    --bg-dark: #1a1f3a;
    --bg-darker: #0f1729;
    --bg-card: #252b4a;
    --bg-card-hover: #2d3454;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c2e0;
    --text-muted: #9aa5c5;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    --gradient-secondary: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    
    /* Shadows */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 40px rgba(0, 212, 255, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

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

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

/* Navigation */
.navbar {
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    display: block;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.08);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Tab Container */
.tab-container {
    margin-top: 70px;
    position: relative;
    min-height: calc(100vh - 140px);
}

.tab-content {
    display: none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: calc(100vh - 140px);
    transition: opacity 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    position: relative;
}

/* Content Wrappers */
.hero-wrapper,
.content-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-wrapper {
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(123, 44, 191, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

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

.content-wrapper {
    background: var(--bg-dark);
}

#about .content-wrapper { background: var(--bg-dark); }
#skills .content-wrapper { background: var(--bg-darker); }
#projects .content-wrapper { background: var(--bg-dark); }
#contact .content-wrapper { background: var(--bg-darker); }

/* Home Tab Styles */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.profile-image-container {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: rotate 4s linear infinite;
    z-index: -1;
}

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

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-darker);
    box-shadow: var(--shadow-glow);
}

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

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

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.btn-primary.btn-disabled {
    background: rgba(128, 128, 128, 0.4);
    color: #9ca3af;
    border: 2px solid rgba(156, 163, 175, 0.5);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.btn-primary.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

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

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-secondary.btn-disabled {
    color: #9ca3af;
    border: 2px solid rgba(156, 163, 175, 0.5);
    background: rgba(128, 128, 128, 0.15);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary.btn-disabled:hover {
    background: rgba(128, 128, 128, 0.15);
    box-shadow: none;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========================================
   SKILLS SECTION - FIXED GRID LAYOUT
   ======================================== */

/* Skills intro text */
.skills-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: -2rem auto 3rem;
    line-height: 1.6;
}

/* Skills Grid - FORCE GRID LAYOUT */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}


/* Skill Cards - Base Styling */
.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

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

.skill-card i,
.skill-card .skill-icon i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.skill-card h3,
.skill-card .skill-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.skill-card p,
.skill-card .skill-description {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Special "And More" Card */
.skill-card.more-card {
    background: var(--gradient-primary);
    border: 2px solid var(--primary-color);
    min-height: 250px;
}

.skill-card.more-card::before {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.skill-card.more-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.skill-card.more-card i,
.skill-card.more-card .skill-icon i {
    font-size: 3.5rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.skill-card.more-card h3,
.skill-card.more-card .skill-name {
    color: white;
    font-size: 1.5rem;
}

.skill-card.more-card p,
.skill-card.more-card .skill-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

.skill-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.skill-extras span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   PROJECTS SECTION - MAX 2 COLUMNS GRID
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

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

/* ========================================
   PROJECT IMAGE - FILLS CONTAINER COMPLETELY
   ======================================== */
.project-image {
    height: 280px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--bg-darker);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover .project-image::after {
    opacity: 0.15;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

/* ========================================
   PROJECT VIDEO STYLES - AUTO-PLAY SUPPORT
   ======================================== */

/* Video element - fills container completely */
.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

/* Image fallback - same styling */
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

/* Hover effects for both video and image */
.project-card:hover .project-video,
.project-card:hover .project-img {
    transform: scale(1.08);
}

/* Ensure smooth playback */
.project-video {
    pointer-events: none;
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 2rem;
}

.project-info,
.project-content {
    padding: 2rem;
}

.project-info h3,
.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-info p,
.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-tags span,
.project-tag {
    background: rgba(0, 212, 255, 0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

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

.project-links .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-primary);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    background: var(--bg-card-hover);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 100;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

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

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.25);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* Experience Section Intro */
.experience-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: -1rem auto 4rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 31, 58, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        border-right: 1px solid rgba(0, 212, 255, 0.15);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .nav-link.active {
        border-left: 3px solid var(--primary-color);
        border-bottom: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

    .about-image img {
        margin: 0 auto;
    }

    .about-image::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-intro {
        font-size: 1rem;
        margin: -1rem auto 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-links .btn {
        width: 100%;
    }
}

/* ========================================
   CLEANER EXPERIENCE CARDS STYLING
   ======================================== */

.experience-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.experience-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* Header Section - Compact */
.experience-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.1);
}

.experience-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.experience-title-section {
    flex: 1;
}

.experience-role {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.experience-company {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.experience-meta i {
    margin-right: 0.3rem;
}

.experience-type {
    background: rgba(0, 212, 255, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 255, 0.25);
    font-size: 0.85rem;
}

/* Overview - Clean */
.experience-overview {
    margin-bottom: 1.5rem;
}

.experience-overview p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Highlights - Side by Side */
.experience-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.experience-section h5 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.experience-section h5 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.experience-list li {
    list-style: none !important;
    list-style-type: none !important;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
    font-size: 0.95rem;
}

.experience-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Footer Section - Compact Technologies + Button */
.experience-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.experience-technologies {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tech-label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.tech-label i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.tech-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags-compact .tech-tag {
    background: rgba(0, 212, 255, 0.12);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.tech-tags-compact .tech-tag.more {
    background: rgba(123, 44, 191, 0.12);
    color: var(--accent-color);
    border-color: rgba(123, 44, 191, 0.25);
    font-weight: 600;
}

.experience-details-btn {
    white-space: nowrap;
    padding: 0.7rem 1.5rem;
}

/* Responsive Experience Cards */
@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .experience-logo {
        margin: 0 auto;
    }

    .experience-highlights {
        grid-template-columns: 1fr;
    }

    .experience-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .experience-technologies {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-details-btn {
        width: 100%;
    }

    .experience-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .experience-role {
        font-size: 1.2rem;
    }

    .experience-company {
        font-size: 1rem;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
}


/* ========================================
   EXPERIENCE MODAL STYLES
   ======================================== */

.experience-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-modal.active {
    display: block;
    opacity: 1;
}

.experience-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.experience-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    margin: 5vh auto;
    background: var(--bg-card);
    border-radius: 15px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: modalSlideIn 0.4s ease;
}

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

.experience-modal-close {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    width: 40px;
    height: 40px;
    background: rgba(231, 76, 60, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-modal-close:hover {
    background: #e74c3c;
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.experience-modal-body {
    padding: 2rem;
    padding-top: 1rem;
}

.experience-modal-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-darker);
    border-radius: 10px;
}

.experience-modal-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.experience-modal-role {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-modal-company {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.experience-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.experience-modal-meta i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.experience-modal-section {
    margin-bottom: 2.5rem;
}

.experience-modal-section h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.experience-modal-section h4 i {
    color: var(--primary-color);
}

.experience-modal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.experience-modal-list {
    list-style: none;
    padding: 0;
}

.experience-modal-list li {
    color: var(--text-secondary);
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-size: 1rem;
}

.experience-modal-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
}

.experience-modal-list.achievements-list li::before {
    content: '🏆';
}

.experience-modal-list.skills-list li::before {
    content: '✓';
    font-size: 1.2rem;
}

/* References Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.reference-card {
    background: var(--bg-darker);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.reference-card h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.reference-card .reference-title {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.reference-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.reference-card i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Experience Stories Section */
.experiences-section {
    background: var(--bg-darker);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.experience-story-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.experience-story-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.experience-story-card:last-child {
    margin-bottom: 0;
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.story-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin: 0;
}

.story-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.story-date i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.story-content {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.story-lesson {
    background: rgba(0, 212, 255, 0.08);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

.story-lesson strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.story-lesson strong i {
    margin-right: 0.3rem;
}

.story-lesson p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.story-tag {
    background: rgba(123, 44, 191, 0.15);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(123, 44, 191, 0.3);
}

/* Tech Tags in Modal */
.tech-tags-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.tech-tags-modal .tech-tag {
    background: rgba(0, 212, 255, 0.12);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 255, 0.25);
    transition: all 0.3s ease;
}

.tech-tags-modal .tech-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .experience-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 3vh auto;
    }

    .experience-modal-body {
        padding: 1.5rem;
    }

    .experience-modal-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .experience-modal-role {
        font-size: 1.4rem;
    }

    .experience-modal-company {
        font-size: 1.1rem;
    }

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

    .story-header {
        flex-direction: column;
    }
}

/* Smooth scrolling for modal content */
.experience-modal-content {
    scroll-behavior: smooth;
}

.experience-modal-content::-webkit-scrollbar {
    width: 8px;
}

.experience-modal-content::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

.experience-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.experience-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animation for experience cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   SETTINGS SECTION STYLES
   ======================================== */

.settings-container {
    max-width: 900px;
    margin: 0 auto;
}

.settings-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.3s ease;
}

.settings-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15);
}

.settings-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.settings-section h3 i {
    color: var(--primary-color);
}

.setting-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Theme Categories */
.theme-category {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.theme-category:first-of-type {
    margin-top: 0;
}

/* Theme Selector */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.theme-option {
    background: var(--bg-darker);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    border: 2px solid rgba(0, 212, 255, 0.15);
    transition: all 0.3s ease;
}

.theme-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.theme-option.active {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.theme-preview {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.theme-preview span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.theme-option h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
}

/* Setting Items */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-darker);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.setting-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.setting-label p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.setting-control {
    flex-shrink: 0;
}

/* Toggle Switch */
.toggle-switch {
    width: 60px;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.toggle-switch:hover {
    border-color: var(--primary-color);
}

.toggle-switch.active {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.toggle-slider {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

/* Settings Select */
.settings-select {
    padding: 0.6rem 1rem;
    background: var(--bg-darker);
    color: var(--text-primary);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

/* ============================================================================
   MOBILE HOMEPAGE FIX - Remove Excessive Height
   ============================================================================ */

@media (max-width: 968px) {
    /* Fix: Remove min-height constraint on mobile */
    .hero-wrapper {
        min-height: auto !important;
        padding: 80px 0 40px !important;
    }
    
    /* Fix: Let content determine height */
    .hero-content {
        min-height: auto !important;
        padding: 2rem 1.5rem !important;
    }
    
    /* Tighten spacing between elements */
    .hero-text-section {
        gap: 0.8rem !important;
    }
    
    .hero-greeting {
        margin-bottom: 0.3rem !important;
    }
    
    .hero-title {
        margin-bottom: 0.5rem !important;
    }
    
    .hero-subtitle {
        margin-bottom: 0.8rem !important;
    }
    
    .hero-description {
        margin-bottom: 1rem !important;
    }
    
    .hero-buttons {
        margin-top: 1rem !important;
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding: 70px 0 30px !important;
    }
    
    .hero-content {
        padding: 1.5rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-wrapper {
        padding: 60px 0 25px !important;
    }
    
    .hero-content {
        padding: 1rem !important;
    }
    
    .hero-text-section {
        gap: 0.6rem !important;
    }
.theme-selector {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.8rem;
}

.theme-option {
    padding: 0.8rem;
}

.theme-preview span {
    width: 25px;
    height: 25px;
}

.setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.setting-control {
    width: 100%;
}

.settings-select {
    width: 100%;
}

.settings-actions {
    flex-direction: column;
}

.settings-actions .btn {
    width: 100%;
    min-width: auto;
}
}

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

    .settings-section h3 {
        font-size: 1.3rem;
    }
}

/* ========================================
   RESEARCH REPORT DOWNLOAD SECTION
   ======================================== */

.report-download-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(123, 44, 191, 0.08) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.report-download-section h4 {
    color: var(--primary-color);
    border-bottom-color: rgba(0, 212, 255, 0.3);
    margin-bottom: 1.5rem;
}

.report-download-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-info {
    flex: 1;
}

.report-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.report-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.report-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.12);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.report-detail-item i {
    font-size: 0.95rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.btn-download i {
    font-size: 1.1rem;
    animation: downloadBounce 2s ease-in-out infinite;
}

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

/* Responsive report download section */
@media (max-width: 768px) {
    .report-download-section {
        padding: 1.5rem;
    }

    .report-details {
        flex-direction: column;
        gap: 0.7rem;
    }

    .report-detail-item {
        width: 100%;
        justify-content: center;
    }

    .btn-download {
        width: 100%;
        padding: 1.2rem;
    }
}

.report-description {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.note-highlight {
    font-weight: bold;
    color: #d9534f;
    background-color: #f9e6e6;
    padding: 2px 6px;
    border-radius: 3px;
    font-style: italic;
}

/* ============================================================================
   NAVIGATION LOGO STYLES
   ============================================================================ */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-logo {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 212, 255, 0.3));
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 212, 255, 0.5));
}

/* Fallback text logo if image doesn't load */
.nav-logo-fallback {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    padding: 5px 10px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .nav-logo {
        height: 38px;
        max-width: 150px;
    }
    
    .nav-logo-fallback {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 32px;
        max-width: 120px;
    }
    
    .nav-logo-fallback {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
}

/* ============================================================================
   ENHANCED HOMEPAGE STYLES - PHASE 2
   Professional split-layout with video-filled geometric shapes
   ============================================================================ */

/* ========================================
   HERO SECTION - SPLIT LAYOUT
   ======================================== */

.hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* Animated background grid */
.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating particles */
.hero-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(123, 44, 191, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 40%);
    animation: particleFloat 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* ========================================
   HERO CONTENT - SPLIT CONTAINER
   ======================================== */

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
    text-align: left;
}

/* ========================================
   LEFT SIDE - TEXT CONTENT
   ======================================== */

.hero-text-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Greeting text */
.hero-greeting {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    text-shadow: 
        0 0 6px rgba(0, 140, 255, 0.6),
        0 0 12px rgba(0, 140, 255, 0.4);
}

/* Main title with larger emphasis */
.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin: 0;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title .highlight {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Animated underline for name */
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineExpand 0.8s ease 1s forwards;
}

@keyframes lineExpand {
    to { transform: scaleX(1); }
}

/* Dynamic role text with typing effect container */
.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    min-height: 2.5rem;
}

.hero-subtitle .typed-text {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-subtitle .cursor {
    display: inline-block;
    width: 3px;
    height: 1.5rem;
    background: var(--primary-color);
    margin-left: 5px;
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

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

/* Description text */
.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

/* ========================================
   RIGHT SIDE - VISUAL SECTION WITH VIDEO
   ======================================== */

.hero-visual-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

/* Profile container with geometric elements */
.profile-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
}

/* Geometric background with video masking */
.geometric-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.geometric-shape {
    position: absolute;
    border: 2px solid;
    opacity: 0.3;
    animation: morphShape 8s ease-in-out infinite;
    overflow: hidden;
}

/* Shape 1 - CONTAINS VIDEO with mask */
.shape-1 {
    width: 100%;
    height: 100%;
    border-color: var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
    position: relative;
}

/* VIDEO INSIDE SHAPE 1 */
.shape-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 1s ease-in-out;
    z-index: 0;
    
    /* Apply same morphing border radius as parent shape */
    border-radius: inherit;
}

/* Shape 2 - Border only */
.shape-2 {
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-color: var(--accent-color);
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    animation-delay: -2s;
}

/* Shape 3 - Border only */
.shape-3 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: var(--primary-color);
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    animation-delay: -4s;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Profile image */
.profile-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.profile-image {
    width: 85%;
    height: 85%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    border: 5px solid var(--bg-darker);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2);
    animation: profileMorph 8s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.02);
}

@keyframes profileMorph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Floating accent elements */
.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.floating-element-1 {
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.floating-element-2 {
    bottom: 15%;
    left: -8%;
    animation-delay: -2s;
}

.floating-element-3 {
    top: 60%;
    right: -10%;
    width: 40px;
    height: 40px;
    border-color: var(--accent-color);
    animation-delay: -4s;
}

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

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .hero-content {
        gap: 3rem;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .profile-container {
        max-width: 380px;
    }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 3rem 2rem;
    }
    
    .hero-text-section {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .profile-container {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-greeting {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .profile-container {
        max-width: 300px;
    }
    
    .floating-element {
        display: none;
    }
    
    /* Reduce video opacity on smaller screens */
    .shape-video {
        opacity: 0.25;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .profile-container {
        max-width: 250px;
    }
    
    /* Further reduce video opacity on mobile */
    .shape-video {
        opacity: 0.2;
    }
}

/* ============================================================================

/* ============================================================================

/* ============================================================================

/* ============================================================================

/* ============================================================================

/* ============================================================================

/* ============================================================================
   THREE CREATIVE BUBBLES - SHIFTED MORE RIGHT
   
   TO ADJUST BUBBLE POSITIONS:
   
   Look for these lines below and change the LEFT/RIGHT percentages:
   
   .bubble-profile   → left: 65%;    (increase = move right)
   .bubble-video     → right: 0%;    (decrease = move right)
   .bubble-pattern   → left: 63%;    (increase = move right)
   
   ============================================================================ */

/* ========================================
   BUBBLES CONTAINER - Right aligned
   ======================================== */

.bubbles-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    margin: 0 0 0 auto;  /* 🎯 SHIFT CONTAINER: change first 0 to push right */
    padding-right: 20px;
}

/* ========================================
   CREATIVE BUBBLE - Base styling
   ======================================== */

.creative-bubble {
    position: absolute;
    transition: transform 0.5s ease;
}

.creative-bubble:hover {
    transform: scale(1.05);
}

/* Animated rotating border effect */
.creative-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-primary);
    border-radius: inherit;
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
    opacity: 0.8;
}

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

.bubble-shape {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 5px solid var(--bg-darker);
}

/* ========================================
   BUBBLE 1: Profile Image (50% - Main Focus)
   🎯 ADJUST: Change "left: 65%" to move horizontally
   ======================================== */

.bubble-profile {
    width: 340px;
    height: 340px;
    top: 15%;
    left: 85%;          /* INCREASE THIS to move RIGHT (was 60%) */
    transform: translateX(-50%);
    z-index: 3;
}

.bubble-profile,
.bubble-profile .bubble-shape,
.bubble-profile::before {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphProfile 8s ease-in-out infinite, floatProfile 6s ease-in-out infinite;
}

.bubble-profile::before {
    background: var(--gradient-primary);
    opacity: 1;
}

.bubble-profile .bubble-shape {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.3);
}

.bubble-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes morphProfile {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

@keyframes floatProfile {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

/* ========================================
   BUBBLE 2: Story Video (30% - Background Element)
   🎯 ADJUST: Change "right: 0%" to move (DECREASE to move right)
   ======================================== */

.bubble-video {
    width: 220px;
    height: 220px;
    top: 10%;
    right: -10%;          /* DECREASE THIS to move RIGHT (was 5%) */
    z-index: 1;
    opacity: 0.7;
}

.bubble-video,
.bubble-video .bubble-shape,
.bubble-video::before {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphVideo 10s ease-in-out infinite, floatVideo 8s ease-in-out infinite;
}

.bubble-video::before {
    background: var(--gradient-secondary);
    animation: rotateBorder 6s linear infinite, morphVideo 10s ease-in-out infinite;
}

.bubble-video .bubble-shape {
    border: 3px solid var(--bg-darker);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(123, 44, 191, 0.2);
}

.bubble-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.5;
}

@keyframes morphVideo {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 40% 60% 60% 40% / 70% 30% 70% 40%;
    }
    75% {
        border-radius: 70% 30% 40% 60% / 40% 70% 30% 60%;
    }
}

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

/* ========================================
   BUBBLE 3: Animated Pattern (20% - Creative Accent)
   ADJUST: Change "left: 63%" to move horizontally
   ======================================== */

.bubble-pattern {
    width: 160px;
    height: 160px;
    bottom: 18%;
    left: 15%;          /* INCREASE THIS to move RIGHT (was 58%) */
    transform: translateX(-50%);
    z-index: 2;
}

.bubble-pattern,
.bubble-pattern .bubble-shape,
.bubble-pattern::before {
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    animation: morphPattern 9s ease-in-out infinite, floatPattern 7s ease-in-out infinite;
}

.bubble-pattern::before {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    animation: rotateBorder 5s linear infinite, morphPattern 9s ease-in-out infinite;
}

.bubble-pattern .bubble-shape {
    border: 2px solid var(--bg-darker);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(0, 150, 199, 0.3);
}

.bubble-pattern-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes morphPattern {
    0%, 100% {
        border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    }
    25% {
        border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%;
    }
    50% {
        border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
    }
    75% {
        border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%;
    }
}

@keyframes floatPattern {
    0%, 100% {
        transform: translateX(-50%) translateY(0px) scale(1);
    }
    50% {
        transform: translateX(-50%) translateY(-25px) scale(1.1);
    }
}

/* ========================================
   PATTERN ORBS - Animated elements
   ======================================== */

.pattern-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: orbPulse 3s ease-in-out infinite;
}

.pattern-orb-1 {
    width: 45px;
    height: 45px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.pattern-orb-2 {
    width: 28px;
    height: 28px;
    top: 20%;
    left: 30%;
    animation-delay: 1s;
}

.pattern-orb-3 {
    width: 22px;
    height: 22px;
    bottom: 25%;
    right: 25%;
    animation-delay: 2s;
}

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

/* ========================================
   FLOATING ACCENT ELEMENTS
   ======================================== */

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.25;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.floating-element-1 {
    top: 5%;
    right: 0%;
    animation-delay: 0s;
}

.floating-element-2 {
    bottom: 15%;
    left: 30%;
    animation-delay: -2s;
    width: 50px;
    height: 50px;
}

.floating-element-3 {
    top: 60%;
    right: 1%;
    width: 45px;
    height: 45px;
    border-color: var(--accent-color);
    animation-delay: -4s;
}

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

/* ========================================
   RESPONSIVE BUBBLES
   ======================================== */

@media (max-width: 968px) {
    .bubbles-container {
        max-width: 500px;
        height: 500px;
        padding-right: 20px;
    }
    
    .bubble-profile {
        width: 280px;
        height: 280px;
        top: 18%;
        left: 62%;
    }
    
    .bubble-video {
        width: 180px;
        height: 180px;
        top: 12%;
        right: 3%;
    }
    
    .bubble-pattern {
        width: 130px;
        height: 130px;
        bottom: 20%;
        left: 60%;
    }
}

@media (max-width: 768px) {
    .bubbles-container {
        max-width: 400px;
        height: 450px;
        padding-right: 10px;
        margin: 0 auto;
    }
    
    .bubble-profile {
        width: 240px;
        height: 240px;
        top: 20%;
        left: 55%;
    }
    
    .bubble-video {
        width: 150px;
        height: 150px;
        opacity: 0.6;
        top: 15%;
        right: 5%;
    }
    
    .bubble-pattern {
        width: 110px;
        height: 110px;
        bottom: 22%;
        left: 53%;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .bubbles-container {
        max-width: 320px;
        height: 380px;
        padding-right: 5px;
    }
    
    .bubble-profile {
        width: 200px;
        height: 200px;
        top: 22%;
        left: 50%;
    }
    
    .bubble-video {
        width: 120px;
        height: 120px;
        opacity: 0.5;
        top: 18%;
        right: 8%;
    }
    
    .bubble-pattern {
        width: 90px;
        height: 90px;
        bottom: 25%;
        left: 48%;
    }
}

/* ========================================
   HERO CONTENT ADJUSTMENTS FOR BUBBLES
   ======================================== */

.hero-visual-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   ABOUT SECTION - ENHANCED WITH ANIMATIONS
   ======================================== */

.about-image {
    opacity: 0;
    animation: fadeInLeft 0.8s ease 0.2s forwards;
}

.about-text {
    opacity: 0;
    animation: fadeInRight 0.8s ease 0.4s forwards;
}

.about-text p {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.about-text p:nth-child(1) {
    animation-delay: 0.6s;
}

.about-text p:nth-child(2) {
    animation-delay: 0.8s;
}

.about-text p:nth-child(3) {
    animation-delay: 1s;
}

/* CV Download Button */
.cv-download-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.btn-cv-download {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cv-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn-cv-download:hover::before {
    left: 100%;
}

.btn-cv-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.btn-cv-download i {
    font-size: 1.2rem;
    animation: downloadBounce 2s ease-in-out infinite;
}

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

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

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

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

/* ========================================
   ABOUT IMAGE FIX - Corrected Border Position
   ======================================== */

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

.about-image {
    position: relative;
    opacity: 0;
    animation: fadeInLeft 0.8s ease 0.2s forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    z-index: 0;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    position: relative;
    z-index: 1;
}

/* Mobile fix */
@media (max-width: 768px) {
    .about-image {
        justify-content: center;
    }
    
    .about-image::before {
        left: 50%;
        transform: translateX(-50%);
        width: min(calc(100% - 60px), 340px);
    }
    
    .about-image img {
        margin: 0 auto;
    }
}

/* ========================================
   BUBBLE VIDEO FIX - Blue Theme Shadow
   ======================================== */

.bubble-video::before {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    animation: rotateBorder 6s linear infinite, morphVideo 10s ease-in-out infinite;
}

.bubble-video .bubble-shape {
    border: 3px solid var(--bg-darker);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 212, 255, 0.3);
}

.bubble-pattern::before {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    animation: rotateBorder 5s linear infinite, morphPattern 9s ease-in-out infinite;
}

.bubble-pattern .bubble-shape {
    border: 2px solid var(--bg-darker);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 150, 199, 0.15) 100%);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(0, 212, 255, 0.3);
}


/* ============================================================================

/* ============================================================================
   MOBILE-ONLY FIXES - PROFESSIONAL LAYOUT
   ============================================================================ */

/* ========================================
   MOBILE HERO - Profile integrated in text flow
   Layout: Greeting → Title → Subtitle → Profile → Description → Buttons
   ======================================== */

@media (max-width: 968px) {
    /* Stack layout on mobile */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }
    
    /* Hide complex bubbles */
    .bubbles-container {
        display: none !important;
    }
    
    /* Text section first */
    .hero-text-section {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Visual section comes in the middle of text flow */
    .hero-visual-section {
        order: 2;
        display: flex !important;
        justify-content: center;
        align-items: center;
        min-height: auto;
        margin: 1.5rem 0;
        position: relative;
    }
    
    /* Circular profile image */
    .hero-visual-section::before {
        content: '';
        display: block;
        width: 220px;
        height: 220px;
        background-image: url('../images/profile/profile.jpg');
        background-size: cover;
        background-position: center;
        border-radius: 50%;
        border: 5px solid var(--bg-darker);
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(0, 212, 255, 0.3);
        animation: fadeIn 0.8s ease 0.6s both;
    }
    
    /* Glow effect */
    .hero-visual-section::after {
        content: '';
        position: absolute;
        width: 240px;
        height: 240px;
        background: var(--gradient-primary);
        border-radius: 50%;
        opacity: 0.12;
        z-index: -1;
        animation: pulse 4s ease-in-out infinite;
    }
    
    /* Adjust text elements spacing */
    .hero-greeting {
        margin-bottom: 0.5rem;
    }
    
    .hero-title {
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    /* Description and buttons go after profile */
    .hero-description {
        order: 3;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons {
        order: 4;
    }
}

@media (max-width: 768px) {
    .hero-visual-section::before {
        width: 200px;
        height: 200px;
    }
    
    .hero-visual-section::after {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .hero-visual-section::before {
        width: 170px;
        height: 170px;
    }
    
    .hero-visual-section::after {
        width: 190px;
        height: 190px;
    }
    
    .hero-visual-section {
        margin: 1rem 0;
    }
}


/* ============================================================================
    .nav-logo-mobile {
        height: 36px;
        width: 36px;
    }
}


/* ============================================================================
   MOBILE NAVBAR & HERO FIXES - CLEAN VERSION
   ============================================================================ */

/* ========================================
   MOBILE NAVBAR - Profile only, hide logo completely
   ======================================== */

/* Desktop default - show logo, hide profile */
.nav-logo-mobile {
    display: none !important;
}

.nav-logo-desktop {
    display: block;
}

.nav-logo-fallback {
    display: none;
}

/* Mobile - show profile, hide logo AND fallback */
@media (max-width: 968px) {
    /* Hide desktop logo completely */
    .nav-logo-desktop {
        display: none !important;
    }
    
    /* Hide fallback text */
    .nav-logo-fallback {
        display: none !important;
    }
    
    /* Show circular profile image */
    .nav-logo-mobile {
        display: block !important;
        height: 45px;
        width: 45px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--primary-color);
        box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
        transition: transform 0.3s ease;
    }
    
    .nav-logo-mobile:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(0, 212, 255, 0.6);
    }
}

/* ========================================
   MOBILE HERO - Remove visual section & fix spacing
   ======================================== */

@media (max-width: 968px) {
    /* Hide bubbles completely */
    .bubbles-container {
        display: none !important;
    }
    
    /* Hide entire visual section */
    .hero-visual-section {
        display: none !important;
    }
    
    /* Single column layout */
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        text-align: center;
        justify-items: center;
    }
    
    /* Text section - remove extra spacing */
    .hero-text-section {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    /* Remove unnecessary gaps between elements */
    .hero-greeting {
        margin-bottom: 0.5rem;
    }
    
    .hero-title {
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.2rem;
        min-height: 2rem;
    }
    
    /* Description comes right after subtitle - NO GAP */
    .hero-description {
        margin-top: 0 !important;
        margin-bottom: 1.5rem;
        padding-top: 0 !important;
    }
    
    /* Buttons after description */
    .hero-buttons {
        margin-top: 1.5rem;
        gap: 1rem;
    }
}

/* ========================================
   SMALLER SCREENS - Further adjustments
   ======================================== */

@media (max-width: 768px) {
    .nav-logo-mobile {
        height: 40px;
        width: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-logo-mobile {
        height: 36px;
        width: 36px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-buttons {
        margin-top: 1.2rem;
    }
}


/* ============================================================================
   PHASE 1: ABOUT PAGE ENHANCEMENTS - MOBILE FIRST
   ============================================================================ */

/* ============================================================================
   HOME SECTION - MOBILE HEIGHT FIX
   ============================================================================ */

/* Fix excessive height on mobile */
@media (max-width: 768px) {
    #home {
        min-height: 100vh;
        height: auto;
        padding: 4rem 0 2rem;
    }
    
    .home-container {
        min-height: auto;
    }
    
    /* Hide decorative bubbles on mobile for cleaner look */
    .creative-bubble,
    .floating-element {
        display: none;
    }
    
    .home-content {
        padding: 1rem 0;
    }
    
    .home-text h2 {
        font-size: 1.1rem;
    }
    
    .home-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .home-text h3 {
        font-size: 1.2rem;
    }
    
    .home-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Profile image adjustments */
    .home-image {
        margin-top: 2rem;
    }
    
    .profile-circle {
        width: 250px;
        height: 250px;
    }
}

/* ============================================================================
   ABOUT SECTION - ANIMATIONS & STYLING
   ============================================================================ */

/* Remove decorative border from image */
.about-image::before {
    display: none !important;
}

/* Image container animations */
.about-image {
    opacity: 0;
    animation: fadeInLeft 1s ease 0.3s forwards;
}

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

/* Clean image styling */
.about-image img {
    border: 3px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    transition: all 0.4s ease;
    display: block;
    margin: 0 auto;
}

.about-image img:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
    border-color: var(--primary-color);
}

/* Text animations */
.about-text {
    opacity: 0;
    animation: fadeInRight 1s ease 0.5s forwards;
}

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

/* Staggered paragraph animations */
.about-text p {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.7s; }
.about-text p:nth-child(2) { animation-delay: 0.9s; }
.about-text p:nth-child(3) { animation-delay: 1.1s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================================
   CV DOWNLOAD SECTION
   ============================================================================ */

.about-cv-section {
    margin: 4rem auto 3rem;
    max-width: 900px;
    padding: 0 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.3s forwards;
}

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

.cv-download-card {
    background: var(--gradient-primary);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
    border: 2px solid var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Animated background shimmer */
.cv-download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.cv-download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.6);
}

.cv-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

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

.cv-icon i {
    font-size: 2.5rem;
    color: white;
}

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

.cv-content h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cv-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.cv-download-btn {
    flex-shrink: 0;
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.cv-download-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cv-download-btn i {
    animation: downloadPulse 2s ease-in-out infinite;
}

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

/* ============================================================================
   MOBILE RESPONSIVE - ABOUT & CV
   ============================================================================ */

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        text-align: center;
    }
    
    .about-image img {
        max-width: 300px;
    }
    
    .about-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-cv-section {
        margin: 3rem auto 2rem;
    }
    
    .cv-download-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .cv-icon {
        width: 70px;
        height: 70px;
    }
    
    .cv-icon i {
        font-size: 2rem;
    }
    
    .cv-content h3 {
        font-size: 1.3rem;
    }
    
    .cv-content p {
        font-size: 0.95rem;
    }
    
    .cv-download-btn {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .about-image img {
        max-width: 250px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .cv-icon {
        width: 60px;
        height: 60px;
    }
    
    .cv-icon i {
        font-size: 1.8rem;
    }
    
    .cv-content h3 {
        font-size: 1.2rem;
    }
    
    .cv-download-card {
        padding: 1.5rem 1rem;
    }
}


/* ============================================================================
   CONTACT FORM STATUS MESSAGES
   ============================================================================ */

.contact-status {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    animation: slideDown 0.3s ease;
}

.contact-status i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.contact-status-success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.contact-status-error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile responsive status messages */
@media (max-width: 768px) {
    .contact-status {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }
}

/* ============================================================================
   DOCUMENTS SECTION STYLES
   ============================================================================ */

.documents-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: -1rem auto 4rem;
    line-height: 1.6;
}

.documents-sections-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.document-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.document-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.document-section-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.1);
}

.document-section-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.document-section-title-area {
    flex: 1;
}

.document-section-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.document-section-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.document-subsections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.document-subsection-card {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.document-subsection-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
    background: var(--bg-card-hover);
}

.document-subsection-content {
    flex: 1;
}

.document-subsection-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.document-subsection-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.document-subsection-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.document-subsection-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.document-subsection-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.document-download-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.document-download-btn:hover {
    transform: translateY(-2px);
}

.document-download-btn i {
    font-size: 1rem;
    animation: downloadBounce 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .documents-intro {
        font-size: 1rem;
        margin: -1rem auto 2rem;
    }
    
    .documents-sections-container {
        gap: 2rem;
    }
    
    .document-section {
        padding: 1.5rem;
    }
    
    .document-section-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .document-section-title {
        font-size: 1.3rem;
    }
    
    .document-subsections {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .document-subsection-card {
        padding: 1.2rem;
    }
    
    .document-subsection-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .document-section {
        padding: 1.2rem;
    }
    
    .document-section-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .document-section-title {
        font-size: 1.2rem;
    }
    
    .document-subsection-title {
        font-size: 1.05rem;
    }
}

/* ============================================================================
   SETTINGS PAGE - SINGLE COLUMN DESKTOP LAYOUT
   ============================================================================ */

/* Override settings container for single column */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Make each settings section more compact */
.settings-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 0;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.settings-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
}

/* Compact theme selector for desktop */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.theme-option {
    padding: 0.8rem 0.6rem;
}

.theme-option h4 {
    font-size: 0.85rem;
}

.theme-preview {
    margin-bottom: 0.6rem;
}

.theme-preview span {
    width: 24px;
    height: 24px;
}

/* Compact theme categories */
.theme-category {
    font-size: 1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

.theme-category:first-of-type {
    margin-top: 0;
}

/* Compact setting items */
.setting-item {
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.setting-label p {
    font-size: 0.85rem;
}

/* Compact toggle switches */
.toggle-switch {
    width: 50px;
    height: 26px;
}

.toggle-slider {
    width: 20px;
    height: 20px;
    top: 2px;
    left: 2px;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

/* Compact select */
.settings-select {
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
}

/* Settings description more compact */
.setting-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Actions section compact */
.settings-actions {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.settings-actions .btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
}

/* Desktop: Single column, everything visible */
@media (min-width: 769px) {
    .settings-container {
        max-width: 1000px;
        padding: 0 2rem;
    }
    
    /* All settings fit in viewport */
    .content-wrapper {
        min-height: auto;
    }
    
    /* Theme selector - 2 rows of 6 themes */
    .theme-selector {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
    
    .theme-option {
        padding: 1rem;
    }
    
    .theme-option h4 {
        font-size: 0.9rem;
    }
    
    .theme-preview span {
        width: 28px;
        height: 28px;
    }
}

/* Tablet: 4 themes per row */
@media (max-width: 968px) {
    .theme-selector {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile: 2 themes per row */
@media (max-width: 768px) {
    .settings-container {
        gap: 1.5rem;
    }
    
    .settings-section {
        padding: 1.2rem;
    }
    
    .theme-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .theme-option {
        padding: 0.8rem;
    }
    
    .theme-preview span {
        width: 25px;
        height: 25px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .setting-control {
        width: 100%;
    }
    
    .settings-select {
        width: 100%;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .settings-section h3 {
        font-size: 1.2rem;
    }
    
    .theme-category {
        font-size: 0.95rem;
    }
}

/* ============================================================================
   PROJECT STATUS INDICATOR - OPTIONAL BADGE
   Add status: "development" to project in config.js to show badge
   ============================================================================ */

.project-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Hide by default */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Show badge on hover (desktop) */
.project-card:hover .project-status-badge {
    opacity: 1;
    transform: translateY(0);
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Show badge on touch/active (mobile) */
.project-card:active .project-status-badge,
.project-card.touched .project-status-badge {
    opacity: 1;
    transform: translateY(0);
    animation: pulseGlow 2s ease-in-out infinite;
}

.project-status-badge i {
    font-size: 0.9rem;
    animation: spin 3s linear infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(243, 156, 18, 0.7);
    }
}

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

/* Responsive status badge - always visible on mobile */
@media (max-width: 768px) {
    .project-status-badge {
        top: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        /* Always visible on mobile since hover doesn't work */
        opacity: 1;
        transform: translateY(0);
        animation: pulseGlow 2s ease-in-out infinite;
    }

    .project-status-badge i {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .project-status-badge {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        /* Ensure still visible on small mobile */
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   SOCIAL LINKS - ACTIVE/INACTIVE STATES
   Inactive links appear grey and unclickable
   ============================================================================ */

/* Inactive/disabled social links */
.social-links a.inactive,
.social-links a.disabled {
    color: #4a5568;
    background: rgba(74, 85, 104, 0.2);
    border-color: rgba(74, 85, 104, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.social-links a.inactive:hover,
.social-links a.disabled:hover {
    color: #4a5568;
    transform: none;
    border-color: rgba(74, 85, 104, 0.3);
    box-shadow: none;
}

/* Active social links (default behavior preserved) */
.social-links a.active {
    color: var(--text-secondary);
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
}

.social-links a.active:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* ============================================================================
   SOCIAL LINKS - ACTIVE/INACTIVE STATES
   Inactive links appear grey and unclickable
   ============================================================================ */

.social-links a.inactive,
.social-links a.disabled {
    color: #4a5568;
    background: rgba(74, 85, 104, 0.2);
    border-color: rgba(74, 85, 104, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.social-links a.inactive:hover,
.social-links a.disabled:hover {
    color: #4a5568;
    transform: none;
    border-color: rgba(74, 85, 104, 0.3);
    box-shadow: none;
}

.social-links a.active {
    color: var(--text-secondary);
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
}

.social-links a.active:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* ============================================================================
   REQUEST DOCUMENT SECTION - DOCUMENTS PAGE
   ============================================================================ */

.request-document-section {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.request-document-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.request-document-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
    }
}

.request-document-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.request-document-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.request-document-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.request-document-item {
    background: rgba(0, 212, 255, 0.12);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.95rem;
    border: 1px solid rgba(0, 212, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.request-document-item i {
    font-size: 0.9rem;
}

.btn-request-document {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-request-document:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.btn-request-document i {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .request-document-section {
        padding: 2rem 1.5rem;
    }
    
    .request-document-header {
        flex-direction: column;
    }
    
    .request-document-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .request-document-title {
        font-size: 1.5rem;
    }
    
    .request-document-description {
        font-size: 1rem;
    }
    
    .request-document-items {
        flex-direction: column;
        align-items: center;
    }
    
    .request-document-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .btn-request-document {
        width: 100%;
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .request-document-section {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .request-document-title {
        font-size: 1.3rem;
    }
}

/* ============================================================================
   PDF PREVIEW MODAL
   ============================================================================ */

.pdf-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pdf-preview-modal.active {
    display: flex;
}

.pdf-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.pdf-preview-content {
    position: relative;
    width: 92%;
    max-width: 1000px;
    height: 90vh;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: modalSlideIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

.pdf-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    background: var(--bg-darker);
}

.pdf-preview-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-preview-close {
    width: 36px;
    height: 36px;
    background: rgba(231, 76, 60, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-preview-close:hover {
    background: #e74c3c;
    transform: rotate(90deg);
}

.pdf-preview-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.pdf-preview-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-preview-footer {
    padding: 0.8rem 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    background: var(--bg-darker);
    text-align: center;
}

.pdf-preview-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.document-subsection-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.document-subsection-actions .btn {
    flex: 1;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.document-preview-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.document-preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

@media (max-width: 768px) {
    .pdf-preview-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-width: none;
    }
    .pdf-preview-header {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }
    .pdf-preview-title {
        font-size: 0.9rem;
        min-width: 0;
    }
    .pdf-preview-close {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .pdf-preview-footer {
        padding: 0.8rem 1rem;
    }
    .pdf-preview-download-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
    .document-subsection-actions {
        flex-direction: column;
    }
    .document-subsection-actions .btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pdf-preview-header {
        padding: 0.6rem 0.8rem;
    }
    .pdf-preview-title {
        font-size: 0.85rem;
    }
}

/* ============================================================================
   EXPERIENCE LISTS - FORCE REMOVE BULLETS
   ============================================================================ */

.experience-highlights ul,
.experience-highlights ul li,
.experience-section ul,
.experience-section ul li,
ul.experience-list,
ul.experience-list li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Ensure arrow pointer is the only marker */
.experience-highlights .experience-list li,
.experience-section .experience-list li {
    padding-left: 1.2rem;
    position: relative;
}
