* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a1410;
    --bg-secondary: #0d1a14;
    --bg-card: #112318;
    --border-color: #1a3d2a;
    --accent-primary: #4ade80;
    --accent-secondary: #22c55e;
    --accent-tertiary: #86efac;
    --text-primary: #d1fae5;
    --text-secondary: #a7f3d0;
    --gradient-1: linear-gradient(135deg, #86efac 0%, #4ade80 50%, #22c55e 100%);
    --gradient-2: linear-gradient(135deg, #6ee7b7 0%, #4ade80 50%, #34d399 100%);
    --glow-color: rgba(74, 222, 128, 0.5);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--glow-color);
}

/* Navbar */
nav {
    background: rgba(10, 18, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand img {
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.navbar-brand:hover img {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary) !important;
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    padding: 80px 0;
}

/* Animated Background */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 204, 111, 0.15) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes floatCode {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.08;
    }

    50% {
        transform: translateY(30px) rotate(5deg);
        opacity: 0.12;
    }
}

/* Floating Background Icons */
.bg-icon {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    user-select: none;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Icon Styles */
.icon-code {
    top: 8%;
    left: 8%;
    width: 80px;
    height: 80px;
    opacity: 0.08;
    animation: float1 8s ease-in-out infinite;
}

.icon-terminal {
    top: 55%;
    left: 5%;
    width: 70px;
    height: 70px;
    opacity: 0.1;
    animation: float2 10s ease-in-out infinite;
}

.icon-git {
    top: 25%;
    right: 12%;
    width: 90px;
    height: 90px;
    opacity: 0.07;
    animation: float3 12s ease-in-out infinite;
}

.icon-database {
    bottom: 15%;
    right: 10%;
    width: 75px;
    height: 75px;
    opacity: 0.09;
    animation: float1 9s ease-in-out infinite;
}

.icon-brackets {
    top: 70%;
    right: 30%;
    width: 60px;
    height: 60px;
    opacity: 0.08;
    animation: float2 11s ease-in-out infinite;
}

.icon-function {
    top: 18%;
    left: 35%;
    width: 65px;
    height: 65px;
    opacity: 0.06;
    animation: float3 13s ease-in-out infinite;
}

.icon-api {
    bottom: 25%;
    left: 15%;
    width: 70px;
    height: 70px;
    opacity: 0.07;
    animation: float1 10s ease-in-out infinite;
}

.icon-cloud {
    top: 40%;
    right: 5%;
    width: 85px;
    height: 85px;
    opacity: 0.06;
    animation: float2 14s ease-in-out infinite;
}

/* ============================== */
/* NEW BACKGROUND ICON STYLES     */
/* ============================== */

.icon-html {
    top: 12%;
    right: 28%;
    width: 70px;
    height: 70px;
    opacity: 0.07;
    animation: float1 10s ease-in-out infinite;
}

.icon-css {
    bottom: 18%;
    left: 28%;
    width: 65px;
    height: 65px;
    opacity: 0.07;
    animation: float2 12s ease-in-out infinite;
}

.icon-js {
    top: 48%;
    left: 75%;
    width: 75px;
    height: 75px;
    opacity: 0.08;
    animation: float3 11s ease-in-out infinite;
}

.icon-laptop {
    bottom: 30%;
    right: 40%;
    width: 85px;
    height: 85px;
    opacity: 0.06;
    animation: float1 14s ease-in-out infinite;
}

.icon-ai {
    top: 22%;
    left: 60%;
    width: 90px;
    height: 90px;
    opacity: 0.05;
    animation: float2 13s ease-in-out infinite;
}

.icon-mobile {
    top: 5%;
    right: 42%;
    width: 60px;
    height: 60px;
    opacity: 0.08;
    animation: float1 9s ease-in-out infinite;
}

.icon-cloud-upload {
    bottom: 22%;
    right: 22%;
    width: 80px;
    height: 80px;
    opacity: 0.07;
    animation: float3 15s ease-in-out infinite;
}

.icon-gear {
    bottom: 10%;
    left: 45%;
    width: 70px;
    height: 70px;
    opacity: 0.06;
    animation: float2 11s ease-in-out infinite;
}

/* SVG color consistency */
.icon-html svg,
.icon-css svg,
.icon-js svg,
.icon-laptop svg,
.icon-ai svg,
.icon-mobile svg,
.icon-cloud-upload svg,
.icon-gear svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    color: var(--accent-primary);
}


.bg-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    color: var(--accent-primary);
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.06;
    }

    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.1;
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.06;
    }

    50% {
        transform: translateY(20px) translateX(-10px) rotate(5deg);
        opacity: 0.09;
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.06;
    }

    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    transition: margin-bottom 0.3s ease;
}

.hero h1.compressed {
    margin-bottom: 0.2rem;
}

.hero h1 .highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-container {
    min-height: 50px;
    margin: 0.8rem 0;
    transition: all 0.3s ease;
}

.typing-container.empty {
    min-height: 0;
    margin: 0;
    padding: 0;
}

.typing {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-block;
}

.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--accent-primary);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    margin: 1rem 0 2rem 0;
    transition: margin-top 0.3s ease;
}

.hero-description.compressed {
    margin-top: 0.2rem;
}

.btn-primary-custom {
    background: var(--gradient-2);
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    color: #0a120f;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    border: 1px solid transparent;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6), 0 6px 20px rgba(0, 255, 136, 0.4);
    color: #0a120f;
    border: 1px solid var(--accent-primary);
}

/* Section Styling */
section {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

.section-title::after {
    content: attr(data-number);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--accent-primary);
    margin-left: 15px;
    font-weight: 500;
}

/* About Section */
#about {
    background: var(--bg-secondary);
    padding: 100px 0;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.about-text {
    width: 45%;
}

.about-photo {
    width: auto;
}

.about-photo img {
    max-width: 260px;
    border-radius: 10px;
}

/* 📱 RESPONSIVE — Mobile & Tablet */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        /* stack items vertically */
        align-items: center;
        /* center items for clean layout */
        text-align: center;
        /* center text */
        gap: 30px;
        /* spacing between text & photo */
        padding: 0 20px;
        /* add breathing room */
    }

    .about-text {
        width: 100%;
        /* full width text */
        text-align: left;
        /* keep text left-aligned (optional) */
    }

    .about-photo img {
        max-width: 200px;
        /* smaller image for mobile */
    }
}

/* Work Experience Section */
#experience {
    background-color: #1a2921;
    padding: 4rem 0;
}

.experience-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    /* space between cards */
}

.experience-card {
    background-color: #1a2921;
    color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 1 calc(50% - 1rem);
    /* ensures 2 cards per row */
    min-height: 220px;
    /* ensures cards have a base height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.experience-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: #1db954;
    /* icon background color */
    border-radius: 50%;
}



/* Projects Section */
#projects {
    padding: 100px 0;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    box-shadow: 0 0 10px var(--glow-color);
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 12px 30px rgba(0, 255, 136, 0.2);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card h5 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
}

/* Make project cards in a row equal height */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.row.g-4>.col-md-4 {
    display: flex;
    /* allows card to stretch */
}



/* Contact Section */
#contact {
    background: var(--bg-secondary);
    padding: 100px 0;
}

.contact-info {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.contact-email {
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px transparent;
}

.contact-email:hover {
    color: var(--accent-tertiary);
    text-decoration: underline;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

/* Footer */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 255, 136, 0.1);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .code-decoration {
        font-size: 120px;
        right: 2%;
    }

    .section-title::after {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}