/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background:
        radial-gradient(circle at top left, rgba(47, 109, 229, 0.10), transparent 34%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.08), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
    font-size: 16px;
}

/* Color Variables */
:root {
    --primary-blue: #245fda;
    --primary-blue-dark: #173fa0;
    --accent-teal: #0f9d8b;
    --primary-text: #1f2937;
    --secondary-text: #5b6474;
    --light-text: #8a94a6;
    --light-bg: #f5f8ff;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --white: #ffffff;
    --border: rgba(148, 163, 184, 0.24);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; line-height: 1.05; }
h2 { font-size: 2.5rem; line-height: 1.1; }
h3 { font-size: 1.5rem; line-height: 1.15; }

p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-initials {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d7bf0 55%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(36, 95, 218, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(36, 95, 218, 0.28);
}

.btn-secondary {
    background: rgba(36, 95, 218, 0.06);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(36, 95, 218, 0.12);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.85) 0%, rgba(238, 244, 255, 0.98) 100%);
    padding: 30px 0 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 70px  auto 0 auto;
    padding: 0 24px;
}

.hero-title {
    font-size: 3.3rem;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.title-main {
    display: block;
    color: var(--primary-text);
}

.title-highlight {
    display: block;
    font-size: 2.50rem !important;
    color: transparent;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--secondary-text);
    margin-bottom: 40px;
    line-height: 1.75;
    max-width: 640px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.hero-stats-row {
    margin-top: 34px;
    position: relative;
}

.hero-stats-row .hero-stats {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(36, 95, 218, 0.14), transparent 42%),
        radial-gradient(circle at bottom left, rgba(15, 157, 139, 0.12), transparent 40%),
        rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(36, 95, 218, 0.16);
    border-radius: 18px;
    padding: 34px 22px 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
    overflow: hidden;
    isolation: isolate;
    animation: heroStatsGlow 8s ease-in-out infinite;
}

.hero-stats-row .hero-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.42) 38%, transparent 52%),
        linear-gradient(90deg, rgba(36, 95, 218, 0.08), rgba(15, 157, 139, 0.08));
    background-size: 220% 100%, 100% 100%;
    background-position: 140% 0, 0 0;
    mask: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.08));
    pointer-events: none;
    z-index: 0;
    animation: heroStatsSheen 10s ease-in-out infinite;
}

.hero-stats-row .hero-stats::after {
    content: 'Proven Delivery Metrics';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    color: var(--white);
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(36, 95, 218, 0.3);
    white-space: nowrap;
    z-index: 2;
}

.hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(36, 95, 218, 0.14);
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-stats .stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(36, 95, 218, 0.28);
    box-shadow: 0 14px 26px rgba(36, 95, 218, 0.16);
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    background: linear-gradient(180deg, rgba(36, 95, 218, 0.18), rgba(15, 157, 139, 0.14));
    border: 1px solid rgba(36, 95, 218, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    font-size: 15px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.hero-stats .stat-item:hover .stat-icon {
    transform: translateY(-2px) scale(1.06);
    color: var(--primary-blue-dark);
}

.hero-stats .stat-item:nth-child(1) .stat-icon {
    color: #1d4ed8;
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.2), rgba(59, 130, 246, 0.14));
    border-color: rgba(29, 78, 216, 0.24);
}

.hero-stats .stat-item:nth-child(2) .stat-icon {
    color: #047857;
    background: linear-gradient(180deg, rgba(4, 120, 87, 0.2), rgba(16, 185, 129, 0.14));
    border-color: rgba(4, 120, 87, 0.24);
}

.hero-stats .stat-item:nth-child(3) .stat-icon {
    color: #b45309;
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.2), rgba(245, 158, 11, 0.14));
    border-color: rgba(180, 83, 9, 0.24);
}

.hero-stats .stat-item:nth-child(4) .stat-icon {
    color: #6d28d9;
    background: linear-gradient(180deg, rgba(109, 40, 217, 0.2), rgba(139, 92, 246, 0.14));
    border-color: rgba(109, 40, 217, 0.24);
}

.hero-stats .stat-item:nth-child(1):hover .stat-icon {
    color: #1e40af;
}

.hero-stats .stat-item:nth-child(2):hover .stat-icon {
    color: #065f46;
}

.hero-stats .stat-item:nth-child(3):hover .stat-icon {
    color: #92400e;
}

.hero-stats .stat-item:nth-child(4):hover .stat-icon {
    color: #5b21b6;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 55%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 6px 18px rgba(36, 95, 218, 0.16);
}

.hero-stats .stat-item:nth-child(1) .stat-number {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 58%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}

