/* ===== penclo.com - Dark Neomorphism Design ===== */

/* --- CSS Custom Properties --- */
:root {
    --deep-navy: #1a1a2e;
    --card-surface: #16213e;
    --mid-depth: #0f3460;
    --hot-coral: #e94560;
    --electric-cyan: #00d4ff;
    --violet-tint: #7b2d8b;
    --primary-text: #f5f5f5;
    --secondary-text: #8892a4;
    --dark-shadow: #0d0d1a;
    --light-shadow: #272740;
    --font-heading: 'Inter', 'Futura', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

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

body {
    background-color: var(--deep-navy);
    color: var(--primary-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Sticky Neomorphic Nav Pill --- */
#nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--deep-navy);
    border-radius: 50px;
    box-shadow: 6px 6px 12px var(--dark-shadow), -6px -6px 12px var(--light-shadow);
    padding: 12px 32px;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

#nav-pill:hover {
    box-shadow: 8px 8px 16px var(--dark-shadow), -8px -8px 16px var(--light-shadow);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: var(--hot-coral);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-text);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hot-coral);
    transition: width 0.3s ease;
}

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

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

/* --- Parallax Mountain Background --- */
#parallax-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    z-index: 0;
    pointer-events: none;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

.mountain-layer svg {
    display: block;
    width: 100%;
    height: 400px;
}

#mountain-back {
    z-index: 1;
    opacity: 0.5;
}

#mountain-mid {
    z-index: 2;
    opacity: 0.7;
}

#mountain-front {
    z-index: 3;
    opacity: 0.9;
}

/* --- Parallax Sections --- */
.parallax-section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--hot-coral);
    margin: 16px auto 0;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    font-size: 5rem;
    letter-spacing: 12px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.2s; }
.hero-line:nth-child(2) { animation-delay: 0.5s; }
.hero-line:nth-child(3) { animation-delay: 0.8s; }

.hero-line.accent {
    color: var(--hot-coral);
    font-size: 6rem;
}

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

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 500px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: heroFadeIn 0.8s ease 1.1s forwards;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: heroFadeIn 0.8s ease 1.4s forwards;
}

/* --- Hero Morph Shape --- */
.hero-morph-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(233,69,96,0.08), rgba(0,212,255,0.06));
    clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);
    animation: morphRotate 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes morphRotate {
    0% {
        clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);
    }
    25% {
        clip-path: polygon(50% 5%, 75% 15%, 95% 40%, 95% 65%, 75% 85%, 50% 95%, 25% 85%, 5% 65%, 5% 40%, 25% 15%);
    }
    50% {
        clip-path: polygon(50% 2%, 85% 12%, 98% 38%, 98% 72%, 85% 92%, 50% 98%, 15% 92%, 2% 72%, 2% 38%, 15% 12%);
    }
    75% {
        clip-path: polygon(50% 8%, 78% 8%, 92% 32%, 92% 68%, 78% 88%, 50% 92%, 22% 88%, 8% 68%, 8% 32%, 22% 8%);
    }
    100% {
        clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);
    }
}

/* --- Neomorphic Buttons --- */
.btn-neomorph {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--deep-navy);
    color: var(--hot-coral);
    box-shadow: 6px 6px 12px var(--dark-shadow), -6px -6px 12px var(--light-shadow);
}

.btn-primary:hover {
    box-shadow: inset 4px 4px 8px var(--dark-shadow), inset -4px -4px 8px var(--light-shadow);
    color: var(--electric-cyan);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-text);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
    border-color: var(--hot-coral);
    color: var(--hot-coral);
}

/* --- Glassmorphic Cards --- */
.glass-card {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 36px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(233, 69, 96, 0.3);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.card-icon {
    margin-bottom: 20px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--primary-text);
}

.card-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.7;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
}

.service-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(233, 69, 96, 0.15);
    position: absolute;
    top: 20px;
    right: 24px;
    line-height: 1;
}

.service-accent-bar {
    width: 40px;
    height: 3px;
    background: var(--hot-coral);
    margin-top: 20px;
    transition: width 0.4s ease;
}

.service-card:hover .service-accent-bar {
    width: 80px;
    background: var(--electric-cyan);
}

/* --- Morph Cards (clip-path) --- */
.morph-card {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transition: clip-path 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease;
}

.morph-card:hover {
    clip-path: polygon(2% 2%, 98% 0%, 100% 98%, 0% 96%);
}

/* --- Work Section --- */
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.work-card-large {
    grid-column: 1 / -1;
}

.work-card-inner {
    display: flex;
    flex-direction: column;
}

.work-visual {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.work-card-large .work-visual {
    height: 320px;
}

.work-visual svg {
    width: 100%;
    height: 100%;
}

.work-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--electric-cyan);
    margin-bottom: 8px;
    display: block;
}

.work-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--primary-text);
}

.work-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.work-info {
    padding: 0 4px;
}

/* --- Stats Section --- */
#stats {
    min-height: auto;
    padding: 80px 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 40px 20px;
    background: var(--deep-navy);
    border-radius: 16px;
    box-shadow: 6px 6px 12px var(--dark-shadow), -6px -6px 12px var(--light-shadow);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--hot-coral);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-text);
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-card {
    padding: 40px;
}

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

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 8px;
}

.neomorph-input {
    width: 100%;
    padding: 14px 20px;
    background: var(--deep-navy);
    border: none;
    border-radius: 12px;
    box-shadow: inset 4px 4px 8px var(--dark-shadow), inset -4px -4px 8px var(--light-shadow);
    color: var(--primary-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: box-shadow 0.3s ease;
    outline: none;
}

.neomorph-input::placeholder {
    color: rgba(136, 146, 164, 0.5);
}

.neomorph-input:focus {
    box-shadow: inset 4px 4px 8px var(--dark-shadow), inset -4px -4px 8px var(--light-shadow), 0 0 0 2px var(--hot-coral);
}

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

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

.contact-info {
    padding-top: 20px;
}

.contact-detail {
    margin-bottom: 32px;
}

.contact-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 6px;
}

.contact-value {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--primary-text);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.social-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--secondary-text);
    transition: color 0.3s ease;
    position: relative;
}

.social-link:hover {
    color: var(--electric-cyan);
}

/* --- Footer --- */
#footer {
    position: relative;
    z-index: 10;
    padding: 30px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--hot-coral);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary-text);
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .hero-line.accent {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    #nav-pill {
        padding: 12px 24px;
    }

    .parallax-section {
        padding: 100px 20px;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .hero-line {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }

    .hero-line.accent {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .glass-card {
        padding: 24px;
    }
}
