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

/* Universal Cross-Browser Reset */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Anti-drag protection for images */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    max-width: 100%;
    height: auto;
}

/* Allow pointer events on popup images */
.popup-main-image,
.popup-thumb,
.image-viewer img {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Theme colors loaded from theme.css */
    /* Legacy variables (for backward compatibility) */
    --bg-light: #f8f9fa;
}

body {
    font-family: var(--font-primary);
    background: var(--color-background);
    color: var(--color-text);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    /* Anti-selection protection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* Prevent overflow issues */
main, section, article, aside, header, footer, nav {
    max-width: 100%;
    overflow-x: hidden;
}

/* Heading styles using font variables */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1.2;
}

h1 { font-size: calc(var(--font-size-base) * var(--font-size-heading) * 2.5); }
h2 { font-size: calc(var(--font-size-base) * var(--font-size-heading) * 2); }
h3 { font-size: calc(var(--font-size-base) * var(--font-size-heading) * 1.75); }
h4 { font-size: calc(var(--font-size-base) * var(--font-size-heading) * 1.5); }
h5 { font-size: calc(var(--font-size-base) * var(--font-size-heading) * 1.25); }
h6 { font-size: calc(var(--font-size-base) * var(--font-size-heading)); }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navbar */
.navbar {
    background: var(--bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    font-size: 1.2rem;
}

.logo-bold {
    font-weight: 700;
    color: var(--primary);
}

.logo-light {
    font-weight: 400;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 50px;
}

.nav-menu a i {
    font-size: 0.8rem;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active i {
    opacity: 1;
    width: auto;
    margin-right: 2px;
}

.nav-social {
    display: flex;
    gap: 15px;
}

.nav-social a {
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.nav-social a:hover {
    color: var(--primary);
}

.mobile-menu-checkbox {
    display: none !important;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mobile-toggle {
    display: block !important; /* Paksa tampil untuk test */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero {
    padding: 40px 0 60px;
    background: var(--bg);
    background-image: 
        linear-gradient(rgba(200, 200, 200, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-header {
    text-align: center;
    margin-bottom: 50px;
}

.hero-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 400;
}

/* Hero Content - 3 Column Layout */
.hero-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

/* Hero Left */
.hero-left {
    text-align: left;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 25px;
}

.intro-text strong {
    font-weight: 600;
}

.intro-text em {
    font-style: italic;
}

.emoji {
    font-size: 1.1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #2a2a45;
    transform: translateY(-2px);
}

/* Hero Center - Profile */
.hero-center {
    position: relative;
}

.profile-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Animated background behind profile */
.profile-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 360px;
    background: linear-gradient(45deg, var(--primary), #7c3aed, var(--primary), #3b82f6);
    background-size: 400% 400%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: gradientRotate 8s ease infinite, morphShape 10s ease-in-out infinite;
    opacity: 0.6;
    z-index: 0;
    filter: blur(20px);
}

.profile-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 380px;
    border: 2px dashed var(--primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: spinBorder 20s linear infinite;
    opacity: 0.4;
    z-index: 0;
}

.profile-image {
    position: relative;
    z-index: 2;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@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%; }
}

@keyframes spinBorder {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 20px;
    height: 20px;
    background: var(--primary);
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.shape-2 {
    width: 15px;
    height: 15px;
    background: #7c3aed;
    top: 30%;
    right: -25px;
    animation-delay: 1s;
}

.shape-3 {
    width: 12px;
    height: 12px;
    background: #3b82f6;
    bottom: 20%;
    left: -15px;
    animation-delay: 2s;
}

.shape-4 {
    width: 18px;
    height: 18px;
    background: var(--primary);
    bottom: 10%;
    right: -20px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
}

.speech-bubble {
    background: var(--primary);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
    position: relative;
    z-index: 3;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--primary);
}

.profile-image {
    width: 300px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    /* Ganti URL dengan path foto kamu */
    background-image: url('/assets/hero/profile.webp');
    background-size: cover;
    background-position: center;
}

.tech-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tech-badge i {
    font-size: 0.85rem;
    color: var(--primary);
}

.tech-badge.croco-badge {
    background: var(--bg-light);
    color: var(--text);
}

/* Hero Right */
.hero-right {
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

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

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.exp-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.exp-year {
    font-size: 4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

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

/* Project Section Background */
section.project {
    background: linear-gradient(180deg, var(--bg) 0%, #f0f7f7 50%, var(--bg) 100%);
    position: relative;
}

section.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 30px;
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: white;
}

.tab-btn.active {
    background: var(--primary);
    color: #ffffff;
}

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

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.project-card {
    background: var(--bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
    background-size: cover;
    background-position: center;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #d0d0d0;
    border-radius: 15px 15px 50% 50%;
}

/* Project Thumbnails - Ganti URL dengan path gambar kamu */
/* Project thumbnails will be loaded dynamically from API */

/* Hapus placeholder jika ada gambar */
.card-image.has-image::before {
    display: none;
}

/* View More Button */
.view-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-view-more:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

.btn-view-more.hidden {
    display: none;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Blog & Contact */
.blog {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f8 50%, #f5fffe 100%);
    position: relative;
    overflow: hidden;
}

.blog::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.blog-card {
    background: var(--bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.blog-thumbnail {
    width: 100%;
    height: 180px;
    background: #e8e8e8;
    position: relative;
    background-size: cover;
    background-position: center;
}

.blog-thumbnail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #d0d0d0;
    border-radius: 10px;
}

/* Blog thumbnails will be loaded dynamically from API */

/* Hapus placeholder blog */
.blog-thumbnail.has-image::before {
    display: none;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    font-size: 0.85rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary);
}

/* Why Hire Me Section */
.why-hire {
    padding: 60px 0;
    background: linear-gradient(180deg, #f5fffe 0%, #e8f7f6 50%, #f0faf9 100%);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.why-hire::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.why-hire::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(13, 148, 136, 0.04) 0%, transparent 30%);
    pointer-events: none;
}

.section-title-light {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 35px;
}

.hire-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.hire-card {
    text-align: center;
}

.hire-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    position: relative;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.hire-icon {
    font-size: 2.2rem;
    color: #f8f9fa;
}

.hire-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.hire-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(200, 200, 200, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    min-height: 400px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 20px;
}

.cta-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.cta-col-left {
    justify-content: space-between;
    padding: 40px 0;
}

.cta-top-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cta-top-text em {
    font-style: italic;
    color: var(--text);
}

.cta-bottom-text {
    font-size: 0.9rem;
}

.cta-bottom-text .light-text {
    color: var(--text-light);
    margin-bottom: 5px;
}

.cta-bottom-text .bold-text {
    color: var(--text);
    font-weight: 500;
}

.cta-col-center {
    gap: 30px;
}

.cta-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.thumbs-up {
    font-size: 3.5rem;
}

.cta-heading h2 {
    color: var(--dark);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.cta-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--dark);
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-email-btn:hover {
    background: #2a2a45;
    transform: translateY(-2px);
}

.cta-email-btn i {
    font-size: 1rem;
}

.cta-col-right {
    justify-content: center;
}

.cta-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-image {
    width: 280px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #e8e8e8;
    /* Ganti URL dengan path foto kamu */
    background-image: url('/assets/cta/cta-photo.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
    animation: floatCta 4s ease-in-out infinite;
}

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

/* Footer */
.footer {
    background: var(--bg);
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(45, 212, 191, 0.3);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 212, 191, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-left {
        text-align: center;
        order: 2;
    }
    
    .hero-center {
        order: 1;
    }
    
    .hero-right {
        text-align: center;
        order: 3;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-content {
        padding: 0 10px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        flex-direction: column;
        padding: 10px;
        gap: 5px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 15px;
        border: 1px solid #e5e7eb;
        min-width: 180px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-menu a {
        padding: 10px 16px;
        justify-content: flex-start;
    }
    
    .nav-menu a i {
        opacity: 1;
        width: auto;
    }
    
    .nav-social {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Mobile menu active state - high specificity */
    @media (max-width: 992px) {
        .nav-menu.mobile-active {
            display: flex !important;
            opacity: 1 !important;
            visibility: visible !important;
            position: absolute !important;
            top: 100% !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            background: #ffffff !important;
            flex-direction: column !important;
            padding: 10px !important;
            gap: 5px !important;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
            border-radius: 15px !important;
            border: 1px solid #e5e7eb !important;
            min-width: 180px !important;
            z-index: 1000 !important;
        }
    }
    
    /* CTA Responsive */
    .cta-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .cta-col-left {
        order: 2;
        padding: 0;
        gap: 20px;
    }
    
    .cta-col-center {
        order: 1;
    }
    
    .cta-col-right {
        order: 3;
    }
    
    .cta-heading {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-heading h2 {
        text-align: center;
        font-size: 2.5rem;
    }
    
    .cta-image {
        width: 220px;
        height: 260px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Blog Responsive */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Why Hire Responsive */
    .hire-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .hire-image {
        width: 150px;
        height: 150px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 30px 0 40px;
    }
    
    .hero-header {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .hero-header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .profile-wrapper::before {
        width: 240px;
        height: 280px;
    }
    
    .profile-wrapper::after {
        width: 260px;
        height: 300px;
    }
    
    .profile-image {
        width: 200px;
        height: 240px;
    }
    
    .speech-bubble {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .tech-badges {
        gap: 8px;
    }
    
    .tech-badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .intro-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .exp-year {
        font-size: 3rem;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        gap: 8px;
        padding: 0 10px;
    }
    
    .tab-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    /* CTA Mobile */
    .cta-container {
        padding: 40px 15px;
    }
    
    .cta-heading h2 {
        font-size: 1.8rem;
    }
    
    .thumbs-up {
        font-size: 2.5rem;
    }
    
    .cta-email-btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .cta-image {
        width: 180px;
        height: 220px;
    }
    
    .cta-top-text,
    .cta-bottom-text {
        font-size: 0.85rem;
    }
    
    /* Blog Mobile */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Why Hire Mobile */
    .hire-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hire-image {
        width: 80px;
        height: 80px;
    }
    
    .hire-icon {
        font-size: 1.8rem;
    }
    
    .hire-card h3 {
        font-size: 0.9rem;
    }
    
    .hire-card p {
        font-size: 0.75rem;
        padding: 0 10px;
    }
    
    .section-title-light {
        font-size: 1.4rem;
    }
    
    /* View More Button Mobile */
    .btn-view-more {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
    
    /* Back to top mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .intro-text {
        font-size: 0.85rem;
    }
    
    .profile-wrapper::before {
        width: 200px;
        height: 240px;
    }
    
    .profile-wrapper::after {
        width: 220px;
        height: 260px;
    }
    
    .profile-image {
        width: 170px;
        height: 210px;
    }
    
    .btn-download {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .exp-year {
        font-size: 2.5rem;
    }
    
    .card-content h3 {
        font-size: 1rem;
    }
    
    .card-content p {
        font-size: 0.8rem;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .cta-heading h2 {
        font-size: 1.5rem;
    }
    
    .thumbs-up {
        font-size: 2rem;
    }
    
    .cta-email-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .hire-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hire-image {
        width: 70px;
        height: 70px;
    }
    
    .hire-icon {
        font-size: 1.5rem;
    }
    
    .floating-shapes .shape {
        display: none;
    }
}


/* ==========================================
   CROSS-DEVICE COMPATIBILITY
   ========================================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-header h1 {
        font-size: 3.2rem;
    }
    
    .profile-image {
        width: 340px;
        height: 440px;
    }
}

/* Standard Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Small Desktop / Large Tablet Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-header h1 {
        font-size: 2.5rem;
    }
    
    .profile-image {
        width: 280px;
        height: 360px;
    }
    
    .hire-grid {
        gap: 20px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    .hero-header h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .profile-image {
        width: 260px;
        height: 320px;
    }
    
    .profile-wrapper::before {
        width: 280px;
        height: 320px;
    }
    
    .profile-wrapper::after {
        width: 300px;
        height: 340px;
    }
    
    .hire-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .hire-image {
        width: 90px;
        height: 90px;
    }
    
    .hire-icon {
        font-size: 2rem;
    }
}

/* Large Mobile / Small Tablet (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .hero-header h1 {
        font-size: 1.9rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .profile-image {
        width: 220px;
        height: 280px;
    }
    
    .profile-wrapper::before {
        width: 240px;
        height: 280px;
    }
    
    .profile-wrapper::after {
        width: 260px;
        height: 300px;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        flex: 0 0 auto;
    }
    
    .hire-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hire-image {
        width: 80px;
        height: 80px;
    }
    
    .hire-icon {
        font-size: 1.8rem;
    }
    
    .cta-heading h2 {
        font-size: 2rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-menu a,
    .tab-btn,
    .btn-download,
    .btn-view-more,
    .cta-email-btn,
    .back-to-top {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch */
    .project-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    /* Active states for touch */
    .tab-btn:active,
    .btn-download:active,
    .btn-view-more:active {
        transform: scale(0.98);
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 20px 0 30px;
    }
    
    .hero-header {
        margin-bottom: 20px;
    }
    
    .hero-header h1 {
        font-size: 1.6rem;
    }
    
    .profile-image {
        width: 150px;
        height: 180px;
    }
    
    .profile-wrapper::before,
    .profile-wrapper::after {
        display: none;
    }
    
    .floating-shapes {
        display: none;
    }
    
    .hero-content {
        gap: 15px;
    }
    
    .cta-container {
        padding: 30px 15px;
        min-height: auto;
    }
    
    .cta-image {
        width: 140px;
        height: 170px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .floating-shapes,
    .nav-social {
        display: none !important;
    }
    
    body {
        -webkit-user-select: auto;
        user-select: auto;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (Optional - follows system preference) */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a2e;
        --bg-light: #2a2a45;
        --text: #f0f0f0;
        --text-light: #b0b0b0;
        --border: #3a3a5a;
        --dark: #f0f0f0;
    }
}
*/

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        /* Fix for 100vh on iOS */
        min-height: -webkit-fill-available;
    }
    
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Fix for older browsers */
@supports not (display: grid) {
    .hero-content,
    .projects-grid,
    .blog-grid,
    .hire-grid,
    .cta-container {
        display: flex;
        flex-wrap: wrap;
    }
    
    .hero-left,
    .hero-center,
    .hero-right {
        flex: 1 1 300px;
    }
    
    .project-card,
    .blog-card {
        flex: 1 1 300px;
        margin: 10px;
    }
}


/* ==========================================
   PROJECT POPUP STYLES
   ========================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s;
    z-index: 10;
}

.popup-close:hover {
    background: var(--primary);
    color: white;
}

.popup-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid var(--border);
}

.popup-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    padding-right: 40px;
}

.popup-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.popup-body {
    padding: 25px 30px;
}

.popup-gallery {
    margin-bottom: 20px;
}

.popup-main-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-light);
}

.popup-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.popup-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.popup-thumb:hover,
.popup-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.popup-info {
    color: var(--text);
}

.popup-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.popup-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.popup-tech {
    margin-bottom: 15px;
}

.popup-tech strong {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
}

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

.tech-tag {
    background: var(--bg-light);
    color: var(--text);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.popup-testimonial {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid var(--primary);
}

.popup-testimonial p {
    font-style: italic;
    color: var(--text);
    margin-bottom: 10px;
}

.popup-testimonial span {
    color: var(--text-light);
    font-size: 0.85rem;
}

.popup-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.popup-btn.primary {
    background: var(--primary);
    color: white;
}

.popup-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.popup-btn.secondary {
    background: var(--dark);
    color: white;
}

.popup-btn.secondary:hover {
    background: #2a2a45;
    transform: translateY(-2px);
}

/* Popup Responsive */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 10px;
    }
    
    .popup-content {
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .popup-header {
        padding: 20px;
    }
    
    .popup-header h2 {
        font-size: 1.2rem;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .popup-main-image {
        max-height: 250px;
    }
    
    .popup-thumb {
        width: 60px;
        height: 45px;
    }
    
    .popup-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .popup-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================
   IMAGE VIEWER (Fullscreen Preview)
   ========================================== */

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.image-viewer.active {
    opacity: 1;
    visibility: visible;
}

.image-viewer-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.image-viewer-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-viewer-close:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Make popup images clickable */
.popup-main-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.popup-thumb {
    cursor: pointer;
}


/* ==========================================
   NOTIFICATION STYLES
   ========================================== */

.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Blog card transition */
.blog-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