.hero-stats .stat-item:nth-child(2) .stat-number {
    background: linear-gradient(135deg, #065f46 0%, #10b981 58%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 6px 18px rgba(16, 185, 129, 0.2);
}

.hero-stats .stat-item:nth-child(3) .stat-number {
    background: linear-gradient(135deg, #92400e 0%, #f59e0b 58%, #fcd34d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 6px 18px rgba(245, 158, 11, 0.22);
}

.hero-stats .stat-item:nth-child(4) .stat-number {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 58%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 6px 18px rgba(124, 58, 237, 0.22);
}

.stat-label {
    color: #3f4a5c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes heroStatsGlow {
    0%,
    100% {
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
    }
    50% {
        box-shadow: 0 24px 56px rgba(36, 95, 218, 0.16);
    }
}

@keyframes heroStatsSheen {
    0%,
    72% {
        background-position: 140% 0, 0 0;
    }
    88%,
    100% {
        background-position: -40% 0, 0 0;
    }
}

.hero-image {
    position: relative;
}

.hero-image-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.92) 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.hero-video-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.hero-video-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.32)); */
    transition: opacity 0.25s ease;
}

.hero-video-trigger:hover::after {
    opacity: 0.88;
}

.workspace-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.hero-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
    z-index: 2;
    transition: transform 0.25s ease;
}

.hero-video-trigger:hover .hero-video-play {
    transform: translate(-50%, -50%) scale(1.06);
}

.availability-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 12px 16px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 3000;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    width: min(980px, 100%);
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.video-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}

.video-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-fallback-link {
    display: inline-flex;
    margin-top: 12px;
    color: #ffffff;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 600;
}

/* About Section */
.about {
    background: var(--surface);
    padding: 112px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 72px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--secondary-text);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

section[id] {
    opacity: 1;
    transform: none;
}

section[id].is-visible {
    opacity: 1;
    transform: translateY(0);
}

section#home {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    section[id] {
        opacity: 1;
        transform: none;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-photo {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-availability-badge {
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid rgba(62, 123, 233, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
}

.about-badge-line {
    margin: 0;
    color: var(--primary-text);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.about-badge-line + .about-badge-line {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary-text);
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 16px;
    color: var(--secondary-text);
    margin-bottom: 24px;
    line-height: 1.75;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 40px 0;
    align-items: stretch;
}

.skill-card {
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 251, 255, 0.96) 100%);
    border: 1px solid rgba(62, 123, 233, 0.12);
    border-radius: 18px;
    padding: 20px 20px 18px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(62, 123, 233, 0.22);
}

.skill-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.skill-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.skill-card-count {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary-text);
    flex-shrink: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--light-bg);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid rgba(62, 123, 233, 0.1);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: rgba(62, 123, 233, 0.22);
    box-shadow: 0 8px 20px rgba(62, 123, 233, 0.12);
}

.skill-tag-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: currentColor;
}

.skill-icon-sprite {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-blue);
    color: white;
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(180deg, rgba(245, 248, 255, 0.96) 0%, rgba(239, 244, 255, 1) 100%);
    padding: 112px 0;
}

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

