/* Reset and Base Styles — agency design system */
:root {
    --color-bg: #f6f4ef;
    --color-surface: #fffcfa;
    --color-surface-muted: #ebe8e1;
    --color-text: #12151c;
    --color-text-muted: #5c626c;
    --color-primary: #1e3a5f;
    --color-primary-dark: #152a45;
    --color-accent: #c9a227;
    --color-accent-soft: #e8d9a8;
    --color-border: #ded9cf;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 22px;
    --shadow: 0 2px 12px rgba(18, 21, 28, 0.06);
    --shadow-lg: 0 28px 56px rgba(18, 21, 28, 0.1);
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 252, 250, 0.88);
    backdrop-filter: blur(16px) saturate(1.2);
    z-index: 1000;
    transition: background 0.35s ease, box-shadow 0.35s ease;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.logo-main {
    height: 42px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.logo-main:hover {
    transform: scale(1.05);
}

.nav-logo h2,
.nav-brand {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}
.nav-brand { display: inline-block; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

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

.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.lang-btn.active {
    background: var(--color-primary);
    color: #faf8f3;
    border-color: var(--color-primary);
}

.lang-btn:hover:not(.active) {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    margin-left: auto;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 1010;
    position: relative;
}

.hamburger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: transform 0.32s ease, opacity 0.25s ease;
    transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu backdrop (below panel, above page) */
.nav-backdrop {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    z-index: 1005;
    background: rgba(12, 18, 31, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.nav-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 100% 70% at 85% 15%, rgba(201, 162, 39, 0.14) 0%, transparent 52%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(30, 58, 95, 0.35) 0%, transparent 45%),
        linear-gradient(168deg, #0c121f 0%, #152a45 42%, #0f1724 100%);
    color: #f4f1e8;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(244, 241, 232, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 241, 232, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23n)" opacity="0.04"/></svg>');
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.35rem;
}

.hero-content h1,
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5.2vw, 3.65rem);
    font-weight: 600;
    margin-bottom: 1.1rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-optical-sizing: auto;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: rgba(244, 241, 232, 0.72);
    max-width: 36ch;
}

.hero-description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: rgba(244, 241, 232, 0.58);
    max-width: 42ch;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: var(--color-surface-muted);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.hero .tech-stack .tech-tag {
    background: rgba(255, 252, 250, 0.06);
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(232, 217, 168, 0.22);
    color: rgba(244, 241, 232, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.95rem 1.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.25);
}

.btn-primary:hover {
    background: #d4ae3a;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #f4f1e8;
    border: 1px solid rgba(244, 241, 232, 0.35);
}

.btn-secondary:hover {
    background: rgba(255, 252, 250, 0.08);
    border-color: rgba(232, 217, 168, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(30, 58, 95, 0.05);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(232, 217, 168, 0.15);
}

.hero-main-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.82) 0%, rgba(15, 23, 36, 0.88) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.floating-elements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.floating-card {
    background: rgba(255, 252, 250, 0.1);
    backdrop-filter: blur(12px);
    padding: 0.85rem 1.35rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #f4f1e8;
    font-weight: 500;
    font-size: 0.92rem;
    border: 1px solid rgba(232, 217, 168, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
    animation-delay: 1s;
}

.floating-card i {
    font-size: 1.1rem;
    color: var(--color-accent);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Section Styles */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.8vw, 2.65rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
    font-optical-sizing: auto;
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 3.25rem;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5.5rem 0;
    margin-top: 50vh;
    background: var(--color-bg);
}

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

.about-text h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    padding-left: 1rem;
}

.about-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    bottom: 0.35em;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.education-timeline {
    position: relative;
    padding-left: 2rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}

.education-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.education-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--color-border);
}

