/* AHELIOS — SHARED STYLES */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #050505;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a, button { cursor: none; }

/* CUSTOM CURSOR */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #ffa500;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.4s ease, width 0.4s ease, height 0.4s ease, border-color 0.4s ease;
    transform: translate(-50%, -50%);
}

.cursor.active { width: 24px; height: 24px; }
.cursor-ring.active {
    width: 80px;
    height: 80px;
    border-color: rgba(255, 165, 0, 1);
}

/* THREE.JS BACKGROUND */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    opacity: 0.5;
}

.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 165, 0, 0.12), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 50, 100, 0.08), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(100, 50, 255, 0.08), transparent 40%);
    pointer-events: none;
    animation: meshShift 20s ease infinite;
}

@keyframes meshShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(5, 5, 5, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #f5f5f5;
}

.logo span {
    color: #ffa500;
    display: inline-block;
    animation: logoGlow 3s ease infinite;
}

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 165, 0, 0.5); }
    50% { text-shadow: 0 0 40px rgba(255, 165, 0, 1), 0 0 60px rgba(255, 165, 0, 0.6); }
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffa500;
    transition: width 0.4s ease;
}

.nav-links a:hover {
    color: #f5f5f5;
}

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

.nav-links a.active {
    color: #ffa500;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero.compact {
    min-height: 70vh;
    padding-top: 180px;
}

.hero-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #ffa500;
    margin-bottom: 32px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    background: rgba(255, 165, 0, 0.05);
    opacity: 0;
    animation: fadeUp 1s ease 0.2s forwards;
}

h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(56px, 12vw, 180px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.9;
    margin-bottom: 32px;
}

.hero.compact h1 {
    font-size: clamp(48px, 9vw, 130px);
}

h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px) rotate(8deg);
    animation: wordReveal 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

h1 .word:nth-child(1) { animation-delay: 0.4s; }
h1 .word:nth-child(2) { animation-delay: 0.55s; }
h1 .word:nth-child(3) { animation-delay: 0.7s; }
h1 .word:nth-child(4) { animation-delay: 0.85s; }

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

.italic {
    font-style: italic;
    background: linear-gradient(135deg, #ffa500, #ff5050);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    color: #aaa;
    max-width: 700px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 1s ease 1.2s forwards;
}

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

/* MAGNETIC BUTTON */
.magnetic-btn {
    display: inline-block;
    padding: 20px 48px;
    background: #ffa500;
    color: #050505;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    opacity: 0;
    animation: fadeUp 1s ease 1.4s forwards;
    position: relative;
    overflow: hidden;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff5050, #ffa500);
    opacity: 0;
    transition: opacity 0.4s;
}

.magnetic-btn span {
    position: relative;
    z-index: 1;
}

.magnetic-btn:hover::before { opacity: 1; }

.magnetic-btn.outline {
    background: transparent;
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.5);
}

.magnetic-btn.outline::before {
    background: rgba(255, 165, 0, 0.1);
}

.magnetic-btn.outline:hover {
    color: #ffa500;
}

/* MARQUEE */
.marquee-section {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    background: rgba(5, 5, 5, 0.5);
    position: relative;
    z-index: 2;
}

.marquee {
    display: flex;
    gap: 80px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-family: 'Fraunces', serif;
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 600;
    font-style: italic;
    color: rgba(255, 255, 255, 0.05);
    -webkit-text-stroke: 1px rgba(255, 165, 0, 0.4);
}

.marquee-item.solid {
    color: #ffa500;
    -webkit-text-stroke: none;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* SECTIONS */
.section {
    padding: 140px 48px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #ffa500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: #ffa500;
}

h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 32px;
    max-width: 900px;
}

