/* ===================================
   WEBKLART - PREMIUM WEB DESIGN
   Modern & Professional Styling
   =================================== */

/* --- SMOOTH SCROLL --- */
html {
    scroll-behavior: smooth;
}

/* --- PREMIUM THEME VARIABLES --- */
:root {
    --bg-color: #F8F9FB;
    --bg-secondary: #EEF2F7;
    --surface-color: #FFFFFF;
    --primary-color: #0B1F3F;
    --primary-light: #1A3A5C;
    --accent-color: #5B8DBE;
    --accent-dark: #4A7AA8;
    --accent-light: #7BA5D1;
    --text-main: #0B1F3F;
    --text-light: #5F7387;
    --border-color: #D8E1ED;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(11, 31, 63, 0.04);
    --shadow-md: 0 4px 16px rgba(11, 31, 63, 0.06);
    --shadow-lg: 0 8px 32px rgba(11, 31, 63, 0.08);
    --shadow-xl: 0 16px 48px rgba(11, 31, 63, 0.12);
}

/* --- GLOBAL RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- PREMIUM HEADER / NAVIGATION --- */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 2px 12px rgba(11, 31, 63, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 16px rgba(11, 31, 63, 0.25);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo img {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.logo:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

/* --- PREMIUM CTA BUTTON --- */
.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    border-color: white;
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* Hero specific CTA */
.hero .cta-button {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(91, 141, 190, 0.4);
    font-size: 1.05rem;
    padding: 16px 40px;
}

.hero .cta-button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(91, 141, 190, 0.5);
}

/* --- PREMIUM HERO SECTION --- */
.hero {
    padding: 140px 20px 180px;
    background: url('code-in-progress-stockcake.webp') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(240, 246, 250, 0.92) 0%, rgba(240, 246, 250, 0.85) 60%, rgba(240, 246, 250, 0.95) 100%),
        radial-gradient(circle at 30% 50%, rgba(91, 141, 190, 0.12) 0%, rgba(34, 197, 94, 0.05) 45%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: heroFadeIn 1s ease-out;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

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

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4.2rem;
    margin-bottom: 32px;
    color: var(--primary-color);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    animation: underlineGrow 1s ease-out 0.5s forwards;
}

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
    }
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 56px;
    line-height: 1.8;
    font-weight: 400;
}

/* --- SERVICES SECTION --- */
.why-us {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 141, 190, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.why-card {
    background: var(--surface-color);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- PROCESS SECTION --- */
.process {
    padding: 100px 0;
    background: var(--surface-color);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

.process-step {
    position: relative;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    background: var(--surface-color);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(91, 141, 190, 0.3);
}

.step-content {
    margin-top: 30px;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 700;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- SERVICES SECTION --- */
.services {
    padding: 100px 0;
    background: var(--surface-color);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.75rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-color);
}

.section-title span {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 3px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
}

/* --- PREMIUM SERVICE CARDS --- */
.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(11, 31, 63, 0.06);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(91, 141, 190, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(91, 141, 190, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.icon {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--surface-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    color: var(--accent-color);
    border: 2px solid var(--border-color);
}

.icon svg {
    width: 36px;
    height: 36px;
    transition: transform 0.4s ease;
}

.service-card:hover .icon {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.service-card:hover .icon svg {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- PORTFOLIO SECTION --- */
.portfolio {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* --- PREMIUM PROJECT CARDS --- */
.project-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(11, 31, 63, 0.06);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: 0 0 0 0 var(--accent-color);
    transition: box-shadow 0.4s ease;
}

.project-card:hover::after {
    box-shadow: inset 0 0 0 3px var(--accent-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(91, 141, 190, 0.2);
    border-color: var(--accent-color);
}

.project-preview {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-img {
    transform: scale(1.15);
}

.project-info {
    padding: 32px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tag {
    font-size: 0.75rem;
    background: rgba(91, 141, 190, 0.12);
    color: var(--accent-dark);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(91, 141, 190, 0.25);
}

.project-info h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-link {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.project-card:hover .project-link {
    color: var(--accent-dark);
    gap: 10px;
}

/* --- PREMIUM CONTACT FORM --- */
.contact-form-container {
    max-width: 700px;
    margin: 50px auto 0;
    background: var(--surface-color);
    padding: 50px;
    border-radius: 20px;
    text-align: left;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 32px;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(91, 141, 190, 0.12);
    background-color: var(--surface-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(91, 141, 190, 0.25);
}

.submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(91, 141, 190, 0.35);
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* --- PREMIUM FOOTER --- */
footer {
    background: var(--primary-color);
    color: white;
    padding: 80px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 800;
}

footer p {
    opacity: 0.8;
    font-size: 1rem;
}

.contact-email {
    font-size: 1.75rem;
    margin-bottom: 30px;
    display: block;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--accent-light);
    transform: scale(1.02);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .hero-content {
        max-width: 600px;
    }

    .hero h1 {
        font-size: 2.75rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .logo img {
        height: 75px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .service-card,
    .contact-form-container {
        padding: 32px;
    }

    .project-preview {
        height: 180px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 120px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .services {
        padding: 60px 0;
    }

    .why-us,
    .process {
        padding: 60px 0;
    }

    .portfolio {
        padding: 80px 0;
    }

    .footer {
        padding: 60px 0 20px;
    }
}

/* --- SCROLL TO TOP BUTTON --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(91, 141, 190, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-top:hover {
    background: var(--accent-dark);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 24px rgba(91, 141, 190, 0.4);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
