/* 
  Codex Paragon Stylesheet 
  Colors: Navy Blue (#1b365d), Gold/Mustard (#d1a14a), Light Gray (#f4f5f7)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #1b365d;
    --secondary-color: #d1a14a;
    --bg-color: #f4f5f7;
    --text-color: #333333;
    --white: #ffffff;
    --light-grey: #e2e4e8;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    /* Surface & Theme */
    --surface-bg: rgba(255, 255, 255, 0.03);
    --surface-bg-hover: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.05);
    --surface-radius: 8px;
    --focus-outline: 2px solid var(--secondary-color);
}

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

*:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    background: linear-gradient(135deg, #0b1528 0%, #1b365d 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

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

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

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

/* --- Layout Utilities --- */
.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

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

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

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.gap-3 {
    gap: 3rem;
}

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

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

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

.button-primary:hover {
    background-color: #122540;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.button-secondary:hover {
    background-color: #b5893d;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.button-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Navigation --- */
header {
    background: rgba(11, 21, 40, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--secondary-color);
}

.navigation-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navigation-links a {
    color: var(--white);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

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

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

.locale-selector {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: transparent;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.locale-selector option {
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    padding: 40px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    padding-right: 40px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.hero-quote-container {
    margin-bottom: 40px;
    padding: 15px 20px;
    background: var(--surface-bg);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

.hero-quote {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    display: block;
    margin-bottom: 10px;
}

.hero-quote-author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .button {
        text-align: center;
        width: 100%;
    }

    .hero-quote-container {
        padding: 10px 15px;
        margin-bottom: 30px;
    }

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

    .hero-quote-author {
        font-size: 0.75rem;
    }
}

.hero-shape {
    position: absolute;
    right: -100px;
    top: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(209, 161, 74, 0.15) 0%, rgba(209, 161, 74, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* --- Expertise Stats Section --- */
.expertise-stats-section {
    padding: 60px 0 40px 0;
    text-align: center;
}

.expertise-stats-title {
    opacity: 0.8;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: var(--white);
    font-weight: 600;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--surface-bg-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(209, 161, 74, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(209, 161, 74, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Client References --- */
.references-container {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--surface-border);
}

.references-mention {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.references-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    display: flex;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
    animation: scrollMarquee 30s linear infinite;
    flex-shrink: 0;
}

.references-marquee:hover .marquee-group {
    animation-play-state: paused;
}

.ref-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    cursor: default;
    user-select: none;
    white-space: nowrap;
}

.ref-logo:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Cards (Generic) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.card {
    background: var(--surface-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    padding: 30px 20px;
    border-radius: var(--surface-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    animation: cardAppear 0.6s cubic-bezier(0.25, 1, 0.5, 1) backwards;
    position: relative;
    overflow: hidden;
}

.discount-ribbon {
    position: absolute;
    top: 20px;
    right: -40px;
    width: 160px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 0;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    text-align: center;
    letter-spacing: 1px;
}

.discount-label {
    display: inline-block;
    margin: 5px auto 15px auto;
    padding: 4px 12px;
    background-color: rgba(209, 161, 74, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(209, 161, 74, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: center;
    text-align: center;
}

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

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

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

.card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--secondary-color);
    background: var(--surface-bg-hover);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--white);
}

.card p {
    color: rgba(255, 255, 255, 0.7);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card-link {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.card-link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.card:hover .card-link::after {
    transform: translateX(5px);
    color: var(--white);
}

/* --- Service Detail Pages --- */
.service-detail-card {
    background-color: var(--surface-bg-hover);
    border: 1px solid var(--surface-border);
    padding: 50px;
    border-radius: var(--surface-radius);
    box-shadow: var(--shadow-sm);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.service-detail-title {
    color: var(--white);
}

.service-detail-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Sections --- */
.section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* --- Footer --- */
footer {
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px 0;
    margin-top: auto;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-category-title {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1em;
}

.skill-category-list {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    line-height: 1.5;
}

.skill-highlight {
    font-weight: bold;
    color: var(--white);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .navigation-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 21, 40, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        text-align: center;
    }

    .navigation-links.active {
        display: flex;
    }

    .hero-content {
        padding-right: 0;
    }

    .mobile-menu-button {
        display: block;
    }

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

    .logo-container img {
        height: 40px !important;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-container {
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .logo-container img {
        height: 32px !important;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

/* --- Global Components --- */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* --- Hero Index --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-image {
    max-width: 500px;
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    animation: heroImageFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) backwards;
}

@keyframes heroImageFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-top: 40px;
    }
}

/* --- About Page --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 20px 0 60px 0;
}

.company-info-title {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.8rem;
}

.company-info-list {
    list-style: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 2;
}

.map-mock {
    width: 100%;
    height: 350px;
    background-color: var(--light-grey);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-mock img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resume-section {
    background: rgba(11, 21, 40, 0.5);
    padding: 50px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.resume-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.resume-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid var(--white);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-desc {
    color: rgba(255, 255, 255, 0.7);
}

.skills-container {
    margin-top: 40px;
    background-color: var(--surface-bg-hover);
    padding: 30px;
    border-radius: var(--surface-radius);
}

@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .resume-header {
        flex-direction: column;
        text-align: center;
    }

    .timeline {
        padding-left: 20px;
        margin-left: 10px;
    }

    .timeline-item::before {
        left: -29px;
    }
}

/* --- SICP Inspiration Section --- */
.sicp-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.sicp-image {
    width: 100%;
    max-width: 170px;
    height: auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.sicp-content {
    flex: 1 1 300px;
    text-align: left;
}

.sicp-title {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.sicp-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

.sicp-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.sicp-link:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .sicp-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .sicp-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .sicp-content {
        text-align: center;
        padding: 0 15px;
    }

    .sicp-text {
        text-align: left;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px 15px 40px 15px;
    }

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

    .company-info-list {
        text-align: left;
        display: inline-block;
    }
}

/* --- Contact Page --- */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;

    /* Applying service-detail-card theme */
    background-color: var(--surface-bg-hover);
    border: 1px solid var(--surface-border);
    padding: 50px;
    border-radius: var(--surface-radius);
    box-shadow: var(--shadow-sm);

    margin-top: 20px;
    position: relative;
    z-index: 10;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    background: #ffffff;
    color: #333333;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(209, 161, 74, 0.2);
}

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

#form-success-msg {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* --- Pricing Page --- */
.pricing-card {
    text-align: center;
    border: 1px solid var(--surface-border);
    background-color: var(--surface-bg);
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--surface-radius);
}

.pricing-card:hover {
    background-color: var(--surface-bg-hover);
}

.pricing-card h3 {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin: 15px 0;
    white-space: nowrap;
}

.pricing-details {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    animation: fadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.pricing-card.active .pricing-details {
    display: block;
}

.original-price-strike {
    display: block;
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: -24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.click-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    font-style: italic;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    position: relative;
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
    }
}