h3 {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-intro {
    color: #888;
    max-width: 600px;
    font-size: 18px;
    margin-bottom: 80px;
}

p { color: #aaa; font-size: 16px; }

/* TILT CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    perspective: 1000px;
}

.tilt-card {
    padding: 48px 36px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
}

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

.tilt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 165, 0, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.tilt-card:hover::before { opacity: 1; }
.tilt-card:hover {
    border-color: rgba(255, 165, 0, 0.3);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ffa500, #ff5050);
    border-radius: 16px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 700;
    color: #050505;
    transform: translateZ(40px);
}

.card-title {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 16px;
    transform: translateZ(20px);
}

.card-text {
    color: #888;
    font-size: 15px;
    transform: translateZ(10px);
}

/* STATS */
.stats-section {
    padding: 140px 48px;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(255, 165, 0, 0.03), transparent);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    text-align: center;
}

.stat-block {
    padding: 32px 16px;
}

.stat-num {
    font-family: 'Fraunces', serif;
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.stat-text {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* WORK GRID */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.work-item {
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: none;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.work-item:nth-child(1) { background: linear-gradient(135deg, #ffa500, #ff5050); }
.work-item:nth-child(2) { background: linear-gradient(135deg, #ff5050, #6432ff); }
.work-item:nth-child(3) { background: linear-gradient(135deg, #6432ff, #00d4ff); }
.work-item:nth-child(4) { background: linear-gradient(135deg, #00d4ff, #ffa500); }
.work-item:nth-child(5) { background: linear-gradient(135deg, #ffa500, #6432ff); }
.work-item:nth-child(6) { background: linear-gradient(135deg, #ff5050, #00d4ff); }

.work-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85));
}

.work-item:hover {
    transform: scale(0.98);
}

.work-content {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    z-index: 2;
}

.work-tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffa500;
    background: rgba(255, 165, 0, 0.15);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.work-title {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.work-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* SERVICE DETAIL */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-detail.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-visual {
    aspect-ratio: 4/3;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 80, 80, 0.05));
    border: 1px solid rgba(255, 165, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 120px;
    font-weight: 700;
    color: rgba(255, 165, 0, 0.3);
}

.service-list {
    list-style: none;
    margin-top: 32px;
}

.service-list li {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
}

.service-list li::before {
    content: '→';
    color: #ffa500;
    font-weight: bold;
}

/* ABOUT */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #ccc;
}

.about-content p:first-of-type::first-letter {
    font-family: 'Fraunces', serif;
    font-size: 80px;
    font-weight: 700;
    color: #ffa500;
    float: left;
    line-height: 0.9;
    margin: 8px 16px 0 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

.value-block {
    padding: 40px 32px;
    border-left: 2px solid #ffa500;
}

.value-num {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    color: #ffa500;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.value-title {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    margin-bottom: 12px;
}

.value-text {
    color: #888;
    font-size: 14px;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 32px;
}

.contact-list {
    list-style: none;
    margin-top: 48px;
}

.contact-list li {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffa500;
}

.contact-value {
    color: #f5f5f5;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-value:hover {
    color: #ffa500;
}

.contact-form {
    padding: 48px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffa500;
    margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #f5f5f5;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #ffa500;
}

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

.form-submit {
    margin-top: 16px;
    padding: 18px 40px;
    background: #ffa500;
    color: #050505;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 100px;
    transition: all 0.4s;
}

.form-submit:hover {
    background: #ff5050;
    transform: translateY(-2px);
}

/* CTA SECTION */
.cta-section {
    padding: 200px 48px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: radial-gradient(ellipse at center, rgba(255, 165, 0, 0.08), transparent 70%);
}

.cta-section h2 {
    margin: 0 auto 32px;
}

.cta-section p {
    color: #888;
    max-width: 500px;
    margin: 0 auto 48px;
    font-size: 18px;
}

/* FOOTER */
footer {
    padding: 60px 48px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(20px);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    font-size: 24px;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-tag {
    color: #888;
    font-size: 14px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffa500;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ffa500;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* MOBILE */
@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor, .cursor-ring { display: none; }
    a, button { cursor: pointer; }
    nav { padding: 16px 24px; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 11px; letter-spacing: 0.1em; }
    .section, .stats-section, .cta-section { padding: 80px 24px; }
    .work-grid { grid-template-columns: 1fr; }
    .service-detail { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
    .service-detail.reverse { direction: ltr; }
    .service-visual { font-size: 80px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-form { padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .about-content p { font-size: 16px; }
    .about-content p:first-of-type::first-letter { font-size: 56px; }
}
