/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transition speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadow effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark Theme Colors (Default) */
body.dark-theme {
    --bg-base: #090d16;
    --bg-page: #0f172a;
    --bg-panel: rgba(30, 41, 59, 0.7);
    --bg-panel-hover: rgba(30, 41, 59, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(99, 102, 241, 0.5);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-teal: #14b8a6;
    --accent-teal-glow: rgba(20, 184, 166, 0.15);
    --accent-indigo: #6366f1;
    --accent-indigo-glow: rgba(99, 102, 241, 0.15);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.15);
    
    --nav-bg: rgba(15, 23, 42, 0.75);
    --glass-accent: rgba(255, 255, 255, 0.03);
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    --shadow-panel: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Light Theme Colors */
body.light-theme {
    --bg-base: #f1f5f9;
    --bg-page: #f8fafc;
    --bg-panel: rgba(255, 255, 255, 0.7);
    --bg-panel-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-focus: rgba(79, 70, 229, 0.5);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --accent-teal: #0d9488;
    --accent-teal-glow: rgba(13, 148, 136, 0.12);
    --accent-indigo: #4f46e5;
    --accent-indigo-glow: rgba(79, 70, 229, 0.12);
    --accent-emerald: #059669;
    --accent-emerald-glow: rgba(5, 150, 105, 0.12);
    
    --nav-bg: rgba(248, 250, 252, 0.8);
    --glass-accent: rgba(15, 23, 42, 0.02);
    --gradient-hero: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    --shadow-panel: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

button, input, textarea {
    font-family: inherit;
    outline: none;
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-page);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Background Blur Nodes */
.bg-blur {
    position: absolute;
    width: 45vw;
    height: 45vw;
    border-radius: var(--radius-full);
    filter: blur(150px);
    z-index: -10;
    opacity: 0.15;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}
body.light-theme .bg-blur {
    opacity: 0.08;
}
.bg-blur-1 {
    top: -10%;
    right: -5%;
    background-color: var(--accent-indigo);
}
.bg-blur-2 {
    top: 50%;
    left: -10%;
    background-color: var(--accent-teal);
}

/* Glassmorphism General Panel */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-panel);
    transition: background var(--transition-normal), border var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

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

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-indigo);
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--accent-indigo-glow);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 16px auto 0;
}

.underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-indigo));
    margin: 20px auto 0;
    border-radius: var(--radius-full);
}

/* Badge System */
.badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}
.badge-data {
    background-color: var(--accent-teal-glow);
    color: var(--accent-teal);
    border: 1px solid rgba(20, 184, 166, 0.3);
}
.badge-marketing {
    background-color: var(--accent-indigo-glow);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.badge-web {
    background-color: var(--accent-emerald-glow);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    border: none;
    font-size: 0.95rem;
}
.btn:active {
    transform: scale(0.98);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    background: var(--glass-accent);
    border-color: var(--text-secondary);
}

/* ==========================================================================
   NAVIGATION NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal), border var(--transition-normal), transform var(--transition-normal);
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--accent-indigo);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}
.nav-link:hover {
    color: var(--text-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-indigo);
    transition: width var(--transition-fast);
}
.nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent-indigo-glow);
    color: var(--accent-indigo) !important;
    padding: 8px 18px !important;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.nav-cta::after {
    display: none;
}
.nav-cta:hover {
    background: var(--accent-indigo);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}
.theme-btn:hover {
    background: var(--glass-accent);
}

body.dark-theme .sun-icon { display: block; }
body.dark-theme .moon-icon { display: none; }
body.light-theme .sun-icon { display: none; }
body.light-theme .moon-icon { display: block; }

.sun-icon, .moon-icon {
    width: 20px;
    height: 20px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.mobile-menu-btn .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    border-radius: var(--radius-full);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-teal);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3.25rem;
    margin-bottom: 20px;
}

.highlight-text-web {
    background: linear-gradient(120deg, var(--accent-teal), var(--accent-indigo) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 620px;
}

.hero-roles {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.typing-target {
    font-weight: 700;
    border-right: 2px solid var(--accent-indigo);
    padding-right: 4px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-indigo); }
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    border-radius: var(--radius-md);
    position: relative;
}

.card-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}
.card-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
}
.card-dots .red { background-color: #ef4444; }
.card-dots .yellow { background-color: #eab308; }
.card-dots .green { background-color: #22c55e; }

.visual-code-window {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.code-keyword { color: #f472b6; }
.code-variable { color: #818cf8; }
.code-property { color: #38bdf8; }
.code-string { color: #34d399; }
.code-boolean { color: #fb7185; }
.code-comment { color: #64748b; font-style: italic; }
.code-method { color: #fbbf24; }

/* Floating Elements */
.floating-ui {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

.f-ui-1 {
    top: -15px;
    left: -35px;
    animation-delay: 0s;
}
.f-ui-2 {
    bottom: -20px;
    right: -20px;
    animation-delay: 2s;
}

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

.f-icon-container {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.bg-teal { background-color: var(--accent-teal); }
.bg-indigo { background-color: var(--accent-indigo); }

.f-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.f-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 8px;
    cursor: pointer;
}
.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-secondary);
    border-radius: var(--radius-full);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   ABOUT & SKILLS SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.85rem;
    margin-bottom: 20px;
}

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

