/* ========================================
   BEREN SOFTWARE - Apple-Style WAUW Design
   ======================================== */

/* CSS Variables */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-300: #d2d2d7;
    --gray-400: #86868b;
    --gray-500: #6e6e73;
    --gray-600: #424245;
    --gray-700: #323235;
    --gray-800: #1d1d1f;
    --gray-900: #0a0a0a;

    --blue: #2997ff;
    --purple: #bf5af2;
    --pink: #ff375f;
    --green: #30d158;

    --bg-primary: var(--black);
    --bg-secondary: var(--gray-900);
    --text-primary: var(--white);
    --text-secondary: var(--gray-400);
    --text-tertiary: var(--gray-500);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION - Glass Morphism
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

/* ========================================
   HERO - Full Screen with Animations
   ======================================== */
.hero-new {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Animated gradient orbs */
.hero-new::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.3) 0%, transparent 70%);
    top: -20%;
    left: -20%;
    animation: float1 20s ease-in-out infinite;
    filter: blur(60px);
}

.hero-new::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.25) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation: float2 25s ease-in-out infinite;
    filter: blur(60px);
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, 40px) scale(1.05); }
    66% { transform: translate(60px, -60px) scale(0.95); }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-content-centered {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

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

.hero-title {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.3em;
    white-space: nowrap;
}

.hero-title-beren {
    color: var(--text-primary);
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
}

.hero-title-software {
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(41, 151, 255, 0.4));
}

.hero-title-software::after {
    content: 'Software';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
    filter: blur(30px);
    opacity: 0.6;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.7s;
}

/* Scroll indicator */
.hero-new .scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: heroFadeIn 1s ease forwards;
    animation-delay: 1.2s;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-tertiary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.5; height: 60px; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow:
        0 10px 30px rgba(255, 255, 255, 0.2),
        0 20px 50px rgba(41, 151, 255, 0.3),
        0 0 60px rgba(41, 151, 255, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
    transform: scale(1.05) translateY(-2px);
    box-shadow:
        0 10px 30px rgba(255, 255, 255, 0.1),
        0 20px 40px rgba(191, 90, 242, 0.2);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero-new {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 11vw, 5rem);
        gap: 0.2em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   DESIGN PAGE GALLERY
   ======================================== */
.design-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
}

.design-header {
    text-align: center;
    margin-bottom: 4rem;
}

.design-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(191, 90, 242, 0.15);
    color: var(--purple);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.design-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.design-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vmin;
    max-height: 90vmin;
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--white);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .design-page {
        padding: 6rem 1.5rem 4rem;
    }

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

    .gallery-item {
        border-radius: 12px;
    }
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
}

.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.legal-page .last-updated {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.legal-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-page p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-page ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page li {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: var(--blue);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
}

.contact-page h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.contact-page .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.submit-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--text-primary);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 1rem;
}

.form-note a {
    color: var(--blue);
    text-decoration: none;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.error-message {
    background: rgba(255, 55, 95, 0.1);
    border: 1px solid rgba(255, 55, 95, 0.2);
    color: var(--pink);
    padding: 1rem;
    border-radius: 12px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-message .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.success-message h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.success-message a {
    color: var(--blue);
    text-decoration: none;
}

/* ========================================
   PORTFOLIO GRID - Premium Cards
   ======================================== */
.portfolio-section {
    padding: 8rem 2rem 10rem;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Ambient background glow */
.portfolio-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.portfolio-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.06) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-section.visible .portfolio-header {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-tag {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.15), rgba(191, 90, 242, 0.15));
    color: var(--blue);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(41, 151, 255, 0.2);
}

.portfolio-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.portfolio-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* ========================================
   PORTFOLIO CARD - Glass Morphism Design
   ======================================== */
.portfolio-card {
    position: relative;
    border-radius: 32px;
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation delays */
.portfolio-card:nth-child(1) { transition-delay: 0.1s; }
.portfolio-card:nth-child(2) { transition-delay: 0.2s; }
.portfolio-card:nth-child(3) { transition-delay: 0.3s; }
.portfolio-card:nth-child(4) { transition-delay: 0.4s; }

/* Animated gradient border */
.portfolio-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(41, 151, 255, 0.5),
        rgba(191, 90, 242, 0.5),
        rgba(255, 55, 95, 0.5),
        rgba(191, 90, 242, 0.5),
        rgba(41, 151, 255, 0.5)
    );
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    animation: gradientBorder 8s ease infinite;
}

