
:root {
    --dark-navy: #020c1b;
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --navy-shadow: rgba(2, 12, 27, 0.7);
    --dark-slate: #495670;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    --green-tint: rgba(100, 255, 218, 0.1);
    --pink: #f57dff;
    --blue: #57cbff;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', 'Source Code Pro', monospace;
    --fz-xxs: 12px;
    --fz-xs: 13px;
    --fz-sm: 14px;
    --fz-md: 16px;
    --fz-lg: 18px;
    --fz-xl: 20px;
    --fz-xxl: 22px;
    --fz-heading: 32px;
    --border-radius: 4px;
    --nav-height: 100px;
    --nav-scroll-height: 70px;
    --tab-height: 42px;
    --tab-width: 120px;
    --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --hamburger-width: 30px;
    --ham-before: top 0.1s ease-in 0.25s, opacity 0.1s ease-in;
    --ham-before-active: top 0.1s ease-out, opacity 0.1s ease-out 0.12s;
    --ham-after: bottom 0.1s ease-in 0.25s, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    --ham-after-active: bottom 0.1s ease-out, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--navy);
    color: var(--slate);
    line-height: 1.6;
}

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

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: var(--fz-heading);
    color: var(--lightest-slate);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    font-family: var(--font-mono);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--green);
    margin: 10px auto 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: var(--transition);
    height: var(--nav-height);
}

.navbar.scrolled {
    background-color: var(--navy-shadow);
    height: var(--nav-scroll-height);
    box-shadow: 0 10px 30px -10px var(--navy-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: var(--fz-xl);
    color: var(--green);
}

.logo-bracket {
    color: var(--slate);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-link {
    color: var(--lightest-slate);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--green);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--green);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    padding: 150px 0;
    text-align: left;
}

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

.hero-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.hero-visual {
    margin-top: 40px;
}

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

.hero-title {
    font-size: 60px;
    color: var(--lightest-slate);
    font-family: var(--font-mono);
    margin-bottom: 20px;
    min-height: 200px; /* Adjust as needed for 2 lines of text */
}

.typing-text {
    border-right: 2px solid var(--green);
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-subtitle {
    font-size: var(--fz-lg);
    color: var(--slate);
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
}

.btn {
    padding: 12px 24px;
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--green);
    color: var(--navy);
}

.btn-primary:hover {
    background-color: var(--green-tint);
    color: var(--green);
}

.btn-secondary {
    background-color: transparent;
    color: var(--green);
}

.btn-secondary:hover {
    background-color: var(--green-tint);
}

.hero-visual {
    flex-shrink: 0;
}

.code-window {
    width: 450px;
    background-color: var(--light-navy);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.window-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--lightest-navy);
}

.window-controls {
    display: flex;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.control.red { background-color: #ff5f56; }
.control.yellow { background-color: #ffbd2e; }
.control.green { background-color: #27c93f; }

.window-title {
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    margin: 0 auto;
}

.code-content {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
}

.code-keyword { color: var(--pink); }
.code-function { color: var(--green); }
.code-param { color: var(--blue); }
.code-variable { color: var(--lightest-slate); }

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-intro {
    font-size: var(--fz-lg);
    color: var(--light-slate);
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item i {
    color: var(--green);
    font-size: 24px;
    margin-top: 5px;
}

.detail-item h3 {
    font-size: var(--fz-xl);
    color: var(--lightest-slate);
    margin-bottom: 5px;
}

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background-color: var(--light-navy);
    border-radius: var(--border-radius);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--green);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: var(--fz-sm);
    color: var(--slate);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--light-navy);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
}

.service-icon {
    font-size: 48px;
    color: var(--green);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: var(--fz-xl);
    color: var(--lightest-slate);
    margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.portfolio-item {
    background-color: var(--light-navy);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    height: 200px;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder i {
    font-size: 60px;
    color: var(--lightest-navy);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: var(--fz-xl);
    color: var(--lightest-slate);
    margin-bottom: 10px;
}

.portfolio-tech {
    margin-top: 15px;
}

.tech-tag {
    display: inline-block;
    background-color: var(--lightest-navy);
    color: var(--light-slate);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
    background-color: var(--light-navy);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: var(--fz-xxl);
    color: var(--lightest-slate);
    margin-bottom: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-method i {
    color: var(--green);
}

.contact-form {
    flex: 1.5;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--light-slate);
    font-size: var(--fz-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--navy);
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
    color: var(--lightest-slate);
    font-family: var(--font-sans);
}

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

textarea {
    resize: vertical;
}

.honeypot {
    display: none;
}

/* Footer */
.footer {
    padding: 50px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: var(--fz-lg);
    color: var(--slate);
    margin-bottom: 10px;
}

.footer p {
    font-size: var(--fz-xs);
    color: var(--dark-slate);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-visual {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background-color: var(--light-navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        box-shadow: -10px 0 30px -15px var(--navy-shadow);
    }

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

    .nav-menu li {
        margin: 20px 0;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

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

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

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

    .about-content, .contact-content {
        flex-direction: column;
    }

    .hero-title {
        font-size: 48px;
    }

    .code-window {
        width: 100%;
        max-width: 450px;
    }
}
