:root {
    --color-primary: #6EC1E4;
    --color-secondary: #54595F;
    --color-text: #7A7A7A;
    --color-accent: #61CE70;
    --color-dark: #1a1a2e;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Roboto Slab', serif;
    --max-width: 1200px;
    --section-padding: 100px 0;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.section-divider span {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    transform: rotate(45deg);
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

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

/* ===== HEADER / NAV ===== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    background: var(--color-white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header.scrolled .nav-link {
    color: var(--color-secondary);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--color-primary);
}

.header.scrolled .nav-brand {
    color: var(--color-dark);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.nav-brand {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    transition: color var(--transition);
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 52px;
    width: auto;
    display: block;
    transition: filter var(--transition);
    filter: brightness(0) invert(1);
}

.header.scrolled .nav-brand img {
    filter: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition);
}

.header.scrolled .nav-toggle span {
    background: var(--color-secondary);
}

/* ===== HERO ===== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== SECTION BASE ===== */

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--color-text);
    font-size: 1.05rem;
}

.section-light {
    background: var(--color-light);
}

.section-dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}

.section-dark p {
    color: rgba(255,255,255,0.8);
}

/* ===== ABOUT INTRO ===== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 8px solid var(--color-primary);
}

.about-text h3 {
    margin-bottom: 1rem;
}

.about-text p {
    text-align: justify;
}

/* ===== SERVICES ===== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 0 45px rgba(0,0,0,0.07);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 50px rgba(0,0,0,0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    color: var(--color-white);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.service-card h4 {
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.95rem;
    text-align: justify;
}

/* ===== PRICING ===== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 0 45px rgba(0,0,0,0.07);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 50px rgba(0,0,0,0.12);
}

.pricing-card-featured {
    border: 2px solid var(--color-primary);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h4 {
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
}

.pricing-subtitle {
    color: var(--color-text);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.pricing-price {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.price-amount {
    display: block;
    font-family: var(--font-secondary);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.2;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text);
    margin-top: 4px;
}

.price-recurring {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 6px;
    height: 11px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.pricing-note {
    background: var(--color-light);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.pricing-note p {
    font-size: 0.85rem;
    color: var(--color-text);
    margin-bottom: 0;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

/* ===== WORKFLOW ===== */

.workflow-section {
    background-image: url('../img/web-developer-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.workflow-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.67);
}

.workflow-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
}

.workflow-content h2 {
    color: var(--color-white);
}

.workflow-content p {
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.workflow-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

/* ===== EXPERIENCE / SKILLS ===== */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.experience-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 45px rgba(0,0,0,0.07);
}

.experience-card h4 {
    color: #000;
    margin-bottom: 0.3rem;
}

.experience-card .period {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.8rem;
}

.experience-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 22px;
    background: var(--color-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 10px;
    transition: width 1.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.75rem;
    color: var(--color-white);
    font-weight: 500;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--color-secondary);
    font-size: 0.95rem;
}

/* ===== TESTIMONIALS ===== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 45px rgba(0,0,0,0.07);
    text-align: center;
}

.testimonial-card .quote-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.2rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--color-secondary);
    font-style: normal;
}

.testimonial-divider {
    width: 30px;
    height: 2px;
    background: var(--color-primary);
    margin: 10px auto;
}

/* ===== CTA ===== */

.cta-section {
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    margin-bottom: 0.5rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ===== CONTACT INFO ===== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

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

.contact-item-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    color: var(--color-white);
}

.contact-item-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 0.95rem;
}

.contact-form-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form-section h3 {
    margin-bottom: 1rem;
}

.contact-form-section p {
    margin-bottom: 2rem;
}

/* ===== FOOTER ===== */

.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: var(--color-primary);
}

.footer a:hover {
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    list-style: none;
}

/* ===== BACKGROUND PATTERNS ===== */

.bg-pattern {
    background-image: url('../img/shape1.png');
    background-repeat: no-repeat;
    background-position: bottom right;
}

.bg-pattern-horiz {
    background-image: url('../img/shape1-horiz.png');
    background-repeat: no-repeat;
    background-position: center right;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }

    .hero-content h1 { font-size: 2.6rem; }

    .about-grid {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .hero-content h1 { font-size: 2.2rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .nav-link {
        color: var(--color-secondary);
        padding: 12px 0;
        display: block;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

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

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

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    :root {
        --section-padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        padding: 0 15px;
    }
}