@keyframes gradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.portfolio-card:hover .portfolio-card-glow {
    opacity: 1;
}

/* Outer glow effect */
.portfolio-card::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 48px;
    background: radial-gradient(
        ellipse at center,
        rgba(41, 151, 255, 0.15) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    filter: blur(20px);
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.portfolio-card.visible:hover {
    transform: translateY(-12px) scale(1.02);
}

.portfolio-card:hover .portfolio-card-inner {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 120px rgba(41, 151, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Card Image - Large & Immersive */
.portfolio-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.08);
}

/* Image overlay with gradient */
.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

/* Shine effect on hover */
.portfolio-card-image::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(25deg);
    transition: all 0.8s ease;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-card-image::after {
    left: 150%;
}

/* Card Content */
.portfolio-card-content {
    padding: 2rem 2.25rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Decorative line */
.portfolio-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2.25rem;
    right: 2.25rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent
    );
}

.portfolio-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue);
    margin-bottom: 1rem;
}

.portfolio-card-category::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--blue);
}

.portfolio-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.portfolio-card-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.portfolio-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: fit-content;
}

.portfolio-card-link:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(41, 151, 255, 0.3);
}

.portfolio-card-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-link:hover svg {
    transform: translateX(4px);
}

/* Card links container */
.portfolio-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.portfolio-card-links .portfolio-card-link {
    margin-top: 0;
}

/* App Store badge */
.portfolio-card-appstore {
    display: inline-flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-appstore img {
    height: 44px;
    width: auto;
}

.portfolio-card-appstore:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Featured card special styling */
.portfolio-card.card-featured .portfolio-card-inner {
    background: linear-gradient(
        165deg,
        rgba(41, 151, 255, 0.12) 0%,
        rgba(191, 90, 242, 0.08) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
}

.portfolio-card.card-featured .portfolio-card-category::before {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 0 16px var(--purple);
}

/* Responsive */
@media (max-width: 1100px) {
    .portfolio-grid {
        gap: 2rem;
    }

    .portfolio-card {
        border-radius: 24px;
    }

    .portfolio-card-glow {
        border-radius: 24px;
    }

    .portfolio-card-inner {
        border-radius: 22px;
    }
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .portfolio-section {
        padding: 5rem 1.5rem 7rem;
    }

    .portfolio-header {
        margin-bottom: 3.5rem;
    }

    .portfolio-card-title {
        font-size: 1.5rem;
    }

    .portfolio-card-content {
        padding: 1.75rem 1.75rem 2rem;
    }
}

/* ========================================
   HERO SCROLL EFFECTS
   ======================================== */
.hero-new {
    will-change: transform;
}

.hero-new.scroll-active .hero-content-centered {
    transform: translateY(calc(var(--scroll-progress, 0) * 100px));
    opacity: calc(1 - var(--scroll-progress, 0) * 1.5);
}

.hero-new.scroll-active::before,
.hero-new.scroll-active::after {
    transform: scale(calc(1 + var(--scroll-progress, 0) * 0.3));
}

/* Parallax effect for hero elements */
.hero-title {
    will-change: transform;
}

.hero-subtitle {
    will-change: transform, opacity;
}

.hero-buttons {
    will-change: transform, opacity;
}

/* ========================================
   STATS SHOWCASE - Premium Design
   ======================================== */
.stats-showcase {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Animated background orbs */
.stats-showcase-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.stats-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.stats-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.3) 0%, transparent 70%);
    top: -10%;
    left: 10%;
    animation: statsFloat1 15s ease-in-out infinite;
}

