/* Reset and Base Styles */
:root {
    --header-height: 80px;
    --hero-vertical-offset: -60px; /* Negative value moves content up, positive moves down */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000814;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Code Reveal */
.code-reveal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.code-reveal.animate {
    animation: codeReveal 3s ease-in-out;
}

.code-brackets {
    color: #60a5fa;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
}

.code-content {
    opacity: 0;
    max-width: 0;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    font-family: inherit;
    font-weight: inherit;
}

.code-content.animate {
    animation: textExpand 2s ease-in-out forwards;
    animation-delay: 0.6s;
}

.code-cursor {
    color: #60a5fa;
    font-weight: 900;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    opacity: 0;
    animation: cursorBlink 1s ease-in-out infinite;
    animation-delay: 2.8s;
    margin-left: 0.1em;
    vertical-align: baseline;
    display: inline-block;
    line-height: 1;
}

@keyframes codeReveal {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    25% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes textExpand {
    0% {
        max-width: 0;
        opacity: 0;
    }
    30% {
        max-width: 0;
        opacity: 0;
    }
    100% {
        max-width: 600px;
        opacity: 1;
    }
}

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


/* Clean Fluid Background */
.fluid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(120deg, #60a5fa, #818cf8, #f472b6, #a5b4fc);
    background-size: 400% 400%;
    animation: fluid-gradient 18s ease-in-out infinite;
}

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



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

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    height: var(--header-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-self: start;
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-self: center;
    margin: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #cccccc;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    justify-self: end;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: end;
}

.lang-btn {
    background: none;
    border: none;
    color: #999999;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: #ffffff;
    font-weight: 600;
}

.lang-divider {
    color: #666666;
    font-size: 0.9rem;
    user-select: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height); /* Reduced padding to move content higher */
    padding-bottom: 2rem; /* Balance the top padding */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    padding-top: 3rem; /* Additional spacing from top */
    transform: translateY(var(--hero-vertical-offset));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 650px; /* Slightly wider to accommodate the text */
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.badge-text {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(129, 140, 248, 0.2) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #60a5fa;
    backdrop-filter: blur(10px);
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* Non-breaking term spans */
.term-nowrap {
    white-space: nowrap;
    display: inline-block;
}

/* Hero Description */
.hero-description {
    font-size: 1.05rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1s;
    max-width: 100%;
    white-space: normal;
}

/* Remove desc-highlight styles as they're no longer used */

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Code Terminal */
.hero-visual {
    opacity: 0;
    animation: fadeInRight 1s ease-out forwards;
    animation-delay: 0.5s;
}

.hero-visual .code-terminal {
    background: rgba(0, 0, 0, 0.7) !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.code-terminal:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    border-color: rgba(96, 165, 250, 0.3);
}

.code-terminal::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #60a5fa, #818cf8, #f472b6, #60a5fa);
    background-size: 400% 400%;
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: gradientRotate 3s ease infinite;
}

.code-terminal:hover::before {
    opacity: 0.3;
}

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

.terminal-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

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

.terminal-dot.red {
    background-color: #ff5f57;
}

.terminal-dot.yellow {
    background-color: #ffbd2e;
}

.terminal-dot.green {
    background-color: #28ca42;
}

.code-terminal .terminal-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
}

.code-terminal .code-line {
    opacity: 0;
    transform: translateX(-20px);
    animation: codeLine 0.5s ease-out forwards;
    animation-delay: calc(var(--line-index) * 0.2s + 1s);
    color: #ffffff;
    margin-bottom: 0.25rem;
}

@keyframes codeLine {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-terminal .code-keyword {
    color: #f472b6 !important;
}

.code-terminal .code-function {
    color: #60a5fa !important;
}

.code-terminal .code-string {
    color: #a5b4fc !important;
}

.code-terminal .code-comment {
    color: #6b7280 !important;
    font-style: italic;
}

/* Hero Dashboard Visual */
.dashboard-visual {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 420px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1rem 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: visible;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1rem;
}

.dashboard-visual::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, rgba(96, 165, 250, 0.22), rgba(129, 140, 248, 0.18), rgba(244, 114, 182, 0.16));
    background-size: 260% 260%;
    border-radius: 16px;
    opacity: 0.25;
    z-index: -1;
    animation: gradientRotate 6s ease infinite;
}

.dash-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    gap: 1rem;
}

.dash-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #60a5fa, #818cf8);
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.35);
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.nav-icon.active {
    background: rgba(96, 165, 250, 0.25);
    border-color: rgba(96, 165, 250, 0.4);
}

.dash-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dash-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.dash-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.dash-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: #d1fae5;
    background: rgba(34, 197, 94, 0.12);
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

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

.status-dot.green {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.ml-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    background: linear-gradient(135deg, #60a5fa, #818cf8);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ml-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(96, 165, 250, 0.45);
    filter: brightness(1.02);
}

.ml-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.3);
}

