/* ========================================
   Main Site Styles - 10desires.xyz
   Requires: /css/shared.css (loaded via HTML)
   ======================================== */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero h1 span {
    display: block;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero h1 span:nth-child(1) { animation-delay: 0.4s; }
.hero h1 span:nth-child(2) { animation-delay: 0.5s; }
.hero h1 span:nth-child(3) { animation-delay: 0.6s; }

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-description {
    max-width: 500px;
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--fg);
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--fg);
    color: var(--bg);
}

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

.btn-primary:hover {
    background: #6bb3ff;
    border-color: #6bb3ff;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--muted);
    position: relative;
    overflow: hidden;
}

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

/* About Section */
.about {
    padding: 12rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.section-number {
    font-family: var(--serif);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.about h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.about p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.skill-item {
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.03);
}

.skill-item h4 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.skill-item p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.about-visual {
    position: relative;
    height: 600px;
}

.visual-box {
    position: absolute;
    background: linear-gradient(135deg, rgba(74,158,255,0.1) 0%, transparent 60%);
    border: 1px solid rgba(74,158,255,0.2);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.visual-box:nth-child(1) {
    width: 300px;
    height: 400px;
    top: 0;
    right: 0;
}

.visual-box:nth-child(2) {
    width: 250px;
    height: 300px;
    bottom: 0;
    left: 50px;
}

.visual-box:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
}

/* Work Section */
.work {
    padding: 8rem 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6rem;
}

.work h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.work-item {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
}

.work-item:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.work-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
}

.work-item h3 {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.work-item p {
    font-size: 0.85rem;
    color: var(--muted);
}

.work-item-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: var(--serif);
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    z-index: 2;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Project Dropdown */
.project-dropdown {
    margin-top: 1rem;
}

.project-dropdown summary {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: pointer;
    list-style: none;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.project-dropdown summary::-webkit-details-marker {
    display: none;
}

.project-dropdown summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.project-dropdown[open] summary::before {
    transform: rotate(90deg);
}

.project-dropdown summary:hover {
    color: #6bb3ff;
}

.project-list {
    list-style: none;
    margin-top: 0.75rem;
    padding-left: 0;
    animation: fadeIn 0.3s ease;
}

.project-list li {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    line-height: 1.5;
    transition: all 0.2s ease;
}

.project-list li:last-child {
    border-bottom: none;
}

.project-list li:hover {
    color: var(--fg);
    padding-left: 0.5rem;
}

.project-list li a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.project-list li a:hover {
    color: var(--accent);
}

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

/* Now Section */
.now {
    padding: 8rem 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.now h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.now-subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 3rem;
}

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

.now-item {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.now-item:hover {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.03);
}

.now-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.now-value {
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--fg);
    margin: 0;
}

@media (max-width: 1024px) {
    .now {
        padding-left: 2rem;
        padding-right: 2rem;
    }

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

/* Contact Section */
.contact {
    padding: 12rem 4rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.contact .portkey-btn {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.contact h2 {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2rem;
}

.contact h2 em {
    font-style: italic;
    color: var(--accent);
}

.contact p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.contact-email {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--fg);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--accent);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-email:hover::after {
    transform: scaleX(1);
}

/* Footer - Additional Main Site Styles */
.footer-logo {
    height: 20px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: block;
    vertical-align: middle;
}

.footer-logo:hover {
    opacity: 1;
}

.portkey-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--serif);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    color: transparent;
    cursor: default;
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    pointer-events: auto;
    text-shadow: none;
    filter: blur(0px);
}

.portkey-btn span {
    transition: all 0.4s ease;
    opacity: 0;
    filter: blur(4px);
    position: relative;
    z-index: 2;
}

.portkey-btn:not(.revealed) {
    --mouse-x: 0px;
    --mouse-y: 0px;
}

.portkey-btn:not(.revealed)::before,
.portkey-btn:not(.revealed)::after {
    content: '';
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: left 0.1s ease, top 0.1s ease, opacity 0.5s ease;
}

.portkey-btn:not(.revealed)::before {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.3) 0%, rgba(74, 158, 255, 0.12) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    z-index: 1;
    left: var(--mouse-x);
    top: var(--mouse-y);
    transform: translate(-50%, -50%);
}

.portkey-btn:not(.revealed)::after {
    inset: 0;
    border: 1px solid transparent;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    mask:
        radial-gradient(circle 60px at var(--mouse-x) var(--mouse-y),
            rgba(0,0,0,0.6) 0%,
            rgba(0,0,0,0.25) 50%,
            transparent 100%);
    -webkit-mask:
        radial-gradient(circle 60px at var(--mouse-x) var(--mouse-y),
            rgba(0,0,0,0.6) 0%,
            rgba(0,0,0,0.25) 50%,
            transparent 100%);
    border-color: rgba(74, 158, 255, 0.3);
    z-index: 2;
}

.portkey-btn:not(.revealed):hover {
    cursor: help;
}

.portkey-btn:not(.revealed):hover::before,
.portkey-btn:not(.revealed):hover::after {
    opacity: 1;
}

.portkey-btn.revealed {
    border: 1px solid rgba(74, 158, 255, 0.3);
    background: rgba(74, 158, 255, 0.05);
    cursor: pointer;
    pointer-events: auto;
    animation: revealFlash 1s ease;
}

.portkey-btn.revealed span {
    opacity: 1;
    filter: blur(0px);
    color: var(--accent);
}

.portkey-btn.revealed:hover {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 158, 255, 0.2);
}

/* Revelio Flash Effect */
.revelio-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(74, 158, 255, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    animation: flashReveal 1s ease forwards;
    opacity: 0;
}

@keyframes flashReveal {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes revealFlash {
    0%, 100% {
        filter: brightness(1);
    }
    25%, 75% {
        filter: brightness(2) drop-shadow(0 0 20px rgba(74, 158, 255, 0.8));
    }
    50% {
        filter: brightness(3) drop-shadow(0 0 30px rgba(74, 158, 255, 1));
    }
}

/* Animations */
@keyframes scrollPulse {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero, .about, .work, .contact {
        padding-left: 2rem;
        padding-right: 2rem;
    }

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

    .about-visual {
        display: none;
    }

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

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

    .work-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .scroll-indicator {
        display: none;
    }
}