.portfolio-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-status {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a 0%, #0f7d3a 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}

.portfolio-status.in-progress {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 12px;
}

.project-role {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}

.portfolio-content p {
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: 16px;
    line-height: 1.7;
}

.project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.project-stats .tech-tag {
    background: linear-gradient(135deg, #2f6de5 0%, #4f87f0 100%);
    border: 1px solid rgba(47, 109, 229, 0.45);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(47, 109, 229, 0.2);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-top: 10px;
    border-top: 1px dashed rgba(62, 123, 233, 0.2);
}

.tech-tag {
    background: #f6f8fc;
    color: #4a5a74;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.portfolio-item:hover .tech-tag {
    transform: translateY(-1px);
    border-color: rgba(62, 123, 233, 0.28);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.08);
}

.portfolio-item:hover .project-stats .tech-tag {
    background: linear-gradient(135deg, #3d78eb 0%, #5a90f3 100%);
    border-color: rgba(61, 120, 235, 0.7);
    box-shadow: 0 12px 24px rgba(47, 109, 229, 0.28);
}

.view-project {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-all-projects {
    text-align: center;
}

/* Services Section */
.services {
    background: var(--surface);
    padding: 112px 0;
}

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

.service-item {
    text-align: center;
    padding: 40px 24px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
    color: white;
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 16px;
}

.service-item p {
    font-size: 16px;
    color: var(--secondary-text);
    margin-bottom: 24px;
    line-height: 1.75;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 8px 0;
    color: var(--secondary-text);
    font-size: 14px;
    position: relative;
    padding-left: 24px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.service-item:nth-child(1) {
    --service-accent: #2f6de5;
    --service-accent-soft: rgba(47, 109, 229, 0.08);
    --service-border: rgba(47, 109, 229, 0.24);
    --service-border-soft: rgba(47, 109, 229, 0.16);
}

.service-item:nth-child(2) {
    --service-accent: #3367d6;
    --service-accent-soft: rgba(51, 103, 214, 0.08);
    --service-border: rgba(51, 103, 214, 0.24);
    --service-border-soft: rgba(51, 103, 214, 0.16);
}

.service-item:nth-child(3) {
    --service-accent: #235fbf;
    --service-accent-soft: rgba(35, 95, 191, 0.08);
    --service-border: rgba(35, 95, 191, 0.24);
    --service-border-soft: rgba(35, 95, 191, 0.16);
}

.service-item:nth-child(4) {
    --service-accent: #2e57a7;
    --service-accent-soft: rgba(46, 87, 167, 0.08);
    --service-border: rgba(46, 87, 167, 0.24);
    --service-border-soft: rgba(46, 87, 167, 0.16);
}

.service-item:nth-child(5) {
    --service-accent: #3a5f9b;
    --service-accent-soft: rgba(58, 95, 155, 0.08);
    --service-border: rgba(58, 95, 155, 0.24);
    --service-border-soft: rgba(58, 95, 155, 0.16);
}

.service-item:nth-child(6) {
    --service-accent: #285ea8;
    --service-accent-soft: rgba(40, 94, 168, 0.08);
    --service-border: rgba(40, 94, 168, 0.24);
    --service-border-soft: rgba(40, 94, 168, 0.16);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.88) 0%, rgba(240, 245, 255, 1) 100%);
    padding: 112px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.95) 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--secondary-text);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-toggle {
    background: transparent;
    border: 0;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: -16px;
    margin-bottom: 20px;
    padding: 0;
}

.testimonial-toggle:hover {
    text-decoration: underline;
}

.testimonial-author {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.testimonial-source-links {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.testimonial-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.testimonial-source-link:hover {
    transform: translateY(-1px);
    border-color: var(--primary-blue);
}

.testimonial-item:hover,
.portfolio-item:hover,
.skill-card:hover {
    border-color: rgba(36, 95, 218, 0.24);
}

.testimonials-carousel-controls {
    display: none;
}

.testimonials-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.testimonials-carousel-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.testimonials-carousel-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 4px;
}

.author-info span {
    font-size: 14px;
    color: var(--secondary-text);
}

/* Contact Section */
.contact {
    background: var(--white);
    padding: 112px 0;
}

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

.contact-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 24px;
}

.contact-content p {
    font-size: 18px;
    color: var(--secondary-text);
    margin-bottom: 40px;
    line-height: 1.75;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

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

.contact-detail i {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.contact-detail h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.contact-detail p {
    font-size: 14px;
    color: var(--secondary-text);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--primary-text);
    color: white;
    text-align: center;
    padding: 5px 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    section#portfolio {
        opacity: 1;
        transform: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 12px 24px;
    }

    .nav-link:hover {
        background: #f3f6fc;
    }

    .nav-cta {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.08;
    }

    .hero-image-card {
        padding: 22px;
    }

    .hero-video-play {
        width: 62px;
        height: 62px;
        font-size: 20px;
    }

    .video-modal {
        padding: 14px;
    }

    .video-modal-close {
        top: -38px;
        font-size: 22px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .hero-stats-row {
        margin-top: 20px;
    }

    .hero-stats-row .hero-stats {
        padding: 30px 14px 14px;
    }

    .hero-stats-row .hero-stats::after {
        top: 12px;
        font-size: 10px;
        padding: 6px 12px;
    }

    .hero-stats .stat-item {
        padding: 14px 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .about,
    .portfolio,
    .services,
    .testimonials,
    .contact {
        padding: 88px 0;
    }

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

    .about-availability-badge {
        max-width: 360px;
        margin: 14px auto 0;
        text-align: left;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 4px 6px 16px;
        margin: 0 -6px;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-item {
        flex: 0 0 calc(100% - 12px);
        min-width: calc(100% - 12px);
        scroll-snap-align: start;
        text-align: left;
        padding: 30px 24px;
    }

    .testimonials-carousel-controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 12px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .hero-stats-row .hero-stats {
        border-radius: 16px;
    }

    .hero-stats-row .hero-stats::after {
        top: 11px;
        transform: translateX(-50%) scale(0.95);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

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

    .skill-card {
        padding: 18px;
    }
}