
:root {
    --navy: #102A56;
    --blue: #246BFD;
    --blue-dark: #1954D1;
    --ice: #EAF2FF;
    --white: #FFFFFF;
    --text: #24334B;
    --muted: #65748B;
    --border: #E1E8F2;
    --surface: #F6F9FE;
    --radius: 18px;
    --shadow: 0 12px 35px rgba(16, 42, 86, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.section {
    padding: 95px 0;
}

.section-soft {
    background: var(--surface);
}

.eyebrow {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

h1, h2, h3 {
    color: var(--navy);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    letter-spacing: -2px;
    margin-bottom: 22px;
}

h1 span {
    color: var(--blue);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

section .container > p:not(.eyebrow) {
    max-width: 760px;
}

section .container > p + h2 {
    margin-top: 0;
}

/* Navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--navy);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.brand span {
    color: var(--blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-links .nav-cta {
    background: var(--blue);
    color: white;
    padding: 11px 19px;
    border-radius: 9px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 1.7rem;
    cursor: pointer;
}

/* Hero */

.hero {
    background:
        radial-gradient(circle at 90% 15%, #EAF2FF 0, transparent 34%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
    min-height: 610px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 65px;
}

.hero-description {
    max-width: 590px;
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 25px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background: var(--blue);
    box-shadow: 0 8px 20px rgba(36, 107, 253, 0.18);
}

.button-primary:hover {
    color: white;
    background: var(--blue-dark);
}

.button-outline {
    border-color: var(--border);
    color: var(--navy);
    background: white;
}

.hero-note {
    color: var(--muted);
    font-size: 0.82rem;
}

/* Code illustration */

.code-card {
    background: var(--navy);
    color: #DCE8FF;
    border: 1px solid #25446F;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(16, 42, 86, 0.2);
    overflow: hidden;
    transform: rotate(1deg);
}

.code-card-top {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 18px;
    border-bottom: 1px solid #28446C;
}

.code-card-top > span:not(.code-label) {
    width: 10px;
    height: 10px;
    background: #7DA7FF;
    border-radius: 50%;
}

.code-label {
    margin-left: auto;
    color: #A9BDE0;
    font-size: 0.8rem;
}

.code-card pre {
    overflow-x: auto;
    padding: 28px 24px;
    font-size: 0.9rem;
    line-height: 2;
}

.code-status {
    border-top: 1px solid #28446C;
    padding: 15px 20px;
    font-size: 0.77rem;
    color: #B8D0FF;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #63D6A1;
}

/* Projects */

.project-grid,
.skills-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-top: 38px;
}

.project-card,
.skill-card,
.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.project-card:hover,
.skill-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    object-position: top;
    background: var(--ice);
}

.project-info {
    padding: 26px;
}

.project-type {
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.project-info > p:not(.project-type) {
    color: var(--muted);
    margin-bottom: 14px;
}

.project-info .tech-list {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--navy);
}

.project-info > a:last-child {
    display: inline-block;
    font-weight: 700;
    margin-top: 6px;
}

/* Skills and services */

.skill-card,
.service-card {
    padding: 28px;
}

.skill-card p,
.service-card p {
    color: var(--muted);
}

/* Contact */

.contact-section {
    background: var(--navy);
    color: #E0E9FA;
    text-align: center;
}

.contact-section h2 {
    color: white;
}

.contact-section .eyebrow {
    color: #91B7FF;
}

.contact-section .container > p:not(.eyebrow) {
    max-width: 670px;
    margin: 0 auto 25px;
}

.site-footer {
    background: #0B1D3B;
    color: #C6D3E8;
    padding: 25px 0;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive layout */

@media (max-width: 900px) {
    .nav-links {
        gap: 15px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 75px 0;
    }

    .hero-visual {
        max-width: 580px;
    }
}

@media (max-width: 700px) {
    .section {
        padding: 65px 0;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: relative;
        min-height: 70px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px;
    }

    .nav-links .nav-cta {
        margin-top: 6px;
        text-align: center;
    }

    .project-grid,
    .skills-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 210px;
    }

    .footer-inner {
        flex-direction: column;
    }

    h1 {
        letter-spacing: -1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Personal photograph beside IANDEV brand */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-photo {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #246BFD;
    padding: 2px;
    background: #FFFFFF;
    box-shadow: 0 3px 12px rgba(36, 107, 253, 0.15);
}

.brand-name {
    color: #102A56;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1;
}

.brand-name span {
    color: #246BFD;
}

.brand:hover .brand-photo {
    box-shadow: 0 0 0 4px #EAF2FF;
}

@media (max-width: 700px) {
    .brand-photo {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 1.2rem;
    }
}

.nav-links a.active {
    color: #246BFD;
}

.nav-links a.active:not(.nav-cta) {
    position: relative;
}

.nav-links a.active:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    background: #246BFD;
    border-radius: 2px;
}

.nav-links a.active.nav-cta {
    background: #102A56;
    color: #FFFFFF;
}

/* Shared styling for the additional portfolio pages */

.page-intro {
    background:
        radial-gradient(circle at 90% 10%, #EAF2FF, transparent 38%),
        #FFFFFF;
    padding-top: 85px;
    padding-bottom: 75px;
}

.page-intro h1 {
    max-width: 850px;
}

.page-intro h1 span {
    color: var(--blue);
}

.page-lead {
    max-width: 750px;
    font-size: 1.1rem;
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 55px;
}

.about-photo-wrap {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--ice);
    box-shadow: var(--shadow);
}

.about-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: 17px;
}

.about-grid p:not(.eyebrow) {
    color: var(--muted);
    margin-bottom: 18px;
}

.about-grid .button {
    margin-top: 8px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 40px;
}

.contact-details {
    padding: 20px 0;
}

.contact-details > p:not(.eyebrow) {
    color: var(--muted);
}

.contact-item {
    margin-top: 27px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.contact-item strong {
    display: block;
    color: var(--navy);
    margin-bottom: 7px;
}

.contact-item p {
    color: var(--muted);
}

.contact-form-card {
    padding: 32px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-card > p {
    color: var(--muted);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #CFD9E8;
    border-radius: 9px;
    background: #FFFFFF;
    color: var(--text);
    font: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid #DCE8FF;
    border-color: var(--blue);
}

.contact-form-card button {
    cursor: pointer;
    font: inherit;
}

.form-feedback {
    color: var(--navy);
    font-size: 0.9rem;
    margin-top: 14px;
}

@media (max-width: 800px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-photo-wrap {
        max-width: 420px;
    }

    .about-photo {
        aspect-ratio: 4 / 3;
    }

    .page-intro {
        padding-top: 65px;
        padding-bottom: 55px;
    }
}

@media (max-width: 500px) {
    .contact-form-card {
        padding: 22px;
    }

    .page-lead {
        font-size: 1rem;
    }
}


.form-note {
    color: #65748B;
    font-size: 0.82rem;
    margin-top: 14px;
    line-height: 1.6;
}

#contact-form .button {
    width: 100%;
    border: none;
}

#contact-form .button:focus-visible {
    outline: 3px solid #9AB9FF;
    outline-offset: 3px;
}

#form-feedback {
    overflow-wrap: anywhere;
}
/* Remove underlines from navigation links */
.nav-links a,
.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active,
.nav-links a.active {
    text-decoration: none !important;
}
/* Remove navigation underlines and header divider */
.site-header {
    border-bottom: none !important;
    box-shadow: none !important;
}

.nav-links a,
.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active,
.nav-links a.active {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.nav-links a::before,
.nav-links a::after {
    content: none !important;
    display: none !important;
}