/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    /* Colors */
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-accent-pink: #f093fb;
    --color-accent-blue: #4facfe;
    --color-accent-cyan: #00f2fe;

    --color-text-primary: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-text-tertiary: #86868b;

    --color-background: #ffffff;
    --color-background-secondary: #f5f5f7;
    --color-border: #e8e8ed;
    --color-border-input: #d2d2d7;

    --color-success-bg: #d1f4e0;
    --color-success-text: #03543f;

    /* Gradients */
    --gradient-title: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    --gradient-button: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-footer: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    --gradient-shadow: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;
    --spacing-xxxl: 80px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 30px;
    --radius-lg: 40px;
    --radius-full: 100%;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: .5s cubic-bezier(0.05, 0.61, 0.41, 0.95);

    /* Carousel Heights */
    --carousel-height: 400px;
    --carousel-shadow-height: 120px;

    /* Font Families */
    --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    overflow-x: hidden;
}

/* Hero Section */
main {
    display: flex;
    flex-direction: column;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.gradient-title {
    font-size: clamp(80px, 20vw, 350px);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.9;
    margin: 0;
    margin-bottom: 10vh;
}

.subtitle {
    font-size: clamp(16px, 2.5vw, 26px);
    font-weight: 300;
    color: #86868b;
    letter-spacing: -0.02em;
    margin: 0;
    margin-bottom: 10vh;
}

/* Notify Page */
.notify-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
}

