/* ============================================
   Fries Media - Portfolio Website
   ============================================ */

:root {
    --color-primary: #1D3557;
    --color-secondary: #778DA9;
    --color-accent: #C5E0E2;
    --color-gray: #A6A6A6;
    --color-white: #FFFFFF;
    --color-off-white: #F8F9FA;
    --color-text: #2D2D2D;
    --color-text-light: #6B6B6B;

    --font-heading: 'League Spartan', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;

    --container-width: 1200px;
    --section-padding: 140px;
    --section-padding-mobile: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
}

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

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

.nav-logo img {
    height: 150px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-medium);
}

.nav.scrolled .nav-logo img {
    filter: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.nav.scrolled .nav-links a {
    color: var(--color-primary);
}

.nav-links a:not(.nav-cta):hover {
    opacity: 0.7;
}

.nav-cta {
    padding: 12px 24px;
    background: var(--color-accent);
    color: var(--color-primary) !important;
    border-radius: 100px;
}

.nav-cta:hover {
    background: var(--color-white);
    opacity: 1 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.nav.scrolled .nav-toggle span {
    background: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-menu-links a {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

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

.btn-accent:hover {
    background: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    background: var(--color-primary);
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(29, 53, 87, 0.3) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line:last-child .word {
    color: var(--color-accent);
}

.hero-title .word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) .word { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) .word { animation-delay: 0.35s; }

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

.hero-subtitle {
    font-size: 20px;
    color: var(--color-accent);
    max-width: 520px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

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

.hero .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.8s forwards;
    background: var(--color-accent);
    color: var(--color-primary);
}

.hero .btn:hover {
    background: var(--color-white);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.8s ease 1s forwards;
    z-index: 3;
}

.hero-scroll span {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-secondary) 0%, transparent 100%);
    position: relative;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--color-accent);
    animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
    0% { top: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ============================================
   Section Styles
   ============================================ */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

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

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-intro {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Intro Section
   ============================================ */
.intro {
    padding: var(--section-padding) 0;
    background: var(--color-primary);
}

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

.intro-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.3;
}

.intro .section-intro {
    color: var(--color-secondary);
    margin-bottom: 32px;
}

.intro-text {
    font-size: 18px;
    color: var(--color-accent);
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 40px;
}

.intro .btn-accent {
    background: var(--color-accent);
    color: var(--color-primary);
}

.intro .btn-accent:hover {
    background: var(--color-white);
}

/* ============================================
   Future Section
   ============================================ */
.future {
    padding: var(--section-padding) 0;
    background: var(--color-off-white);
    position: relative;
    overflow: hidden;
}

.future-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.future-content {
    max-width: 100%;
}

.future .section-title {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.future .section-intro {
    text-align: left;
    margin: 0 0 32px 0;
}

.future-content p:not(.section-intro) {
    font-size: 17px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.future .btn {
    margin-top: 24px;
}

/* Future Illustration */
.future-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.illustration-wrapper {
    position: relative;
    width: 320px;
    height: 400px;
}

.illustration-rocket {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 160px;
    color: var(--color-primary);
    animation: rocketFloat 4s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
}

.illustration-chart {
    position: absolute;
    bottom: 40px;
    left: 20px;
    width: 80px;
    height: 60px;
    color: var(--color-secondary);
    opacity: 0.6;
    animation: chartPulse 3s ease-in-out infinite;
}

@keyframes chartPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Orbits */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(29, 53, 87, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation: orbitRotate 20s linear infinite;
}

.orbit-2 {
    width: 280px;
    height: 280px;
    animation: orbitRotate 30s linear infinite reverse;
}

.orbit-3 {
    width: 360px;
    height: 360px;
    animation: orbitRotate 40s linear infinite;
}

@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.orbit-2 .orbit-dot {
    background: var(--color-secondary);
    width: 6px;
    height: 6px;
}

.orbit-3 .orbit-dot {
    background: var(--color-primary);
    width: 10px;
    height: 10px;
    opacity: 0.3;
}

/* Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.2;
}

.particle-1 {
    top: 20%;
    right: 10%;
    animation: particleFloat 5s ease-in-out infinite;
}

.particle-2 {
    top: 70%;
    right: 20%;
    animation: particleFloat 6s ease-in-out infinite 1s;
}

.particle-3 {
    top: 30%;
    left: 10%;
    animation: particleFloat 7s ease-in-out infinite 2s;
}

.particle-4 {
    bottom: 20%;
    left: 15%;
    animation: particleFloat 4s ease-in-out infinite 0.5s;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 0.4; }
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    background: var(--color-off-white);
    border-radius: 16px;
    transition: all var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(29, 53, 87, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

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

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

.services-cta {
    text-align: center;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(29, 53, 87, 0.1);
}

.services-cta p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* ============================================
   Process Section
   ============================================ */
.process {
    padding: var(--section-padding) 0;
    background: var(--color-primary);
}

.process .section-label {
    color: var(--color-accent);
}

.process .section-title {
    color: var(--color-white);
}

.process .section-intro {
    color: var(--color-accent);
    opacity: 0.9;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 80px;
}

.process-step {
    display: flex;
    gap: 32px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    opacity: 0.5;
}

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

.step-content p {
    color: var(--color-accent);
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
}

/* Process Feature Card */
.process-feature {
    margin-top: 80px;
    padding: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(197, 224, 226, 0.2);
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.process-feature-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    color: var(--color-accent);
}

.process-feature-icon svg {
    width: 100%;
    height: 100%;
}

.process-feature-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.process-feature-content p {
    color: var(--color-accent);
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
}

.process-cta {
    text-align: center;
    margin-top: 60px;
}

.process .btn-accent {
    background: var(--color-accent);
    color: var(--color-primary);
}

.process .btn-accent:hover {
    background: var(--color-white);
}

/* ============================================
   Contact Section (merged with Team)
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    background: var(--color-off-white);
}

.contact .section-title {
    color: var(--color-primary);
}

.contact .section-intro {
    margin-bottom: 0;
}

.contact-main {
    margin-top: 60px;
}

.contact-team {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
}

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

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: var(--color-white);
}

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

.team-member h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.team-member p {
    font-size: 14px;
    color: var(--color-text-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(29, 53, 87, 0.1);
}

.contact-text {
    font-size: 17px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-link-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
}

.contact-link-value {
    font-size: 18px;
    color: var(--color-primary);
    line-height: 1.4;
}

a.contact-link:hover .contact-link-value {
    color: var(--color-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 16px;
    padding: 14px 18px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background: var(--color-white);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 60px 0;
    background: var(--color-primary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-accent);
}

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

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-legal a:hover {
    color: var(--color-accent);
}

.footer-copy p {
    font-size: 13px;
    color: var(--color-secondary);
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
    padding: 180px 0 var(--section-padding);
    background: var(--color-off-white);
    min-height: 100vh;
}

.legal-page .nav-logo img {
    filter: none;
}

.legal-page .nav-links a {
    color: var(--color-primary);
}

.legal-page .nav-toggle span {
    background: var(--color-primary);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--color-text-light);
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-secondary);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-grid {
        gap: 40px;
    }

    .future-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .future-illustration {
        order: -1;
    }

    .illustration-wrapper {
        width: 280px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(3px, 3px);
    }

    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(3px, -3px);
    }

    .nav-logo img {
        height: 100px;
    }

    .hero {
        padding: 140px 24px 60px;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 56px);
    }

    .hero-scroll {
        bottom: 24px;
    }

    .future-content {
        max-width: 100%;
    }

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

    .process-step {
        flex-direction: column;
        gap: 16px;
    }

    .step-number {
        font-size: 48px;
    }

    .process-feature {
        flex-direction: column;
        padding: 32px;
        gap: 24px;
    }

    .process-feature-icon {
        width: 48px;
        height: 48px;
    }

    .contact-team {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 32px;
    }

    .legal-page {
        padding-top: 140px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .intro-title {
        font-size: 26px;
    }

    .illustration-wrapper {
        width: 240px;
        height: 300px;
    }

    .orbit-3 {
        display: none;
    }
}
