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

:root {
    --primary-teal: #2d7a7a;
    --primary-dark-teal: #1f5555;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-orange: #f97316;
    --text-primary: #1f2937;
    --text-secondary: #3b3f47;
    --text-dim: #7d8698;
    --text-light: #ffffff;
    --bg-cream: #faf9f6;
    --bg-cream: #f7f6f1;
    --bg-white: #ffffff;
    --border-light: #f3f4f6;
    --card-padding: 3rem;
    --portfolio-background: linear-gradient(135deg, #b8e5e5, #d0e8c5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-cream);
    font-weight: 400;
}

a:focus, button:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

a.underlined {
    position: relative;
    color: inherit;
    text-decoration: none;
}

a.underlined::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

a.underlined:hover::after {
    width: 100%;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-white);
    color: var(--text-primary);
    border: 0;
    border-radius: 25px;
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 122, 122, 0.3);
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-dark-teal));
    color: var(--text-light);
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 10px;
    z-index: 10;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
    height: 50px;
    padding: 0 3rem;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px);
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0);*/
    /*box-shadow: 0 0 0 2px rgba(45, 122, 122, 0);*/
    transition: all 0.3s ease-in-out;
}

.scrolled .nav-links {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);*/
    /*box-shadow: 0 0 0 2px rgba(45, 122, 122, 0.8);*/
}

.cleared-hero .nav-links {
    background-color: #edeaded0;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.scrolled .nav-links a {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #deece8, #eef2eb, #f4f0e7, #fae7e1, #f8dae4);
    background: linear-gradient(45deg, #eef2eb, #f4f0e7, #fae7e1);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 14px;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    top: 60%;
    left: 5%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    top: 30%;
    left: 15%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-teal);
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1em;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(45, 122, 122, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(45, 122, 122, 0.4);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-teal);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

.section-subtitle a {
    color: var(--primary-teal);
    font-weight: 500;
}

.nowrap {
    white-space: nowrap;
}

/* About Section */
.about {
    background: var(--bg-white);
}

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

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary-teal);
    font-weight: 700;
}

.expertise-container {
    position: relative;
    padding: var(--card-padding);
    padding-top: calc(var(--card-padding) / 2);
    border-radius: 32px;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.expertise-container h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.expertise {
    position: relative;
}

.expertise:not(:last-of-type) {
    margin-bottom: 1.5rem;
}

.expertise h4 {
    color: var(--primary-teal);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.expertise::after {
    content: '';
    display: block;
    position: absolute;
    border-radius: 14px;
    opacity: 0.2;
}

.expertise:nth-of-type(1)::after {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    top: -2rem;
    right: calc(var(--card-padding) * -1 - 1rem);
    transform: rotate(45deg);
}

.expertise:nth-of-type(2)::after {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    top: -1rem;
    left: calc(var(--card-padding) * -1 - 2rem);;
    transform: rotate(75deg);
}

.expertise:nth-of-type(3)::after {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    bottom: -4.5rem;
    right: -1rem;
    transform: rotate(10deg);
}

/* Portfolio Section */
.portfolio {
    background: var(--portfolio-background);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-light);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.project-card:nth-child(1) {
    background: linear-gradient(135deg, #00a5cc, #a14df3);
    --project-image-width: 150%;
}

.project-card:nth-child(2) {
    background: linear-gradient(135deg, #78A62D, #4D8223 60%, #78A62D);
    --project-image-width: 120%;
}

.project-card:nth-child(3) {
    background: linear-gradient(135deg, #fc6767, #ec008c);
    --project-image-width: 110%;
}

.project-card:nth-child(4) {
    background: linear-gradient(135deg, #7188EC, #751DD4);
    --project-image-width: 140%;
}

.project-card:nth-child(5) {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.project-card:nth-child(6) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.project-image {
    width: 100%;
    max-height: 400px;
    padding-left: var(--card-padding);
    aspect-ratio: 1.75;
    overflow: hidden;
}

.project-image img {
    display: block;
    width: var(--project-image-width, 100%);
}

.project-content {
    padding: var(--card-padding);
    z-index: 2;
}

.project-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.tech-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.project-link {
    color: inherit;
    text-decoration: none;
}

.project-link::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.project-decoration {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* Blog Section */
.blog {
    background: var(--bg-white);
}

.blog-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.no-articles {
    display: block;
    color: var(--text-dim);
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: var(--bg-cream);
}


.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card,
.contact-form {
    background-color: rgba(255, 255, 255, .85);
    padding: 1.5rem;
    border-radius: 10px;
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0);*/
    transition: all 0.3s ease;
}

.contact-card:hover,
.contact-form:hover {
    transform: translateY(-5px);
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);*/
}

.contact-card h3,
.contact-form h3 {
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.contact-card p,
.contact-form p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-card p:last-of-type {
    margin-bottom: 0;
}

.contact-form {
    background-color: #dcefd4;
}

.contact-form h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-form button {
    width: 200px;
    max-width: 100%;
}

.form-group {
    display: flex;
    gap: .75rem;
}

.form-field {
    position: relative;
    width: 100%;
    margin-bottom: .75rem;
}

.form-field label {
    position: absolute;
    left: 1rem;
    top: .5rem;
    color: var(--text-dim);
    font-size: .75rem;
    font-weight: 300;
    line-height: 1;
    transition: all 0.3s;
}

.form-input {
    width: 100%;
    padding: 1.5rem 1rem .5rem;
    border: none;
    border-radius: 8px;
    color: inherit;
    background: #fff;
    font-family: inherit;
    font-size: inherit;
}

.form-input:placeholder-shown {
    padding: 1rem;
}

textarea.form-input + label,
.form-input:placeholder-shown + label {
    color: rgba(255, 255, 255, .1);
    font-size: .1rem;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 122, 122, 0.8);
}

textarea.form-input {
    height: 8rem;
    padding: 1rem;
}

.contact-success {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: rgba(45, 122, 122, .1);
    text-align: center;
}

.contact-error {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid currentColor;
    border-radius: 10px;
    color: #d62828;
    background-color: rgba(213, 96, 98, .2);
}

.contact-success h3 {
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--primary-teal);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-content p {
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --card-padding: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .nav-links {

        gap: 1.5rem;
        height: 40px;
        padding: 0 1.5rem;
    }

    .nav-links a {
        font-size: 0.875rem;
    }

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

    .expertise-container {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .floating-elements {
        opacity: .5;
    }

    .cta-button {
        padding: .75rem 1.5rem;
        font-size: .875rem;
    }

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

    .contact-form {
        order: -1;
    }

    .form-group {
        display: block;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}