.notify-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.notify-content h1 {
    font-size: clamp(40px, 8vw, 60px);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.notify-content p {
    font-size: 18px;
    color: #86868b;
    margin-bottom: 40px;
    font-weight: 300;
}

.notify-form {
    display: flex;
    flex-direction: row;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    overflow: hidden;
}

.notify-form input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    background-color: transparent;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.notify-form input:focus {
    outline: none;
}

.notify-form input::placeholder {
    color: #86868b;
}

.notify-form button {
    padding: 16px 24px;
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    white-space: nowrap;
}

.notify-form button:hover {
    opacity: 0.9;
}

.notify-form button:active {
    opacity: 0.8;
}

.success-message {
    display: none;
    padding: 16px;
    background-color: #d1f4e0;
    color: #03543f;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 16px;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    font-size: 32px;
    color: #667eea;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    font-size: 14px;
    color: #86868b;
    margin: 0;
    font-weight: 400;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Projects Carousel */
.projects-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 0;
}

.projects-content {
    display: grid;
    grid-template-columns: minmax(480px, 1.35fr) minmax(260px, 0.65fr);
    gap: 28px;
    align-items: center;
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
}

.options {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    min-width: 0;
    max-width: 980px;
    width: 100%;
    height: 420px;
}

.option {
    position: relative;
    overflow: hidden;
    min-width: 60px;
    margin: 10px;
    background-color: var(--defaultBackground, #E6E9ED);
    cursor: pointer;
    transition: .5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.option-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform var(--transition-smooth);
}

.option.active .option-image {
    transform: scale(1);
}

.option:nth-child(1) {
    --defaultBackground: #ED5565;
}

.option:nth-child(2) {
    --defaultBackground: #FC6E51;
}

.option:nth-child(3) {
    --defaultBackground: #FFCE54;
}

.option:nth-child(4) {
    --defaultBackground: #2ECC71;
}

.option:nth-child(5) {
    --defaultBackground: #5D9CEC;
}

.option:nth-child(6) {
    --defaultBackground: #AC92EC;
}

.option.active {
    flex-grow: 10000;
    transform: scale(1);
    max-width: 720px;
    margin: 0px;
    border-radius: 40px;
}

.option.active .shadow {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.option.active .label {
    bottom: 20px;
    left: 20px;
}

.option.active .label .info > div {
    left: 0px;
    opacity: 1;
}

.option:not(.active) {
    flex-grow: 1;
    border-radius: 30px;
}

.option:not(.active) .shadow {
    bottom: -40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.option:not(.active) .label {
    bottom: 10px;
    left: 10px;
}

.option:not(.active) .label .info > div {
    left: 20px;
    opacity: 0;
}

.shadow {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 120px;
    transition: .5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.label {
    display: flex;
    position: absolute;
    right: 0px;
    height: 40px;
    transition: .5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.label .icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    border-radius: 100%;
    background-color: white;
    color: var(--defaultBackground);
}

.label .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    color: white;
    white-space: pre;
}

.label .info > div {
    position: relative;
    transition: .5s cubic-bezier(0.05, 0.61, 0.41, 0.95), opacity .5s ease-out;
}

.label .info .main {
    font-weight: bold;
    font-size: 1.2rem;
}

.label .info .sub {
    transition-delay: .1s;
}

/* Project Summary */
.project-summary {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: .5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
    pointer-events: none;
}

.project-summary p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.project-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-details,
.btn-visit {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    display: inline-block;
}

.btn-details {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-visit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
}

.btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Hide overlay summaries - details now shown below carousel */
.project-summary {
    display: none;
}

/* Project Details Section - Below Carousel */
.project-details {
    max-width: 560px;
    margin: 0;
    padding: 0;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.project-details-content {
    text-align: left;
    max-width: 560px;
}

.project-details h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.project-details p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: #6e6e73;
    margin-bottom: 24px;
}

.project-details .project-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.project-details .btn-details,
.project-details .btn-visit {
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
}

.project-details .btn-details {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.project-details .btn-details:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.project-details .btn-visit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.project-details .btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    padding: 80px 40px 40px;
    margin-top: 100px;
    border-top: 1px solid #e8e8ed;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-about-column {
    max-width: 400px;
}

.footer-about-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.footer-about-text {
    font-size: 15px;
    font-weight: 400;
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-notify-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-notify-form input {
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.footer-notify-form input:focus {
    outline: none;
    border-color: #667eea;
}

.footer-notify-form input::placeholder {
    color: #86868b;
}

.footer-notify-form button {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.footer-notify-form button:hover {
    opacity: 0.9;
}

.footer-notify-form button:active {
    opacity: 0.8;
}

.footer-success-message {
    display: none;
    padding: 12px;
    background-color: #d1f4e0;
    color: #03543f;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.footer-success-message.show {
    display: block;
}

.footer-column h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a,
.footer-contact a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #667eea;
    transform: translateX(4px);
}

.contact-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    stroke: currentColor;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.footer-contact a:hover .contact-icon {
    transform: scale(1.15);
}

.footer-contact p {
    color: #6e6e73;
    font-size: 15px;
    font-weight: 400;
    margin: 8px 0 0 0;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact p .contact-icon {
    margin-top: 2px;
}

.footer-copyright {
    color: #86868b;
    font-size: 13px;
    font-weight: 300;
    margin: 0;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e8e8ed;
    letter-spacing: 0.01em;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 0 16px;
    }

    .gradient-title {
        font-size: clamp(60px, 18vw, 200px);
        margin-bottom: 8vh;
    }

    .subtitle {
        font-size: clamp(14px, 3.5vw, 22px);
        margin-bottom: 8vh;
    }

    .notify-form {
        max-width: 90%;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-arrow {
        font-size: 28px;
    }

    .scroll-indicator p {
        font-size: 13px;
    }

    .option:nth-child(6) {
        display: none;
    }

    .projects-content {
        grid-template-columns: 1fr;
        width: min(100%, calc(100% - 20px));
        gap: 24px;
    }

    .options {
        max-width: 100%;
        height: 380px;
    }

    .project-details {
        margin: 0 auto;
        padding: 0 10px;
    }

    .project-details-content {
        text-align: center;
    }

    .project-details .project-buttons {
        justify-content: center;
    }

    footer {
        padding: 60px 30px 40px;
        margin-top: 80px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-bottom: 40px;
    }

    .footer-about-column {
        max-width: 100%;
    }

    .footer-about-title {
        font-size: 24px;
    }

    .footer-about-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .footer-column h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 16px;
    }

    .gradient-title {
        font-size: clamp(50px, 16vw, 120px);
        margin-bottom: 6vh;
    }

    .subtitle {
        font-size: clamp(13px, 4vw, 18px);
        margin-bottom: 6vh;
    }

    .notify-form {
        max-width: 95%;
    }

    .notify-container {
        padding: 50px 16px 16px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-arrow {
        font-size: 24px;
    }

    .scroll-indicator p {
        font-size: 12px;
    }

    .options {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 360px;
    }

    .option:nth-child(5),
    .option:nth-child(6) {
        display: none;
    }

    .projects-section {
        padding: 60px 20px;
    }

    .project-details {
        margin: 40px auto 0;
        padding: 0 20px;
    }

    .project-details h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .project-details p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .project-details .btn-details,
    .project-details .btn-visit {
        padding: 12px 24px;
        font-size: 14px;
    }

    footer {
        padding: 50px 20px 30px;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 30px;
    }

    .footer-about-column {
        max-width: 100%;
    }

    .footer-about-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .footer-about-text {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .footer-notify-form input {
        padding: 11px 14px;
        font-size: 13px;
    }

    .footer-notify-form button {
        padding: 11px 18px;
        font-size: 13px;
    }

    .footer-column h3 {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .footer-copyright {
        padding-top: 30px;
    }
}
