/* =========================================
   CSS Reset & Variables
========================================= */
:root {
    --primary-color: #06327d;
    --primary-hover: #04245c;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --bg-main: #FFFFFF;
    --bg-section: #F8F9FA;
    --border-color: #EAEAEA;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 8%;
}

/* Typography Utility */
.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.mt-4 {
    margin-top: 2rem;
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFF;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(6, 50, 125, 0.2);
}

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

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--text-main);
    color: #FFF;
    transform: translateY(-3px);
}

/* =========================================
   Navbar
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.25rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo .dot {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: #FFF;
    z-index: 999;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    padding: 180px 8% 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.social-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-sidebar span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.social-line {
    width: 1px;
    height: 80px;
    background-color: var(--border-color);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4rem;
}

.hero-text-wrapper {
    flex: 1;
}

.greeting {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--primary-color);
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-img {
    width: 80%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.hero-badge {
    position: absolute;
    bottom: 40px;
    left: 20px;
    background: #FFF;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    width: 50px;
    height: 50px;
    background-color: #FEF3C7;
    color: #F59E0B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-text strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 800;
}

.badge-text span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =========================================
   Stats Section
========================================= */
.stats-section {
    background-color: #FFF;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================
   About Section
========================================= */
.about {
    padding: 120px 0;
    background-color: #FFF;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.experience-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-color);
    color: #FFF;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 20px 40px rgba(6, 50, 125, 0.2);
}

.exp-year {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.exp-text {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.about-content {
    flex: 1;
}

.about-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-section);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
}

/* =========================================
   Services Section
========================================= */
.services {
    padding: 120px 0;
    background-color: var(--bg-section);
}

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

.service-card {
    background-color: #FFF;
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover,
.service-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--border-color);
    position: absolute;
    top: 2rem;
    right: 3rem;
    transition: var(--transition);
}

.service-card:hover .service-number,
.service-card.active .service-number {
    color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-section);
    color: var(--text-main);
    font-size: 1.25rem;
}

.service-card:hover .service-link,
.service-card.active .service-link {
    background-color: var(--primary-color);
    color: #FFF;
}

/* =========================================
   Portfolio Section
========================================= */
.portfolio {
    padding: 120px 0;
    background-color: #FFF;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

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

.portfolio-item {
    group: item;
}

.portfolio-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.portfolio-img-wrapper img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 50, 125, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.portfolio-link {
    width: 80px;
    height: 80px;
    background-color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-link {
    transform: translateY(0);
}

.portfolio-category {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: var(--primary-color);
}

/* =========================================
   Testimonials Section
========================================= */
.testimonials {
    padding: 120px 0;
    background-color: var(--bg-section);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: #FFF;
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: #FFF;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: #FFF;
    border-color: var(--primary-color);
}

/* =========================================
   Footer Section
========================================= */
.footer {
    background-color: var(--text-main);
    color: #FFF;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.cta-box {
    background-color: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 5rem;
    text-align: center;
    max-width: 1280px;
    margin: -160px auto 100px;
    position: relative;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(6, 50, 125, 0.3);
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #FFF;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 8%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4rem;
}

.footer-brand .logo {
    color: #FFF;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.link-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    font-weight: 500;
}

.link-col a:hover {
    color: #FFF;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    position: relative;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    z-index: 2;
}

.footer-big-text {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .about-container {
        flex-direction: column;
        gap: 4rem;
    }

    .experience-card {
        right: 0;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 120px 8% 60px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .social-sidebar {
        display: none;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .stats-container {
        justify-content: center;
    }

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

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

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .cta-box {
        padding: 3rem 2rem;
        margin: -80px auto 60px;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-badge {
        bottom: 20px;
        left: 10px;
        right: 10px;
        padding: 1rem;
        justify-content: center;
    }

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

    .stat-item {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .experience-card {
        padding: 1.5rem;
        bottom: -20px;
        right: 0;
        left: 0;
        margin: 0 auto;
        width: 90%;
    }

    .exp-year {
        font-size: 3rem;
    }

    .service-card {
        padding: 2rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1.125rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =========================================
   Scroll Animations
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-scale {
    transform: scale(0.9);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }