/* ===== MODERN PORTFOLIO REDESIGN ===== */

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

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 3px solid #a5b4fc;
    outline-offset: 3px;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: var(--dark-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 1000;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.logo {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.nav-menu {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nav-dot {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.nav-dot span {
    display: block;
    width: 12px;
    height: 12px;
    background: var(--gray);
    border-radius: 50%;
    transition: all 0.3s;
}

.nav-dot:hover span,
.nav-dot.active span {
    background: var(--primary);
    transform: scale(1.5);
}

.nav-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-light);
    padding: 8px 15px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-dot:hover::before {
    opacity: 1;
    left: 40px;
}

.nav-dot:focus-visible::before {
    opacity: 1;
    left: 40px;
}

.social-links-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links-sidebar a {
    color: var(--gray);
    font-size: 20px;
    transition: all 0.3s;
}

.social-links-sidebar a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 80px;
}

/* ===== HERO FULLSCREEN ===== */
.hero-fullscreen {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-split-container {
    display: flex;
    height: 100%;
}

.hero-left {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 80px;
    background: var(--dark);
}

.hero-content {
    max-width: 600px;
}

.hero-greeting {
    font-size: 20px;
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
}

.hero-name {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}

.hero-role-label {
    color: var(--gray);
}

.hero-role {
    color: var(--accent);
    font-weight: 600;
}

.hero-description {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    background: var(--gradient-1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary-custom:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.hero-tech-stack {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-stack-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.tech-marquee-container {
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    position: relative;
    padding: 6px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tech-marquee {
    display: flex;
    width: max-content;
    animation: marquee-infinite 28s linear infinite;
}

.tech-marquee:hover {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 14px;
    flex-shrink: 0;
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.tech-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.tech-icon:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

@keyframes marquee-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat-label i {
    font-size: 12px;
    color: var(--primary);
}

.hero-right {
    flex: 1;
    background: var(--dark-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
}

.hero-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.1);
    z-index: 2;
}

.floating-card {
    position: absolute;
    background: var(--dark-light);
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.floating-card i {
    font-size: 24px;
    color: var(--primary);
}

/* Position cards above the profile image */
.card-top-1 {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    animation: float-center 3s ease-in-out infinite;
    animation-delay: 0s;
}

.card-top-2 {
    top: 20px;
    left: -40px;
    animation: float-side 3s ease-in-out infinite;
    animation-delay: 1s;
}

.card-top-3 {
    top: 20px;
    right: -40px;
    animation: float-side 3s ease-in-out infinite;
    animation-delay: 2s;
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    animation: bounce 2s infinite;
}

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

/* ===== SECTION TITLE MODERN ===== */
.section-title-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
    padding-top: 100px;
}

.title-number {
    font-size: 72px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}

.title-text {
    font-size: 48px;
    font-weight: 800;
}

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

.about-container-new {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 20px;
}

/* Left Side - Main Content */
.about-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-intro-card {
    background: var(--dark-light);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.about-intro-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.intro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.intro-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.intro-badge {
    background: var(--gradient-1);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.intro-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-text {
    color: var(--gray);
    line-height: 1.8;
    font-size: 16px;
}

.intro-text strong {
    color: var(--white);
    font-weight: 600;
}

/* Strengths Card */
.about-strengths-card {
    background: var(--dark-light);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.about-strengths-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.strengths-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.strengths-header i {
    font-size: 28px;
    color: var(--primary);
}

.strengths-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.strength-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--dark);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.strength-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

.strength-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.strength-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 5px 0;
}

.strength-content p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

/* Right Side - Info Cards */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

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

.info-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.card-goal .info-card-icon {
    background: var(--gradient-1);
}

.card-education .info-card-icon {
    background: var(--gradient-3);
}

.card-hobbies .info-card-icon {
    background: var(--gradient-2);
}

.card-stats {
    background: var(--gradient-1);
    border: none;
}

.info-card-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 10px 0;
}

.info-card-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.card-stats .info-card-content h4,
.card-stats .info-card-content p {
    color: white;
}

/* Hobbies Tags */
.hobbies-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.hobby-tag {
    background: var(--dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hobby-tag i {
    color: var(--primary);
}

/* Quick Stats */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.stat-item-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.stat-item-small:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.stat-value {
    font-size: 14px;
    color: white;
    font-weight: 700;
}

/* Responsive About Section */
@media (max-width: 1200px) {
    .about-container-new {
        grid-template-columns: 1fr 350px;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .about-container-new {
        grid-template-columns: 1fr;
    }
    
    .about-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-section-new {
        padding: 60px 0;
    }
    
    .about-intro-card,
    .about-strengths-card {
        padding: 25px;
    }
    
    .intro-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .intro-title {
        font-size: 28px;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
    }
    
    .about-sidebar {
        grid-template-columns: 1fr;
    }
    
    .strength-item {
        padding: 15px;
    }
    
    .strength-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* ===== EDUCATION MODERN ===== */
.education-modern {
    padding: 100px 0;
    background: var(--dark-light);
}

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

.education-card-modern {
    background: var(--dark);
    padding: 35px;
    border-radius: 20px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.education-card-modern:hover {
    transform: translateX(10px);
    border-left-width: 8px;
}

.education-year {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.education-institution {
    font-size: 24px;
    margin-bottom: 10px;
}

.education-degree {
    color: var(--gray);
    margin-bottom: 5px;
}

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

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.skills-category-title {
    font-size: 32px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.skill-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.circle-progress {
    position: relative;
    width: 140px;
    height: 140px;
}

.circle-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-progress circle {
    fill: none;
    stroke-width: 8;
    stroke: var(--dark-light);
}

.circle-progress .progress-circle {
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1.5s ease;
}

.circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.percent-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.skill-name {
    font-size: 16px;
    text-align: center;
}

/* ===== GALLERY MASONRY ===== */
.gallery-masonry {
    padding: 100px 0;
    background: var(--dark-light);
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.project-card-modern {
    background: var(--dark);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card-modern:hover {
    transform: translateY(-10px);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
    display: block;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card-modern:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card-modern:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.project-description {
    font-size: 14px;
    color: var(--gray);
}

/* ===== EXPERIENCE SECTION (2x2 GRID) ===== */
.experience-section,
.experience-horizontal {
    padding: 100px 0;
    background: var(--dark);
}

.experience-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 35px;
}

.experience-card-2x2 {
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.experience-card-2x2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, #a855f7 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.experience-card-2x2:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.experience-card-2x2:hover::before {
    opacity: 1;
}

.experience-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.experience-year-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.experience-org-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 9999px;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.experience-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 900px) {
    .experience-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .experience-card-2x2 {
        padding: 24px;
    }
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials-carousel {
    padding: 100px 0;
    background: var(--dark-light);
}

.testimonials-slider {
    position: relative;
    margin-bottom: 80px;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.testimonials-track::-webkit-scrollbar {
    height: 8px;
}

.testimonials-track::-webkit-scrollbar-track {
    background: var(--dark);
    border-radius: 10px;
}

.testimonials-track::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.testimonial-slide {
    min-width: 500px;
}

.testimonial-card-modern {
    background: var(--dark);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.quote-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--gray);
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img,
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar {
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.author-info p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

/* ===== FORMS ===== */
.testimonial-form-section,
.modern-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.modern-form {
    background: var(--dark);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

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

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--gradient-1);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== GUESTBOOK CHAT ===== */
.guestbook-chat {
    padding: 100px 0;
    background: var(--dark);
}

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

.chat-messages {
    background: var(--dark-light);
    border-radius: 20px;
    padding: 30px;
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 30px;
}

.chat-message {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.message-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.message-author {
    font-weight: 600;
}

.message-time {
    font-size: 12px;
    color: var(--gray);
}

.message-text {
    background: var(--dark);
    padding: 15px;
    border-radius: 12px;
    line-height: 1.6;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.btn-write-message {
    width: 100%;
    padding: 18px;
    background: var(--gradient-1);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-write-message:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--dark-light);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 28px;
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
.footer-modern {
    background: var(--dark-light);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-name {
    font-size: 28px;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-description {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

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

.contact-item i {
    width: 20px;
    color: var(--primary);
    font-size: 16px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
    background: var(--gradient-1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    border-color: transparent;
}

.btn-download-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-download-footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
}

.made-with {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
}

.made-with i {
    color: #ec4899;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* Download CV Button in Hero */
.btn-download-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--white);
}

.btn-download-cv:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-download-cv i {
    font-size: 16px;
}

/* GitHub Profile Button in Hero */
.btn-github-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    background: #181c24;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-github-hero:hover {
    background: #24292e;
    color: #ffffff;
    transform: translateY(-3px);
    border-color: #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-github-hero i {
    font-size: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .hero-name {
        font-size: 60px;
    }
    
    .hero-image-wrapper {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-grid {
        column-count: 2;
    }
    
    .hero-left {
        padding: 0 50px;
    }
    
    .title-number {
        font-size: 60px;
    }
    
    .title-text {
        font-size: 40px;
    }
    
    .testimonial-slide {
        min-width: 450px;
    }

    .about-container-new {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-split-container {
        flex-direction: column;
        height: auto;
    }
    
    .hero-left,
    .hero-right {
        flex: none;
        width: 100%;
        height: auto;
    }

    .hero-left {
        padding: 30px 20px;
        text-align: center;
        align-items: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-tech-stack, .hero-buttons, .hero-stats {
        justify-content: center;
        align-items: center;
    }

    .hero-right {
        padding: 30px 20px 10px;
        background: transparent;
        display: flex;
        justify-content: center;
    }
    
    .hero-fullscreen {
        height: auto;
        min-height: auto;
        overflow: hidden;
    }
    
    .hero-image-wrapper {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }
    
    .floating-card {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .floating-card i {
        font-size: 14px;
    }
    
    .card-top-1 {
        top: -15px;
    }
    
    .card-top-2 {
        left: -10px;
    }
    
    .card-top-3 {
        right: -10px;
    }
    
    .skills-grid {
        gap: 30px;
    }
    
    .timeline-horizontal {
        padding: 20px 0;
    }
    
    .timeline-item-h {
        min-width: 280px;
    }

    .api-playground-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .api-endpoint-list { max-height: 200px; }
    .api-response-panel { min-height: 320px; }
    .hero-name { font-size: 34px; }
    .title-number { font-size: 40px; }
    .title-text { font-size: 28px; }
}

@media (max-width: 768px) {
    .sidebar-nav {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-bottom: 90px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }
    
    .hero-left {
        padding: 25px 15px;
    }
    
    .hero-name {
        font-size: 30px !important;
        line-height: 1.2;
    }
    
    .hero-greeting {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .hero-role-wrapper {
        font-size: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-download-cv,
    .btn-github-hero {
        width: 100% !important;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        width: 100%;
        margin-top: 20px;
    }

    .tech-marquee-container {
        max-width: 100%;
        overflow: hidden;
    }
    
    .floating-card {
        padding: 6px 12px;
        font-size: 11px;
        gap: 6px;
    }
    
    .floating-card i {
        font-size: 13px;
    }
    
    .floating-card span {
        display: inline-block !important;
        white-space: nowrap;
    }
    
    .card-top-1 {
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .card-top-2 {
        top: auto;
        bottom: -10px;
        left: -10px;
    }
    
    .card-top-3 {
        top: auto;
        bottom: -10px;
        right: -10px;
    }
    
    .about-sidebar {
        grid-template-columns: 1fr;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 60px;
        margin-bottom: 40px;
    }
    
    .title-number {
        font-size: 48px;
    }
    
    .title-text {
        font-size: 32px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        grid-auto-rows: auto;
    }
    
    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .bento-item {
        padding: 25px;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .circle-progress {
        width: 120px;
        height: 120px;
    }
    
    .masonry-grid {
        column-count: 1;
    }
    
    .timeline-item-h {
        min-width: 280px;
    }
    
    .testimonial-slide {
        min-width: 100%;
    }
    
    .testimonial-card-modern {
        padding: 30px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modern-form {
        padding: 30px 20px;
    }
    
    .chat-messages {
        padding: 20px;
        max-height: 500px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-left h3 {
        font-size: 20px;
    }
    
    .modal-container {
        padding: 30px 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    
    .hero-name {
        font-size: 36px;
    }
    
    .hero-greeting {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .title-number {
        font-size: 36px;
    }
    
    .title-text {
        font-size: 28px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .circle-progress {
        width: 140px;
        height: 140px;
    }
    
    .circle-progress svg {
        width: 140px;
        height: 140px;
    }
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}


/* ===== SCROLL ANIMATIONS & UTILITIES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Selection color */
::selection {
    background: var(--primary);
    color: white;
}

/* Focus outline */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Disabled state */
.disabled,
[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Text utilities */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Spacing utilities */
.section-spacing {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 60px 0;
    }
}

/* Print styles */
@media print {
    .sidebar-nav,
    .scroll-indicator,
    .floating-card,
    .btn-write-message,
    .slider-btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}


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

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    margin-top: -40px;
    margin-bottom: 50px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.project-card-new {
    background: var(--dark-light);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card-new:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--dark);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-new:hover .project-img {
    transform: scale(1.1);
}

.project-year-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-1);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.project-content-new {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.project-header-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.project-title-new {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
}

.project-category {
    background: var(--dark);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    border: 1px solid var(--primary);
}

.project-description-new {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: var(--dark);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
}

.project-links-new {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.project-link-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.demo-btn {
    background: var(--gradient-1);
    color: white;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

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

.github-btn:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

.empty-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

.empty-projects i {
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-projects p {
    font-size: 18px;
    margin: 0;
}

/* Responsive Projects */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 60px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-content-new {
        padding: 20px;
    }
    
    .project-header-new {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-links-new {
        flex-direction: column;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-top: -30px;
    }
}


/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-left {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-modern {
        padding: 60px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-left {
        grid-column: 1;
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-center,
    .footer-right {
        text-align: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .btn-download-footer {
        width: 100%;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-download-cv {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
    --dark: #f1f5f9;
    --dark-light: #ffffff;
    --gray: #475569;
    --white: #0f172a;
    background: #f1f5f9;
    color: #0f172a;
}
[data-theme="light"] .sidebar-nav { background: #1e293b; }
[data-theme="light"] .hero-fullscreen { background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%); }
[data-theme="light"] .hero-name { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .section-title-modern .title-text { color: #0f172a; }
[data-theme="light"] .about-intro-card,
[data-theme="light"] .about-strengths-card,
[data-theme="light"] .info-card,
[data-theme="light"] .education-card-modern,
[data-theme="light"] .project-card-new,
[data-theme="light"] .blog-card,
[data-theme="light"] .testimonial-card-modern { background: #ffffff; border-color: #e2e8f0; }
[data-theme="light"] .masonry-overlay { opacity: 0; }
[data-theme="light"] .footer-modern { background: #1e293b; color: white; }
[data-theme="light"] .footer-name,
[data-theme="light"] .footer-title,
[data-theme="light"] .footer-tagline,
[data-theme="light"] .contact-item,
[data-theme="light"] .copyright,
[data-theme="light"] .made-with { color: rgba(255,255,255,0.85) !important; }

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle-btn {
    margin-top: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.theme-toggle-btn:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: rotate(20deg) scale(1.1);
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section {
    padding: 100px 0;
    background: var(--dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--dark-light);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(99,102,241,0.15);
}

.blog-card-body { padding: 24px; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.blog-category {
    background: rgba(99,102,241,0.15);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.blog-date { font-size: 12px; color: var(--gray); }
.blog-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.blog-excerpt { font-size: 14px; color: var(--gray); line-height: 1.6; }
.blog-card-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.blog-read-more { font-size: 14px; font-weight: 600; color: var(--primary); }

.blog-empty { text-align: center; color: var(--gray); padding: 60px 20px; }

/* Blog Modal */
.blog-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.blog-modal-overlay.active { opacity: 1; pointer-events: all; }

.blog-modal-container {
    background: var(--dark-light);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    max-width: 760px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.blog-modal-overlay.active .blog-modal-container { transform: translateY(0); }

.blog-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    width: 36px; height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.blog-modal-close:hover { background: #ef4444; border-color: #ef4444; }

.blog-modal-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.blog-modal-meta { font-size: 13px; color: var(--gray); margin-bottom: 24px; }
.blog-modal-content { color: var(--gray); line-height: 1.8; font-size: 15px; }
.blog-modal-content h1,.blog-modal-content h2,.blog-modal-content h3 { color: var(--white); margin: 20px 0 10px; }
.blog-modal-content p { margin-bottom: 14px; }
.blog-modal-content code { background: var(--dark); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 13px; color: #a5b4fc; }
.blog-modal-content pre { background: var(--dark); padding: 16px; border-radius: 10px; overflow-x: auto; margin: 16px 0; }

/* ============================================================
   PROJECT DETAIL MODAL
   ============================================================ */
.project-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s;
}
.project-detail-overlay.active { opacity: 1; visibility: visible; pointer-events: all; }

.project-detail-modal {
    background: var(--dark-light);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 36px;
    max-width: 820px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.97);
    transition: all 0.3s;
}
.project-detail-overlay.active .project-detail-modal { transform: translateY(0) scale(1); }

.project-detail-close {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    width: 38px; height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}
.project-detail-close:hover { background: #ef4444; border-color: #ef4444; }

.project-detail-header { margin-bottom: 24px; padding-right: 40px; }
.project-detail-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.project-detail-meta { display: flex; align-items: center; gap: 10px; }
.project-detail-desc { color: var(--gray); line-height: 1.7; }

/* Tabs */
.project-detail-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.detail-tab {
    background: transparent;
    border: none;
    color: var(--gray);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
    font-family: 'Poppins', sans-serif;
}
.detail-tab:hover { color: var(--white); }
.detail-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.detail-tab-content { display: none; }
.detail-tab-content.active { display: block; }

.detail-tab-content[hidden] { display: none; }

/* Architecture */
.architecture-text {
    background: var(--dark);
    border-radius: 12px;
    padding: 24px;
    color: #a5b4fc;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    border: 1px solid rgba(99,102,241,0.2);
}

/* Database Schema */
.database-schema { display: flex; flex-direction: column; gap: 12px; }
.schema-table { background: var(--dark); border-radius: 12px; overflow: hidden; border: 1px solid rgba(16,185,129,0.2); }
.schema-table-header { background: rgba(16,185,129,0.1); padding: 10px 16px; font-weight: 700; font-size: 14px; color: #10b981; border-bottom: 1px solid rgba(16,185,129,0.15); }
.schema-columns { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.schema-col { background: rgba(255,255,255,0.05); padding: 4px 12px; border-radius: 6px; font-size: 12px; font-family: monospace; color: var(--gray); border: 1px solid rgba(255,255,255,0.08); }

/* Code Snippets */
.code-snippet-block { margin-bottom: 16px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.snippet-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08); }
.snippet-title { font-size: 14px; font-weight: 600; color: var(--white); }
.snippet-lang { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.snippet-code { margin: 0; padding: 16px; background: #0d1117; color: #a5b4fc; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.6; overflow-x: auto; white-space: pre; }

/* Tech Specs */
.specs-text { background: var(--dark); border-radius: 12px; padding: 20px; color: var(--gray); font-family: 'Poppins', sans-serif; font-size: 14px; line-height: 1.8; white-space: pre-wrap; border: 1px solid rgba(255,255,255,0.06); }

/* Detail button */
.detail-btn {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
}
.detail-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124,58,237,0.4); color: white; }

/* ===== MOBILE BOTTOM NAVIGATION & RESPONSIVE BREAKPOINTS ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
    gap: 3px;
    min-height: 44px;
    min-width: 44px;
}

.mobile-nav-link i {
    font-size: 18px;
}

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

.empty-state-box {
    background: rgba(30, 41, 59, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .sidebar-nav {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-bottom: 70px !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }
}

/* ============================================================
   MOBILE HERO COMPOSITION REPAIR
   The desktop split hero intentionally remains untouched. On a phone the
   content needs to read as one composed story instead of a shrunken split.
   ============================================================ */
@media (max-width: 768px) {
    /* Mobile hero: turn the existing portrait into a subdued dossier-cover
       watermark rather than a second, detached circular section. */
    .hero-split-container {
        position: relative;
        overflow: hidden;
        background: var(--dark);
    }

    html {
        scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .main-content {
        padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
    }

    .hero-fullscreen {
        height: auto;
        min-height: 0;
        overflow: clip;
    }

    .hero-split-container {
        height: auto;
    }

    .hero-left {
        padding: 34px 24px 8px;
        text-align: left;
        align-items: flex-start;
        position: relative;
        z-index: 2;
        background: transparent;
    }

    .hero-content {
        width: min(100%, 430px);
        align-items: stretch;
    }

    .hero-greeting {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .hero-name {
        font-size: clamp(42px, 12vw, 48px) !important;
        line-height: 1.03;
        letter-spacing: -1.7px;
        margin-bottom: 12px;
    }

    .hero-role-wrapper {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 14px;
        font-size: 15px;
    }

    .hero-description {
        max-width: 37ch;
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 1.58;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px 16px;
        margin-bottom: 0;
    }

    /* The two portfolio actions lead; the social/contact actions stay useful
       without turning the first mobile screen into four equal CTAs. */
    .hero-buttons .btn-primary-custom,
    .hero-buttons .btn-download-cv {
        order: 1;
        flex: 1 0 100%;
        width: 100% !important;
        min-height: 50px;
    }

    .hero-buttons .btn-github-hero,
    .hero-buttons .btn-secondary-custom {
        order: 2;
        width: auto !important;
        min-height: 28px;
        padding: 2px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: var(--gray);
        font-size: 13px;
        font-weight: 500;
    }

    .hero-buttons .btn-github-hero::after,
    .hero-buttons .btn-secondary-custom::after {
        content: '';
        display: inline-block;
        width: 4px;
        height: 4px;
        margin-left: 2px;
        border-right: 1px solid currentColor;
        border-top: 1px solid currentColor;
        transform: rotate(45deg);
    }

    .hero-buttons .btn-github-hero:hover,
    .hero-buttons .btn-secondary-custom:hover {
        transform: none;
        background: transparent;
        box-shadow: none;
        color: var(--white);
    }

    .hero-tech-stack,
    .scroll-indicator,
    .floating-card {
        display: none !important;
    }

    .hero-right {
        position: absolute;
        inset: 0;
        z-index: 1;
        min-height: 0;
        padding: 0;
        display: block;
        overflow: hidden;
        pointer-events: none;
        background: transparent;
        /* The desktop parallax script writes an inline transform. Disabling it
           here keeps the portrait fixed as a background treatment. */
        transform: none !important;
    }

    .hero-right::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background:
            linear-gradient(90deg, var(--dark) 0%, rgba(15, 23, 42, 0.95) 43%, rgba(15, 23, 42, 0.48) 100%),
            linear-gradient(0deg, var(--dark) 0%, rgba(15, 23, 42, 0.5) 32%, transparent 72%);
    }

    .hero-image-wrapper {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        /* This is deliberately on the wrapper: the inline slideshow animation
           changes the image opacity, but must never make the cover image loud. */
        opacity: 0.28;
    }

    .hero-image-bg {
        display: none;
    }

    .hero-image {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: right bottom;
        z-index: 0;
        border: 0;
        border-radius: 0;
        filter: saturate(0.72) contrast(0.92);
    }

    .about-section-new {
        padding: 46px 0 60px;
    }

    .about-section-new .section-title-modern {
        padding-top: 0;
        margin-bottom: 30px;
    }

    .about-section-new .container-fluid {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    .mobile-bottom-nav {
        height: calc(58px + env(safe-area-inset-bottom));
        padding: 0 8px env(safe-area-inset-bottom);
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 -8px 24px rgba(2, 6, 23, 0.22);
    }

    .mobile-nav-link {
        min-width: 52px;
        font-size: 10px;
        gap: 2px;
    }

    .mobile-nav-link i {
        font-size: 16px;
    }

    .footer-modern {
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
    }

    /* Keep dense project content contained on the narrowest screens. */
    .project-card-modern,
    .project-card-new,
    .project-content-new,
    .project-detail-modal,
    .architecture-text,
    .specs-text,
    .snippet-code {
        min-width: 0;
        max-width: 100%;
    }

    .project-detail-overlay {
        padding: 12px;
    }

    .project-detail-modal {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 82px);
        padding: 28px 16px 20px;
    }

    .project-detail-tabs {
        gap: 0;
    }

    .detail-tab {
        padding: 9px 10px;
        font-size: 12px;
    }

    .architecture-text,
    .specs-text {
        overflow-wrap: anywhere;
    }

    .snippet-code {
        padding: 14px;
        font-size: 12px;
    }
}

@media (max-width: 374px) {
    .hero-left {
        padding-inline: 20px;
    }

    .hero-name {
        font-size: 40px !important;
    }

    .hero-right {
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .tech-marquee {
        transform: none !important;
    }
}

/* ============================================================
   TABLET HERO COMPOSITION
   A tablet has the width for a generous dossier-cover hero, but not for
   a fixed sidebar plus the desktop's two competing columns.
   ============================================================ */
@media (min-width: 769px) and (max-width: 1199px) {
    html {
        scroll-padding-bottom: 76px;
    }

    .sidebar-nav {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
        height: 64px;
        padding: 0 22px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 -8px 24px rgba(2, 6, 23, 0.22);
    }

    .main-content {
        margin-left: 0 !important;
        padding-bottom: 76px !important;
        overflow-x: hidden;
    }

    .hero-fullscreen {
        height: min(100vh, 820px);
        min-height: 650px;
        overflow: clip;
    }

    .hero-split-container {
        position: relative;
        display: block;
        height: 100%;
        overflow: hidden;
        background: var(--dark);
    }

    .hero-left {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        padding: 80px clamp(56px, 9vw, 104px) 92px;
        text-align: left;
        align-items: center;
        background: transparent;
    }

    .hero-content {
        width: min(62%, 620px);
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-greeting {
        margin-bottom: 10px;
        font-size: 17px;
    }

    .hero-name {
        font-size: clamp(52px, 6vw, 64px);
        line-height: 1.06;
        margin-bottom: 14px;
    }

    .hero-role-wrapper {
        margin-bottom: 17px;
        font-size: 18px;
    }

    .hero-description {
        max-width: 52ch;
        margin-bottom: 26px;
        font-size: 15px;
        line-height: 1.65;
    }

    .hero-buttons {
        width: min(100%, 540px);
        gap: 12px;
        margin-bottom: 0;
    }

    .hero-buttons .btn-primary-custom,
    .hero-buttons .btn-download-cv {
        flex: 1 1 calc(50% - 6px);
        min-height: 50px;
    }

    .hero-buttons .btn-github-hero,
    .hero-buttons .btn-secondary-custom {
        flex: 1 1 calc(50% - 6px);
        min-height: 44px;
        padding-inline: 18px;
        font-size: 14px;
    }

    .hero-tech-stack,
    .hero-stats,
    .scroll-indicator,
    .floating-card {
        display: none !important;
    }

    .hero-right {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: block;
        width: auto;
        height: auto;
        padding: 0;
        overflow: hidden;
        pointer-events: none;
        background: transparent;
        transform: none !important;
    }

    .hero-right::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background:
            linear-gradient(90deg, var(--dark) 0%, rgba(15, 23, 42, 0.94) 46%, rgba(15, 23, 42, 0.43) 100%),
            linear-gradient(0deg, var(--dark) 0%, rgba(15, 23, 42, 0.48) 31%, transparent 72%);
    }

    .hero-image-wrapper {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        opacity: 0.28;
    }

    .hero-image-bg {
        display: none;
    }

    .hero-image {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: right bottom;
        border: 0;
        border-radius: 0;
        filter: saturate(0.72) contrast(0.92);
    }
}

/* ==========================================================================
   EXPANDABLE SECTIONS (GALLERY & MY PROJECTS)
   ========================================================================== */
.expand-controls-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    position: relative;
    z-index: 5;
    width: 100%;
}

.btn-expand-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 30px;
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 48px;
    text-decoration: none;
    user-select: none;
}

.btn-expand-toggle:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(99, 102, 241, 0.28);
}

.btn-expand-toggle:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 3px;
}

.btn-expand-badge {
    background: rgba(99, 102, 241, 0.22);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.btn-expand-toggle:hover .btn-expand-badge {
    background: rgba(99, 102, 241, 0.45);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.7);
}

.btn-expand-icon {
    font-size: 0.85rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-expand-toggle[aria-expanded="true"] .btn-expand-icon {
    transform: rotate(180deg);
}

/* Item Collapsed State */
.expand-item-collapsed {
    display: none !important;
}

/* Smooth Entrance when Expanded */
.expand-item-animating {
    animation: expandFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes expandFadeIn {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-expand-toggle,
    .btn-expand-icon {
        transition: none;
    }
    .expand-item-animating {
        animation: none !important;
    }
}




