* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --accent-light: #60a5fa;
    --text-color: #1e293b;
    --text-light: #64748b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
    --transition: 0.3s ease all;
    --navbar-height: 88px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: calc(var(--navbar-height) + 16px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-color);
    padding: 0.95rem 0;
    min-height: var(--navbar-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(18px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.nav-brand-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.22);
}

.nav-brand-copy {
    display: flex;
    flex-direction: column;
}

.nav-brand h2 {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.nav-brand p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background-color: rgba(255, 255, 255, 0.92);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background-color: var(--text-color);
    display: block;
    transition: var(--transition);
    border-radius: 999px;
}

.menu-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.14);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    margin: 0;
    padding: 0.45rem;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 0.92rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background-color: rgba(59, 130, 246, 0.08);
}

.nav-menu a::after {
    display: none;
}

.nav-menu a:hover::after {
    width: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #3b82f6 100%);
    background-attachment: fixed;
    color: var(--white);
    height: calc(100svh - var(--navbar-height));
    min-height: calc(100svh - var(--navbar-height));
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero-content {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1.5rem;
    align-items: center;
    min-height: calc(100svh - var(--navbar-height));
    position: relative;
    z-index: 10;
}

.hero-content {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1.5rem;
    align-items: center;
}

.hero-text {
    justify-self: start;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 4.6vw, 4.2rem);
    margin-bottom: 0.85rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    max-width: 13ch;
}

.hero-text p {
    font-size: 1.12rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    justify-self: end;
}

.highlight {
    color: #ffd700;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.avatar-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about h2,
.services h2,
.portfolio h2,
.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.about h2::after,
.services h2::after,
.portfolio h2::after,
.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.skills-list {
    list-style: none;
    margin-top: 1.5rem;
}

.skills-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.skills-list i {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 700;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent-color);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat p {
    color: var(--text-light);
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.2);
}

.portfolio-badge {
    align-self: flex-start;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.portfolio-item h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0;
}

.portfolio-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.portfolio-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.portfolio-highlights li {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

.portfolio-highlights strong {
    color: var(--primary-color);
}

.portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.portfolio-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--light-bg);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

.portfolio-meta i {
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.contact-content {
    display: block;
}

.contact-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.8rem;
    border-radius: 28px;
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.contact-intro {
    max-width: 720px;
    margin-bottom: 2.25rem;
}

.contact-eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-intro h3 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.9rem;
    color: var(--primary-color);
}

.contact-intro p {
    font-size: 1.02rem;
    color: var(--text-light);
    max-width: 640px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 1.25rem;
    border-radius: 20px;
    background-color: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.info-item i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.1rem;
    color: var(--accent-color);
    background-color: rgba(59, 130, 246, 0.1);
    flex-shrink: 0;
}

.info-item div {
    min-width: 0;
}

.info-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.info-item h4 {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.info-item p,
.info-item a {
    font-size: 1rem;
    line-height: 1.5;
}

.info-item p {
    color: var(--text-light);
}

.info-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    word-break: break-word;
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.contact-note {
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.contact-note p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.75rem;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        justify-self: end;
    }

    .navbar nav {
        grid-column: 1 / -1;
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        gap: 0.35rem;
        border: 0;
        margin-top: 0;
        padding: 0;
        border-radius: 22px;
        transition: max-height 0.35s ease, padding 0.35s ease, margin-top 0.35s ease;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: none;
    }

    .nav-menu.open {
        max-height: 420px;
        padding: 0.75rem;
        margin-top: 0.85rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
        padding: 0;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: 14px;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: rgba(59, 130, 246, 0.08);
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 80px;
    }

    .hero {
        background-attachment: scroll;
        height: auto;
        min-height: calc(100svh - var(--navbar-height));
        padding: 0;
    }

    .hero::before {
        top: auto;
        right: -30%;
        bottom: -10%;
        width: 320px;
        height: 320px;
        opacity: 0.8;
    }

    .hero::after {
        left: -35%;
        bottom: -18%;
        width: 280px;
        height: 280px;
        opacity: 0.7;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .navbar .container {
        padding: 0 12px;
    }

    .nav-brand {
        gap: 0.7rem;
    }

    .nav-brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 0.82rem;
    }

    .nav-brand h2 {
        font-size: 1.25rem;
    }

    .nav-brand p {
        font-size: 0.64rem;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background-color: rgba(255, 255, 255, 0.94);
    }

    .hero-content {
        grid-template-columns: 1fr;
        min-height: calc(100svh - var(--navbar-height));
        text-align: center;
        align-content: center;
        justify-items: center;
        gap: 1.25rem;
        padding: 2.75rem 0 3rem;
    }

    .hero-text {
        width: 100%;
        max-width: 560px;
        padding: 1.25rem 1rem 0;
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06));
        backdrop-filter: blur(10px);
    }

    .highlight {
        font-size: 0.72rem;
        line-height: 1.8;
        letter-spacing: 0.04em;
        color: rgba(255, 255, 255, 0.72);
        margin-bottom: 0.85rem;
    }

    .hero-text h1 {
        font-size: clamp(1.95rem, 7vw, 2.6rem);
        max-width: none;
        line-height: 1.08;
        letter-spacing: -0.04em;
        margin-bottom: 0.9rem;
    }

    .hero-text p {
        font-size: 0.96rem;
        max-width: none;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.84);
        margin: 0 auto 1.35rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: nowrap;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.9rem 0.75rem;
        font-size: 0.94rem;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat {
        padding: 1rem;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about h2,
    .services h2,
    .portfolio h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .contact-intro h3 {
        font-size: 1.55rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --navbar-height: 76px;
    }

    .navbar .container {
        padding: 0 10px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero {
        height: auto;
        padding: 0;
        min-height: calc(100svh - var(--navbar-height));
    }

    .hero-content {
        padding: 2.5rem 0;
    }

    .hero .container {
        padding: 0;
    }

    .hero-text {
        padding: 1rem 0.9rem 0;
        border-radius: 24px;
    }

    .highlight {
        font-size: 0.68rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .contact-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
