/* ==========================================
   CSS Variables & Root Styles
   ========================================== */
:root {
    /* Colors */
    --primary: #ff6b4a;
    --primary-dark: #d94c32;
    --primary-light: #ff9a7f;
    --secondary: #76c7a8;
    --accent: #f3c969;
    
    /* Neutrals */
    --bg-dark: #11100e;
    --bg-darker: #0a0a09;
    --bg-card: #1a1916;
    --bg-card-hover: #24211d;
    
    /* Text */
    --text-primary: #f7f2e9;
    --text-secondary: #b9b1a5;
    --text-muted: #81796f;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff6b4a 0%, #f3c969 100%);
    --gradient-accent: linear-gradient(135deg, #76c7a8 0%, #c3e4bd 100%);
    --gradient-dark: linear-gradient(180deg, #11100e 0%, #1a1916 100%);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 24px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    
    /* Borders & Shadows */
    --border-radius: 8px;
    --border-radius-lg: 14px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(255, 107, 74, 0.22);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================
   Accessibility - Skip Link & Screen Reader
   ========================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* 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;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

::selection {
    background: var(--primary);
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

@media (max-width: 768px) {
    a {
        cursor: pointer;
    }
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

button {
    cursor: none;
    font-family: inherit;
}

@media (max-width: 768px) {
    button {
        cursor: pointer;
    }
}

/* ==========================================
   Custom Cursor
   ========================================== */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, border-color 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent);
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .cursor, .cursor-follower {
        display: none;
    }
}

/* ==========================================
   Layout
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    max-width: 600px;
    margin: 16px auto 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-description strong {
    color: var(--primary-light);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    transition: all var(--transition-normal);
    cursor: none;
}

@media (max-width: 768px) {
    .btn {
        cursor: pointer;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

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

.btn-outline:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-white:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.logo-text {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.logo:hover .logo-text,
.logo:focus-visible .logo-text {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-cta {
    margin-left: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 968px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background: var(--bg-darker);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px;
}

.mobile-nav-link {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: 10px 20px;
    -webkit-tap-highlight-color: transparent;
}

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

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: gradientMove 15s ease infinite alternate;
}

@keyframes gradientMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, -5%) rotate(5deg); }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 14px;
    color: #22c55e;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

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

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.title-name {
    display: block;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 12px;
}

.title-role {
    display: flex;
    align-items: center;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 600;
    color: var(--accent);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

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

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-description strong {
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    white-space: nowrap;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    position: relative;
}

.profile-image-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scaleX(-1);
}

.profile-ring {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px dashed var(--primary-light);
    border-radius: 50%;
    animation: spin 30s linear infinite;
    opacity: 0.5;
}

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

.profile-status {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 24px;
    height: 24px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

.float-icon.flutter {
    top: 0;
    right: -20px;
    color: #02569B;
    animation-delay: 0s;
}

.float-icon.react {
    bottom: 20px;
    right: -40px;
    color: #61DAFB;
    animation-delay: 1s;
}

.float-icon.python {
    bottom: 0;
    left: -20px;
    color: #3776AB;
    animation-delay: 2s;
}

.float-icon.java {
    top: 20px;
    left: -40px;
    color: #007396;
    animation-delay: 3s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .profile-image-container {
        width: 250px;
        height: 250px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ==========================================
   About Section
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    margin-bottom: 32px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.about-text strong {
    color: var(--primary-light);
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.info-item i {
    color: var(--primary);
    font-size: 18px;
    width: 24px;
}

/* Code Window */
.code-window {
    background: var(--bg-darker);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.window-content {
    padding: 24px;
    overflow-x: auto;
}

.code-block {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre;
}

.keyword { color: #c678dd; }
.class-name { color: #e5c07b; }
.string { color: #98c379; }
.function { color: #61afef; }

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
    }
}

/* ==========================================
   Skills Section
   ========================================== */
.skills {
    background: var(--bg-darker);
}

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

.skill-category {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-normal);
}

.skill-category:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.category-header i {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.category-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-darker);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.skill-tag img {
    width: 20px;
    height: 20px;
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.skill-tag.featured {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Projects Section
   ========================================== */

.projects-header {
    text-align: left;
    max-width: 760px;
    margin-bottom: 48px;
}

.projects-header .section-description {
    margin-left: 0;
}

.featured-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.projects-grid {
    display: none;
}

.project-case-study {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 74, 0.14);
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-case-study:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 74, 0.7);
    box-shadow: var(--shadow-glow);
}

.project-case-study-primary {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) 1.18fr;
}

.case-study-visual {
    position: relative;
    min-height: 240px;
    padding: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-primary);
    background: #29251f;
}

.case-study-visual::after {
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    right: -55px;
    bottom: -70px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.case-study-visual.emergency { background: linear-gradient(145deg, #742e24, #271c19 75%); }
.case-study-visual.bidding { background: linear-gradient(145deg, #28594c, #18241f 75%); }
.case-study-visual.weather { background: linear-gradient(145deg, #705221, #292018 75%); }

.case-study-index,
.case-study-visual-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.case-study-visual > i {
    position: relative;
    z-index: 1;
    align-self: center;
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    color: var(--primary-light);
}

.case-study-visual.bidding > i { color: var(--secondary); }
.case-study-visual.weather > i { color: var(--accent); }

.case-study-body {
    padding: 30px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-light);
}

.project-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.case-study-intro {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 26px;
}

.case-study-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.case-study-details h4 {
    margin-bottom: 7px;
    color: var(--primary-light);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.case-study-details p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.case-study-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 14px;
    transition: gap var(--transition-fast);
}

.project-btn:hover {
    gap: 12px;
}

.project-btn-accent {
    color: var(--accent);
}

.other-projects {
    display: grid;
    grid-template-columns: 0.8fr 1.8fr;
    gap: 40px;
    align-items: center;
    margin-top: 56px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.other-projects-heading .section-tag {
    margin-bottom: 12px;
}

.other-projects-heading h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.other-projects-heading p {
    color: var(--text-secondary);
    font-size: 14px;
}

.other-project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.other-project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 90px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.other-project:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 74, 0.08);
    transform: translateY(-3px);
}

.other-project span {
    display: grid;
    grid-template-columns: 25px 1fr;
    align-items: center;
    column-gap: 8px;
}

.other-project span > i {
    grid-row: span 2;
    color: var(--primary-light);
}

.other-project strong {
    font-size: 13px;
    line-height: 1.3;
}

.other-project small {
    color: var(--text-muted);
    font-size: 11px;
}

.other-project > i {
    color: var(--text-muted);
    font-size: 12px;
}

.projects-cta {
    text-align: center;
    margin-top: 42px;
}

@media (max-width: 968px) {
    .project-case-study-primary {
        grid-template-columns: 0.7fr 1.3fr;
    }

    .case-study-details {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .featured-projects {
        grid-template-columns: 1fr;
    }

    .project-case-study-primary {
        grid-column: span 1;
        display: flex;
    }

    .case-study-body {
        padding: 24px 20px;
    }

    .case-study-visual {
        min-height: 200px;
    }

    .other-projects {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }

    .other-project-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Services Section
   ========================================== */
.services {
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-normal);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--gradient-primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.service-features li i {
    color: var(--primary);
    font-size: 12px;
}

@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.cta-buttons .btn {
    min-width: 180px;
    flex: 1;
    max-width: 220px;
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* LinkedIn Button */
.btn-linkedin {
    background: #0A66C2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4);
}

.btn-linkedin:hover {
    background: #0958a8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.5);
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.contact-text .label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-text a,
.contact-text span {
    font-weight: 500;
    color: var(--text-primary);
}

.contact-text a {
    overflow-wrap: anywhere;
}

.contact-text a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

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

/* Contact Form */
.contact-form-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-darker);
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

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

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

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

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

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

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-bottom i {
    color: #ef4444;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ==========================================
   Animations & Effects
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Smooth reveal for sections */
.section {
    opacity: 0;
    transform: translateY(40px);
    animation: revealSection 0.8s ease forwards;
}

@keyframes revealSection {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive Utilities
   ========================================== */

/* Tablet Styles (768px - 968px) */
@media (max-width: 968px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 20px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 16px;
    }
    
    html {
        font-size: 15px;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-tag {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    /* Hero Mobile */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-container {
        gap: 40px;
        padding: 0 16px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .hero-description {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .stat {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .profile-image-container {
        width: 200px;
        height: 200px;
    }
    
    .float-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .float-icon.flutter {
        right: -10px;
    }
    
    .float-icon.react {
        right: -20px;
    }
    
    .float-icon.python {
        left: -10px;
    }
    
    .float-icon.java {
        left: -20px;
    }
    
    /* About Mobile */
    .about-grid {
        gap: 40px;
    }
    
    .about-text .lead {
        font-size: 1.1rem;
    }
    
    .info-item {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .code-window {
        font-size: 12px;
    }
    
    .window-content {
        padding: 16px;
    }
    
    .code-block {
        font-size: 12px;
        line-height: 1.6;
    }
    
    /* Skills Mobile */
    .skill-category {
        padding: 24px;
    }
    
    .category-header i {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }
    
    .skill-tags {
        gap: 8px;
    }
    
    .skill-tag {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Projects Mobile */
    .project-image {
        height: 180px;
    }
    
    .project-card.featured .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    /* Services Mobile */
    .service-card {
        padding: 28px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card > p {
        font-size: 14px;
    }
    
    /* CTA Mobile */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        min-width: unset;
    }
    
    /* Contact Mobile */
    .contact-grid {
        gap: 40px;
    }
    
    .contact-info h3 {
        font-size: 1.25rem;
    }
    
    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .contact-form-container {
        padding: 24px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 24px;
    }
    
    .footer-brand p {
        font-size: 14px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
    }
    
    html {
        font-size: 14px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 70px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .profile-image-container {
        width: 180px;
        height: 180px;
    }
    
    .profile-ring {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }
    
    .float-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .service-card {
        padding: 24px 16px;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .info-item {
        padding: 12px 14px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .mobile-nav-link {
        font-size: 20px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .code-block {
        font-size: 11px;
        overflow-x: auto;
    }
    
    .window-content {
        padding: 12px;
    }
    
    .project-placeholder {
        font-size: 48px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 14px;
    }
}

/* Extra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .profile-image-container {
        width: 160px;
        height: 160px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Landscape Mode on Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-visual {
        order: 0;
    }
    
    .profile-image-container {
        width: 200px;
        height: 200px;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Touch Device Hover States */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover {
        transform: none;
    }
    
    .skill-category:hover {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-outline:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    .project-overlay {
        opacity: 1;
        background: rgba(99, 102, 241, 0.7);
    }
}

/* ==========================================
   Footer Social Icons
   ========================================== */
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Footer Address */
.footer address {
    font-style: normal;
    color: var(--text-secondary);
}

.footer address p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer address a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

/* Editorial portfolio direction */
body {
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(247, 242, 233, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 242, 233, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.btn {
    font-family: var(--font-display);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 600;
    text-wrap: balance;
}

.tag,
.skill-tag,
.project-tags,
.section-tag,
.hero-badge,
.service-badge {
    font-family: var(--font-mono);
}

.tag,
.skill-tag {
    font-size: 0.78rem;
}

.section,
.footer {
    background: rgba(17, 16, 14, 0.76);
}

.hero {
    background: radial-gradient(circle at 76% 42%, rgba(255, 107, 74, 0.13), transparent 28%), radial-gradient(circle at 14% 72%, rgba(118, 199, 168, 0.08), transparent 30%);
}

.hero-gradient {
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 74, 0.14) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(118, 199, 168, 0.09) 0%, transparent 50%);
}

.title-name,
.section-title,
.stat-number,
.logo-text {
    font-family: var(--font-display);
    letter-spacing: -0.045em;
}

.section-title {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-description,
.section-description,
.about-text,
.service-card p,
.project-description {
    max-width: 68ch;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 107, 74, 0.11);
}

.btn-primary {
    background: var(--primary);
    color: #17110d;
    box-shadow: 0 8px 24px rgba(255, 107, 74, 0.2);
}

.btn-primary:hover {
    background: #ff8063;
    box-shadow: 0 12px 30px rgba(255, 107, 74, 0.28);
}

.profile-image {
    border-color: var(--primary);
}

.profile-ring {
    border-color: var(--accent);
}

.project-card,
.service-card,
.skill-category {
    border-color: rgba(247, 242, 233, 0.1);
    background: rgba(26, 25, 22, 0.86);
}

.project-card:hover,
.service-card:hover,
.skill-category:hover {
    border-color: rgba(255, 107, 74, 0.5);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

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