.personal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    gap: 20px;
}
.info-label {
    font-weight: 600;
    width: 120px;
    color: var(--text-primary);
}
.info-val {
    color: var(--text-secondary);
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-category {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.skill-category:hover {
    transform: translateY(-2px);
    border-color: var(--border-focus);
}

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

.icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.color-teal { background-color: var(--accent-teal-glow); color: var(--accent-teal); }
.color-indigo { background-color: var(--accent-indigo-glow); color: var(--accent-indigo); }
.color-emerald { background-color: var(--accent-emerald-glow); color: var(--accent-emerald); }

.skill-category h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.skill-list li {
    background-color: var(--glass-accent);
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.skill-list li:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

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

.service-card {
    padding: 40px 30px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform var(--transition-fast);
}

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

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-features {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-features li::before {
    content: '➔';
    font-size: 0.75rem;
}

/* Service Cards Theme Colors Styling */
.service-teal .service-icon { background-color: var(--accent-teal-glow); color: var(--accent-teal); }
.service-teal::after {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-teal);
}
.service-teal:hover {
    box-shadow: 0 10px 30px -10px rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-5px);
}

.service-indigo .service-icon { background-color: var(--accent-indigo-glow); color: var(--accent-indigo); }
.service-indigo::after {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-indigo);
}
.service-indigo:hover {
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
}

.service-emerald .service-icon { background-color: var(--accent-emerald-glow); color: var(--accent-emerald); }
.service-emerald::after {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-emerald);
}
.service-emerald:hover {
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* ==========================================================================
   INTERACTIVE DASHBOARD SIMULATOR SHOWCASE
   ========================================================================== */
.dashboard-demo-section {
    background-color: var(--bg-base);
    transition: background-color var(--transition-normal);
}

.dashboard-wrapper {
    width: 100%;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.dashboard-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.db-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.db-status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-emerald);
    border-radius: var(--radius-full);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

#db-title {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.dashboard-controls {
    display: flex;
    gap: 10px;
}

.db-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--glass-accent);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.db-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}
.db-btn.active {
    background-color: var(--accent-indigo);
    border-color: var(--accent-indigo);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.db-metric-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.db-metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-focus);
}

.db-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
}

.db-metric-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.db-metric-trend {
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}
.trend-up { color: var(--accent-emerald); }
.trend-down { color: #ef4444; }

.dashboard-chart-container {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
}

.chart-y-axis-label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-x-axis-label {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
}

.chart-canvas-wrapper {
    height: 320px;
    margin-left: 20px;
    overflow: hidden;
}

/* SVG Chart Elements Styles */
.chart-grid-line {
    stroke: var(--border-color);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}
.chart-axis-line {
    stroke: var(--text-muted);
    stroke-width: 1.5;
}
.chart-bar-rect {
    transition: height 0.5s ease, y 0.5s ease;
    cursor: pointer;
}
.chart-bar-rect:hover {
    filter: brightness(1.2);
}
.chart-line-path {
    transition: d 0.5s ease;
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
}
.chart-dot {
    cursor: pointer;
    transition: r var(--transition-fast), fill var(--transition-fast);
}
.chart-dot:hover {
    r: 7px;
}
.chart-label-text {
    font-family: var(--font-body);
    font-size: 11px;
    fill: var(--text-secondary);
}

.dashboard-footer-inner {
    margin-top: 20px;
    text-align: right;
}

.db-footnote {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PORTFOLIO PROJECTS GRID
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--glass-accent);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.filter-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}
.filter-btn.active {
    background-color: var(--accent-indigo);
    border-color: var(--accent-indigo);
    color: #ffffff;
}

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

.portfolio-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-focus);
}

/* Fallback backgrounds for mockups */
.portfolio-image-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
}
.bg-gradient-data {
    background: linear-gradient(135deg, #0d9488 0%, #0f172a 100%);
}
.bg-gradient-marketing {
    background: linear-gradient(135deg, #4f46e5 0%, #0f172a 100%);
}
.bg-gradient-web {
    background: linear-gradient(135deg, #059669 0%, #0f172a 100%);
}
.bg-gradient-combined {
    background: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);
}

.project-icon {
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.8;
}

.portfolio-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.tag-badge {
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background-color: var(--glass-accent);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.portfolio-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.tech-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hide animations for filtered projects */
.portfolio-item.hidden {
    display: none;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

.contact-card {
    height: 100%;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.contact-method p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form-container {
    padding: 40px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    pointer-events: none;
    background-color: var(--bg-base);
    padding: 0 4px;
}

/* Floating Label Animations */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -9px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--accent-indigo);
    font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 4px var(--accent-indigo-glow);
}

/* Keep floating label design clean */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.btn-submit {
    width: 100%;
    padding: 14px;
}

/* Form Submission Success Modal */
.form-status-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    z-index: 50;
    padding: 24px;
}
.form-status-modal.show {
    opacity: 1;
    pointer-events: all;
}

.status-content {
    text-align: center;
    max-width: 320px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}
.form-status-modal.show .status-content {
    transform: translateY(0);
}

.status-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-emerald-glow);
    color: var(--accent-emerald);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid var(--accent-emerald);
}

.status-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.status-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    background-color: var(--bg-base);
    text-align: center;
    transition: background-color var(--transition-normal), border var(--transition-normal);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-credits {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet Viewports */
@media (max-width: 992px) {
    .section-container {
        padding: 80px 24px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-visual {
        order: -1; /* visual on top for tablets/mobiles */
    }
    .floating-ui {
        display: none; /* remove for smaller grids to prevent overlaps */
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Viewports */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background: var(--bg-page);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 40px 24px;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-menu.show {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }
    
    /* Toggle Mobile hamburger structure when active */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.25rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .dashboard-wrapper {
        padding: 16px;
    }
    .chart-canvas-wrapper {
        height: 220px;
    }
    .dashboard-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .db-metric-value {
        font-size: 1.5rem;
    }
    .dashboard-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