.ml-icon {
    font-size: 0.9rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 0.7fr;
    gap: 0.5rem;
    flex: 1;
}

.panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    display: flex;
    flex-direction: column;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.mini-pill {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.mini-pill.success {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.line-panel {
    grid-row: span 2;
}

.line-chart {
    width: 100%;
    flex: 1;
}

.scatter-chart {
    width: 100%;
    height: 180px;
}

.scatter-dot {
    fill: rgba(96, 165, 250, 0.7);
    transition: fill 0.3s ease;
}

.spline-fit {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.2s ease-out, opacity 0.6s ease;
    opacity: 0;
}

.line-chart .grid line {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
}

.line-optimized {
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.line-point {
    fill: #60a5fa;
    stroke: #ffffff;
    stroke-width: 2;
}

.donut-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.donut-wrap {
    position: relative;
    width: 70px;
    height: 70px;
}

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

.donut-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 10;
}

.donut-fg {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.donut-label {
    font-size: 0.5rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.donut-legend {
    display: flex;
    gap: 0.6rem;
    font-size: 0.55rem;
    color: #94a3b8;
}

.donut-legend .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.25rem;
}

.donut-legend .dot.blue {
    background: #60a5fa;
}

.donut-legend .dot.purple {
    background: #818cf8;
}

.bars-panel {
    display: flex;
    flex-direction: column;
}

.bars-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    flex: 1;
    padding-top: 0.25rem;
}

.bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #60a5fa, #818cf8);
    transition: height 0.4s ease;
}

.bar-1 { height: 55%; }
.bar-2 { height: 80%; }
.bar-3 { height: 65%; }
.bar-4 { height: 90%; }
.bar-5 { height: 70%; }

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.45rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-label {
    font-size: 0.5rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.metric-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.metric-trend {
    font-size: 0.5rem;
    margin-top: 0.1rem;
}

.metric-trend.up {
    color: #4ade80;
}

.metric-trend.down {
    color: #60a5fa;
}

.dashboard-visual.processing {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.dashboard-visual.processing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    mix-blend-mode: screen;
    opacity: 0;
    animation: shimmer 0.6s ease forwards;
}

.dashboard-visual.optimized .line-base {
    opacity: 0;
}

.dashboard-visual.optimized .line-optimized {
    opacity: 1;
}

.dashboard-visual.optimized .spline-fit {
    stroke-dashoffset: 0;
    opacity: 1;
}

.dashboard-visual.optimized .scatter-dot {
    fill: rgba(96, 165, 250, 1);
}

.dashboard-visual.optimized .bar-1 { height: 70%; }
.dashboard-visual.optimized .bar-2 { height: 95%; }
.dashboard-visual.optimized .bar-3 { height: 80%; }
.dashboard-visual.optimized .bar-4 { height: 100%; }
.dashboard-visual.optimized .bar-5 { height: 82%; }

.dashboard-visual.optimized .dash-status {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #bbf7d0;
}

.dashboard-visual.optimized .status-dot.green {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.dashboard-visual.optimized .metric-value {
    opacity: 1;
}

.dashboard-visual:not(.optimized) .metric-value.optimized-value {
    opacity: 0;
}

@keyframes shimmer {
    0% { opacity: 0; }
    20% { opacity: 0.6; }
    100% { opacity: 0; }
}

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

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

/* Button Variants */

.btn-primary {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    font-weight: 300;
}

/* About Section */
.about {
    padding: 100px 0;
    scroll-margin-top: var(--header-height);
    background: 
        linear-gradient(135deg, rgba(0, 8, 20, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(circle at 80% 20%, rgba(0, 29, 61, 0.2) 0%, transparent 50%);
    position: relative;
}

.about .section-subtitle {
    text-align: initial;
}

.about .section-header {
    text-align: left;
}

.contact .section-header {
    margin-bottom: 2rem;
}


.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    word-spacing: -0.05em;
    letter-spacing: 0.02em;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-picture {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-picture:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 46, 82, 0.1) 100%),
        rgba(0, 29, 61, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 46, 82, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}


.stat:hover {
    transform: scale(1.05);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 46, 82, 0.15) 100%),
        rgba(0, 29, 61, 0.08);
}


.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cccccc;
    font-weight: 300;
}

/* Services Section */
.services {
    padding: 100px 0;
    scroll-margin-top: var(--header-height);
    background-color: #000000;
}

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

.service-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 29, 61, 0.08) 100%),
        rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 46, 82, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 29, 61, 0.12) 100%),
        rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 46, 82, 0.3);
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    animation: iconFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

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

.service-icon:hover {
    transform: translateY(-3px) scale(1.1);
    color: #60a5fa;
}

/* Staggered animation delays for service icons */
.service-icon.icon-1 {
    animation-delay: 0s;
}

.service-icon.icon-2 {
    animation-delay: 0.5s;
}