.education-year {
    position: absolute;
    left: -4rem;
    top: 0;
    background: var(--color-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.education-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.education-content p {
    color: #64748b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.grade, .subjects {
    display: inline-block;
    background: var(--color-surface-muted);
    color: var(--color-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.value-proposition-card {
    background: linear-gradient(152deg, var(--color-primary) 0%, #243d5c 48%, var(--color-primary-dark) 100%);
    color: #f4f1e8;
    border-radius: var(--radius-lg);
    padding: 2rem 1.85rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    border: 1px solid rgba(232, 217, 168, 0.12);
}

.value-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.value-header h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-details {
    margin-bottom: 2rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.value-item i {
    font-size: 1.1rem;
    color: var(--color-accent);
    min-width: 20px;
}

.value-item span {
    font-size: 0.95rem;
    line-height: 1.4;
    color: white;
    font-weight: 500;
}

.value-card-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.value-card-cta .btn {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    box-shadow: 0 4px 18px rgba(201, 162, 39, 0.3);
}

.value-card-cta .btn:hover {
    background: #d4ae3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.38);
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.certification-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
}

.certification-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 95, 0.2);
}

.certification-year {
    background: var(--color-primary);
    color: #faf8f3;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: inline-block;
    margin-bottom: 1rem;
}

.certification-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.certification-content p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.certification-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.certification-status.completed {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.certification-status:not(.completed) {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.award-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.award-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.08), transparent);
    transition: left 0.5s ease;
}

.award-item:hover::before {
    left: 100%;
}

.award-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 95, 0.18);
}

.award-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.35rem;
    color: var(--color-accent);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-item:hover .award-icon {
    transform: scale(1.06);
    box-shadow: 0 8px 26px rgba(30, 58, 95, 0.28);
}

.award-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.award-item p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--color-surface-muted);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--color-surface);
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 95, 0.12);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.88) 0%, rgba(15, 23, 36, 0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-overlay i {
    font-size: 3rem;
    color: white;
}

.service-content {
    padding: 2rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    color: #64748b;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.service-cta {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.service-cta .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.service-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.18);
}

/* Full-width CTA band */
.cta-band {
    padding: 5rem 0;
    background:
        radial-gradient(ellipse 80% 120% at 50% 0%, rgba(201, 162, 39, 0.12) 0%, transparent 55%),
        linear-gradient(165deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: #f4f1e8;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(244, 241, 232, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 241, 232, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

.cta-band .container {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: #faf8f3;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(244, 241, 232, 0.75);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 1.85rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-buttons .btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    box-shadow: 0 4px 22px rgba(201, 162, 39, 0.28);
}

.cta-buttons .btn-primary:hover {
    background: #d4ae3a;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(201, 162, 39, 0.38);
}

.cta-buttons .btn-outline {
    background: transparent;
    color: #f4f1e8;
    border: 1px solid rgba(244, 241, 232, 0.4);
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 252, 250, 0.1);
    border-color: rgba(232, 217, 168, 0.55);
    color: #fff;
    transform: translateY(-2px);
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: var(--color-surface);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.65rem 1.35rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-primary);
    color: #faf8f3;
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--color-border);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.portfolio-content p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

/* Order Section */
.order {
    padding: 6rem 0;
    background: var(--color-bg);
}

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

.checklist-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.step:hover {
    background: #f1f5f9;
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.step-number {
    background: var(--color-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.quote-form-section {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.quote-form-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    text-align: center;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.1rem;
    position: relative;
}

.checkbox-label:hover input[type="checkbox"] ~ .checkmark {
    border-color: var(--color-primary);
    background-color: var(--color-surface-muted);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

#captcha-text {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1f2937;
    letter-spacing: 2px;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    min-width: 120px;
    text-align: center;
}

#refresh-captcha {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#refresh-captcha:hover {
    background: #4b5563;
}

/* Contact Form Captcha Styles */
#contact-captcha-text {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1f2937;
    letter-spacing: 2px;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    min-width: 120px;
    text-align: center;
}

#refresh-contact-captcha {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#refresh-contact-captcha:hover {
    background: #4b5563;
}

#contact-captcha {
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    margin-top: 0.5rem;
}