.stats-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.25) 0%, transparent 70%);
    bottom: -5%;
    right: 15%;
    animation: statsFloat2 18s ease-in-out infinite;
}

.stats-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(48, 209, 88, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: statsFloat3 20s ease-in-out infinite;
}

@keyframes statsFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
}

@keyframes statsFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -20px) scale(1.15); }
}

@keyframes statsFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.stats-showcase-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-showcase-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-showcase.visible .stats-showcase-header {
    opacity: 1;
    transform: translateY(0);
}

.stats-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(48, 209, 88, 0.15);
    color: var(--green);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(48, 209, 88, 0.2);
}

.stats-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Individual Stat Card */
.stats-card {
    position: relative;
    border-radius: 24px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-showcase.visible .stats-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stats-showcase.visible .stats-card:nth-child(1) { transition-delay: 0.1s; }
.stats-showcase.visible .stats-card:nth-child(2) { transition-delay: 0.2s; }
.stats-showcase.visible .stats-card:nth-child(3) { transition-delay: 0.3s; }
.stats-showcase.visible .stats-card:nth-child(4) { transition-delay: 0.4s; }

/* Card glow on hover */
.stats-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(41, 151, 255, 0.5),
        rgba(191, 90, 242, 0.5),
        rgba(255, 55, 95, 0.5),
        rgba(191, 90, 242, 0.5),
        rgba(41, 151, 255, 0.5)
    );
    background-size: 300% 300%;
    animation: gradientBorder 8s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2px;
}

.stats-card:hover .stats-card-glow {
    opacity: 1;
}

.stats-card-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-card:hover .stats-card-inner {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stats-icon {
    margin-bottom: 1.25rem;
    line-height: 1;
    color: var(--blue);
}

.stats-icon svg {
    width: 36px;
    height: 36px;
}

.stats-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.stats-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    .stats-showcase {
        padding: 5rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stats-card-inner {
        padding: 1.75rem 1rem;
    }

    .stats-icon {
        font-size: 2rem;
    }

    .stats-value {
        font-size: 2rem;
    }

    .stats-label {
        font-size: 0.75rem;
    }
}

/* ========================================
   ABOUT SHOWCASE - Premium Design
   ======================================== */
.about-showcase {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
    background: var(--bg-primary);
}

.about-showcase-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.about-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.about-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.25) 0%, transparent 70%);
    top: -20%;
    right: -10%;
    animation: aboutFloat1 20s ease-in-out infinite;
}

.about-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.2) 0%, transparent 70%);
    bottom: -15%;
    left: -5%;
    animation: aboutFloat2 25s ease-in-out infinite;
}

@keyframes aboutFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.1); }
}

@keyframes aboutFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.15); }
}

.about-showcase-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* About Card */
.about-card {
    position: relative;
    border-radius: 32px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-showcase.visible .about-card {
    opacity: 1;
    transform: translateY(0);
}

.about-card-glow {
    display: none;
}

.about-card-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


/* About Header */
.about-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.2), rgba(191, 90, 242, 0.2));
    border-radius: 16px;
    color: var(--blue);
}

.about-icon svg {
    width: 28px;
    height: 28px;
}

.about-tag {
    padding: 0.5rem 1rem;
    background: rgba(41, 151, 255, 0.1);
    color: var(--blue);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(41, 151, 255, 0.2);
}

.about-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* About Features */
.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.about-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.about-feature svg {
    width: 16px;
    height: 16px;
    color: var(--blue);
}

/* About Link */
.about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(255, 255, 255, 0.2),
        0 20px 50px rgba(41, 151, 255, 0.2);
}

.about-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.about-link:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .about-showcase {
        padding: 5rem 1.5rem;
    }

    .about-card-inner {
        padding: 2rem 1.5rem;
    }

    .about-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .about-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .about-icon svg {
        width: 24px;
        height: 24px;
    }

    .about-features {
        gap: 0.5rem;
    }

    .about-feature {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}