.service-icon.icon-3 {
    animation-delay: 1s;
}

.service-icon.icon-4 {
    animation-delay: 1.5s;
}

.service-icon.icon-5 {
    animation-delay: 2s;
}

.service-icon.icon-6 {
    animation-delay: 2.5s;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-description {
    color: #cccccc;
    line-height: 1.6;
    font-weight: 300;
}

.service-bullets {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
}

.service-bullet {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #b3b3b3;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
}

.service-bullet::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0073b7;
    font-size: 1.2rem;
    line-height: 1;
}

/* Enhanced About Section Styles */
.about-subsection {
    margin-bottom: 4rem;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: left;
}

.approach-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.approach-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.approach-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.approach-icon {
    color: #60a5fa;
    flex-shrink: 0;
}

.approach-text h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.approach-text p {
    color: #cccccc;
    line-height: 1.6;
}

/* Why Choose Me Section */
.why-choose {
    padding: 100px 0;
    scroll-margin-top: var(--header-height);
    background:
        linear-gradient(135deg, rgba(0, 8, 20, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(circle at 20% 30%, rgba(0, 46, 82, 0.15) 0%, transparent 50%);
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.why-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 29, 61, 0.1) 100%),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(96, 165, 250, 0.1), rgba(129, 140, 248, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-card:hover::before {
    opacity: 1;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.3);
}

.why-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: relative;
}

.why-description {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
}


/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    scroll-margin-top: var(--header-height);
    background: 
        linear-gradient(135deg, rgba(0, 8, 20, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(circle at 20% 80%, rgba(0, 29, 61, 0.2) 0%, transparent 50%);
    position: relative;
}

.portfolio-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 29, 61, 0.08) 100%),
        rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 29, 61, 0.12) 100%),
        rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 46, 82, 0.3);
}

.project-image {
    text-align: center;
    margin-bottom: 2rem;
    color: #60a5fa;
}

.project-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.project-client {
    font-size: 1.1rem;
    color: #60a5fa;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.project-client a {
    color: inherit;
    text-decoration: none;
}
.project-client a:hover,
.project-client a:focus-visible {
    text-decoration: underline;
}

.project-description {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.project-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.result-label {
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 300;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    scroll-margin-top: var(--header-height);
    background: 
        linear-gradient(225deg, rgba(0, 8, 20, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%),
        radial-gradient(circle at 20% 80%, rgba(0, 29, 61, 0.15) 0%, transparent 60%);
    position: relative;
}


.contact-content {
    display: block;
}

.contact-form-section {
    margin-bottom: 4rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-align: center;
}

.form-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin: 0 auto 2rem auto;
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
}

.contact-info-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.alternative-contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #cccccc;
    font-weight: 300;
}

.contact-item a:hover {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888888;
}

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

/* Footer */
.footer {
    background-color: #000000;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    font-weight: 300;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
    font-weight: 300;
}

/* Medium Desktop */
@media (max-width: 1200px) {
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-content {
        max-width: 550px;
    }
}

/* Tablet Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
    }

    .code-terminal {
        font-size: 0.8rem;
        padding: 1rem;
    }

    .terminal-dot {
        width: 10px;
        height: 10px;
    }

    .hero-description {
        font-size: 0.9rem;
    }
    
    .desc-highlight {
        font-size: 0.9rem;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    :root {
        --hero-vertical-offset: -40px; /* Less offset on smaller screens */
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }
    
    .term-nowrap {
        font-size: 0.95em;
    }
    .nav-container {
        display: flex;
        justify-content: space-between;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .language-switcher {
        margin-left: auto;
        margin-right: 1rem;
        justify-self: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-badge {
        text-align: center;
    }

    .btn {
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .portfolio-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }

    .stat {
        padding: 1rem;
        flex: 1;
        margin: 0 0.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .form-title {
        font-size: 1.8rem;
    }
    
    .form-description {
        font-size: 1rem;
    }
    
    .alternative-contact-title {
        font-size: 1.3rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        padding: 2rem;
    }

    .project-results {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .result-item {
        padding: 1rem;
    }

    .result-number {
        font-size: 1.5rem;
    }

    .approach-content {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .profile-picture {
        max-width: 250px;
    }


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

@media (max-width: 480px) {
    :root {
        --hero-vertical-offset: -20px; /* Even less offset on mobile */
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        line-height: 1.3;
    }
    
    .term-nowrap {
        font-size: 0.9em;
    }
    
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero-container {
        padding: 0 15px;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .about-stats {
        flex-direction: column;
    }

    .portfolio-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat {
        margin: 0;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-results {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .subsection-title {
        font-size: 1.5rem;
    }

    .approach-item {
        flex-direction: column;
        text-align: center;
    }

}

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

.hero-content,
.service-card,
.contact-item {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body {
        animation: none;
    }
    
    .fluid-bg {
        animation: none;
    }
    
    .service-icon {
        animation: none;
    }
} 