#contact-captcha:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--color-surface-muted);
    border-top: 1px solid var(--color-border);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-top: 0.2rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.contact-item p {
    color: #64748b;
    line-height: 1.6;
}

.social-links {
    margin-top: 2rem;
}

.social-links h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--color-primary);
    color: #f4f1e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(232, 217, 168, 0.25);
}

.social-link:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.25);
}

/* Contact Form */
.contact-form {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-primary);
}

/* IT Knowledge Section */
.knowledge {
    padding: 6rem 0;
    background: var(--color-bg);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.knowledge-category {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.knowledge-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.knowledge-category h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.65rem;
}

.knowledge-category ul {
    list-style: none;
}

.knowledge-category li {
    margin-bottom: 1rem;
}

.knowledge-category a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.knowledge-category a:hover {
    color: var(--color-primary);
}

.knowledge-category a::before {
    content: '→';
    font-weight: bold;
    color: var(--color-accent);
}

/* Download Section */
.download {
    padding: 6rem 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 250px;
    justify-content: center;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.download-btn i {
    font-size: 1.2rem;
}

/* Legal Section */
.legal {
    padding: 4rem 0;
    background: var(--color-surface-muted);
    border-top: 1px solid var(--color-border);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.legal-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: white;
}

.legal-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-surface);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #121a28 0%, #0c121f 100%);
    color: #e8e4dc;
    padding: 3.5rem 0 1.25rem;
    border-top: 1px solid rgba(232, 217, 168, 0.12);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #faf8f3;
}

.footer-section p {
    color: rgba(232, 228, 220, 0.65);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(232, 228, 220, 0.6);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(232, 217, 168, 0.1);
    padding-top: 1.25rem;
    text-align: center;
    color: rgba(232, 228, 220, 0.5);
    font-size: 0.9rem;
}
.footer-bottom .footer-link {
    color: rgba(232, 217, 168, 0.85);
    text-decoration: none;
}
.footer-bottom .footer-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer .tech-tags .tech-tag {
    background: rgba(255, 252, 250, 0.06);
    color: rgba(244, 241, 232, 0.88);
    border-color: rgba(232, 217, 168, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-h);
        right: 0;
        left: auto;
        width: min(100vw - 1.5rem, 20.5rem);
        height: calc(100dvh - var(--header-h));
        max-height: calc(100vh - var(--header-h));
        margin: 0;
        padding: 1.25rem 1rem 2rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.15rem;
        background: var(--color-surface);
        border-left: 1px solid var(--color-border);
        box-shadow: -16px 0 48px rgba(18, 21, 28, 0.14);
        z-index: 1008;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0.34s step-end;
        text-align: left;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition:
            transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0s step-start;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        border-radius: var(--radius);
        font-size: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 0.75rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--color-border);
        justify-content: center;
        gap: 0.65rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tech-stack {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .education-year {
        position: static;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
    
    .education-item {
        padding-left: 0;
    }
    
    .education-timeline {
        padding-left: 0;
    }
    
    .education-timeline::before {
        display: none;
    }
    
    .education-item::before {
        display: none;
    }
    
    .value-proposition-card {
        position: static;
    }
    
    .order-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .step {
        padding: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .quote-form-section {
        padding: 1.5rem;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        min-width: 200px;
    }
    
    .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .certification-item {
        padding: 1rem;
    }
    
    .certification-content h4 {
        font-size: 1.1rem;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .award-item {
        padding: 1rem;
    }
    
    .award-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .award-item h3 {
        font-size: 1.1rem;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
    
    .logo-main {
        height: 35px;
    }
    
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .footer-logo {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-main-image {
        height: 300px;
    }
    
    .floating-elements {
        gap: 0.5rem;
    }
    
    .floating-card {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .logo-main {
        height: 30px;
    }
    
    .nav-logo h2 {
        font-size: 0.9rem;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .service-image {
        height: 150px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Portfolio Filter Animation */
.portfolio-item.hide {
    display: none;
}

.portfolio-item.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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