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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #333333;
    --light-gray: #666666;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    position: relative;
    background: linear-gradient(180deg, var(--black) 0%, #0a0a0a 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

/* Cross Container */
.cross-container {
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    animation: fadeInDown 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cross {
    color: var(--white);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: pulse 3s ease-in-out infinite;
}

.sign {
    color: var(--white);
    opacity: 0.7;
    font-size: 0.8em;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Profile Picture */
.profile-container {
    margin-bottom: var(--spacing-sm);
    animation: fadeIn 1s ease 0.3s both;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-ring {
    position: relative;
    width: clamp(100px, 15vw, 130px);
    height: clamp(100px, 15vw, 130px);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, var(--white), var(--gray), var(--white));
    background-size: 200% 200%;
    animation: gradientRotate 3s ease infinite;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--black);
    filter: grayscale(100%) contrast(1.1);
    transition: all var(--transition-normal);
}

.profile-ring:hover .profile-pic {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.profile-ring:hover {
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 0.5),
        0 0 80px rgba(255, 255, 255, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

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

/* Changing Text */
.changing-text-container {
    min-height: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.changing-text {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--white);
    text-transform: uppercase;
    animation: textChange 0.3s ease;
}

@keyframes textChange {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Username */
.username {
    margin-bottom: var(--spacing-sm);
    animation: fadeIn 1s ease 0.5s both;
}

.username h2 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--white);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    animation: fadeIn 1s ease 0.7s both;
}

.social-icon {
    width: clamp(45px, 7vw, 60px);
    height: clamp(45px, 7vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--black);
    border-radius: 50%;
    text-decoration: none;
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    transition: all var(--transition-normal);
    border: 2px solid var(--white);
}

.social-icon:hover {
    background-color: var(--black);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    animation: fadeIn 1s ease 0.9s both;
}

.btn {
    padding: 0.8rem 2.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--black);
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 800px;
    text-align: center;
}

.section-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--white);
}

.about-text {
    font-size: clamp(1rem, 3vw, 1.3rem);
    line-height: 1.8;
    color: var(--white);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.about-text strong {
    font-weight: 700;
    color: var(--white);
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-section {
    min-height: 100vh;
    height: 100vh;
    padding: var(--spacing-md);
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.gallery-title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    color: var(--white);
    animation: fadeIn 1s ease both;
}

.gallery-title-top {
    animation-delay: 0.2s;
}

.gallery-title-bottom {
    animation-delay: 0.4s;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    max-width: 1200px;
    width: 100%;
    flex-shrink: 0;
}

.gallery-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.gallery-card:hover .card-inner,
.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.card-front {
    background-color: var(--black);
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-back {
    background-color: var(--white);
    color: var(--black);
    transform: rotateY(180deg);
    padding: var(--spacing-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back p {
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* ===================================
   TEXT READER MODAL
   =================================== */
.text-reader-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--black);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.text-reader-modal.active {
    display: flex;
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 1001;
}

.close-btn:hover {
    background-color: var(--white);
    color: var(--black);
    transform: rotate(90deg);
}

.text-reader-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-md);
    padding-bottom: 140px;
    padding-top: 80px;
}

/* Preview Lines - NOW BELOW */
.preview-lines {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) var(--spacing-lg);
    padding-right: var(--spacing-md);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    max-height: calc(1.8rem * 1.8 * 5);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.preview-line {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    text-align: center;
    line-height: 1.8;
    color: var(--white);
    font-weight: 400;
    letter-spacing: 0.02em;
    word-spacing: 0.1em;
}

.preview-line .word {
    position: relative;
}

.preview-line .highlight-word {
    color: var(--white);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 0 1px rgba(255, 255, 255, 1),
        0 0 2px rgba(255, 255, 255, 1);
    transition: text-shadow 0.3s ease;
}

.preview-line .highlight-word::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 1em);
    height: calc(100% + 0.6em);
    background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.25) 100%);
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Main Display */
.main-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    flex: 1;
    min-height: 0;
}

.display-row {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-height: clamp(3rem, 9vw, 7rem);
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    max-width: 100%;
    padding: 0 var(--spacing-xs);
}

.display-row.long-word {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
}

@keyframes wordAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reader Controls */
.reader-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--white);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.control-btn {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-play-pause {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    background-color: var(--white);
    color: var(--black);
}

.control-play-pause:hover {
    background-color: var(--black);
    color: var(--white);
    transform: scale(1.1);
}

.control-btn:hover {
    background-color: var(--white);
    color: var(--black);
    transform: scale(1.1);
}

.control-speed {
    font-size: 1rem;
    font-weight: 700;
}

.control-restart {
    background-color: var(--white);
    color: var(--black);
}

.control-restart:hover {
    background-color: var(--black);
    color: var(--white);
    transform: scale(1.1) rotate(-360deg);
    transition: transform 0.6s ease;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--black);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    border-top: 1px solid var(--gray);
}

.footer p {
    margin-bottom: var(--spacing-xs);
    opacity: 0.7;
}

.footer-tagline {
    font-style: italic;
    font-size: 0.9rem;
}

/* ===================================
   TOP WORDS SECTION
   =================================== */
.topwords-section {
    min-height: 100vh;
    background-color: var(--black);
    padding: var(--spacing-xl) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.topwords-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quotes-container {
    margin-top: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.quote-item {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-left: 4px solid var(--white);
    border-radius: 8px;
    text-align: left;
    transition: all var(--transition-normal);
    animation: fadeIn 0.6s ease-out;
}

.quote-item:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    transform: translateX(10px);
    border-left-color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.quote-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.quote-author {
    display: block;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--light-gray);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: right;
    margin-top: var(--spacing-sm);
    font-style: normal;
}

@media (max-width: 768px) {
    .quote-item {
        padding: var(--spacing-md);
    }
    
    .quote-text {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===================================
   RESPONSIVE - TABLET
   =================================== */
@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        gap: var(--spacing-md);
    }
    
    .gallery-grid {
        gap: var(--spacing-md);
    }
}

/* ===================================
   RESPONSIVE - MOBILE SMALL
   =================================== */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
    
    .social-icons {
        gap: var(--spacing-sm);
    }
    
    .reader-controls {
        gap: 0.4rem;
        padding: 0.8rem;
        flex-wrap: nowrap;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .control-play-pause {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }
    
    .preview-line {
        font-size: clamp(0.9rem, 3vw, 1.3rem);
        line-height: 1.6;
    }
    
    .preview-lines {
        padding: var(--spacing-sm);
        padding-right: 0.5rem;
        max-height: calc(1.3rem * 1.6 * 5);
    }
}

/* ===================================
   SMOOTH SCROLLING & SNAP
   =================================== */

/* Selection Color */
::selection {
    background-color: var(--white);
    color: var(--black);
}

/* Scrollbar styling */
body::-webkit-scrollbar,
.preview-lines::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track,
.preview-lines::-webkit-scrollbar-track {
    background: var(--black);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb,
.preview-lines::-webkit-scrollbar-thumb {
    background: var(--white);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover,
.preview-lines::-webkit-scrollbar-thumb:hover {
    background: var(--light-gray);
}

/* ===================================
   VOTE POPUP
   =================================== */
.vote-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vote-popup.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    background-color: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-md);
    position: relative;
    animation: popupAppear 0.5s ease;
}

@keyframes popupAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
}

.popup-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex: 1;
    line-height: 1.2;
    text-align: center;
    text-shadow: 
        0 2px 10px rgba(255, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 0, 0.2);
}

.popup-close-btn {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background-color: #ff0000;
    border: 3px solid var(--white);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(255, 0, 0, 0.4),
        0 0 20px rgba(255, 0, 0, 0.6);
}

.popup-close-btn:hover {
    background-color: #cc0000;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 
        0 6px 20px rgba(255, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.8);
}

.popup-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: var(--spacing-md);
    border-radius: 15px;
    overflow: hidden;
    border: 5px solid var(--black);
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
}

.popup-x-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(8rem, 20vw, 18rem);
    color: #ff0000;
    font-weight: 900;
    pointer-events: none;
    text-shadow: 
        0 0 40px rgba(255, 0, 0, 1),
        0 0 80px rgba(255, 0, 0, 0.8),
        0 0 120px rgba(255, 0, 0, 0.6),
        0 0 5px rgba(0, 0, 0, 1);
    animation: blinkX 1.5s ease-in-out infinite;
}

@keyframes blinkX {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.vote-action-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: #ff0000;
    color: var(--white);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5);
    animation: pulseBtn 2s ease infinite;
}

.vote-action-btn:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 0, 0, 0.7);
}

@keyframes pulseBtn {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* ===================================
   VOTE FORM MODAL
   =================================== */
.vote-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vote-form-modal.active {
    display: flex;
    opacity: 1;
}

.form-container {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.5s ease;
}

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

.form-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: 2px solid var(--black);
    color: var(--black);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-close-btn:hover {
    background-color: #ff0000;
    border-color: #ff0000;
    color: var(--white);
    transform: rotate(90deg);
}

.form-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    text-align: center;
    color: #ff0000;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    padding-right: 40px;
}

.form-input-group {
    margin-bottom: var(--spacing-md);
}

.form-input-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    border: 3px solid var(--gray);
    border-radius: 12px;
    transition: all var(--transition-fast);
    font-family: inherit;
    background-color: var(--white);
}

.form-input-group input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.15);
}

.form-submit-btn {
    width: 100%;
    padding: 1.3rem 2rem;
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: #ff0000;
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: var(--spacing-sm);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
}

.form-submit-btn:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 0, 0, 0.6);
}

.form-footer-text {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light-gray);
    margin-top: var(--spacing-md);
    font-style: italic;
    line-height: 1.5;
}

/* Mobile responsive for popup */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        padding: var(--spacing-sm);
    }
    
    .popup-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .popup-close-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.3rem;
    }
    
    .form-container {
        padding: var(--spacing-lg);
        width: 95%;
    }
    
    .form-title {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .popup-container {
        padding: var(--spacing-xs);
    }
    
    .popup-title {
        font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    }
    
    .popup-close-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1.2rem;
    }
    
    .vote-action-btn {
        padding: 1rem 1.5rem;
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    }
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
    min-height: 100vh;
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
    z-index: 1;
}

.projects-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.project-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--white);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.2);
}

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

.project-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.project-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--light-gray);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.project-icon {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--white);
    margin: var(--spacing-sm) 0;
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.project-card:hover .project-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

.project-hover {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition-normal);
}

.project-card:hover .project-hover {
    opacity: 1;
    transform: translateX(0);
}

.project-hover i {
    transition: transform var(--transition-fast);
}

.project-card:hover .project-hover i {
    transform: translateX(5px);
}

/* ==================== PROJECT MODAL ==================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.project-modal.active {
    opacity: 1;
    pointer-events: all;
}

.project-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.project-modal-header h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.external-link-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--white);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.external-link-btn:hover {
    background-color: var(--black);
    color: var(--white);
    border: 2px solid var(--white);
    transform: scale(1.05);
}

.project-iframe-container {
    flex: 1;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
}

.project-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .project-card {
        min-height: 220px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .project-hover {
        opacity: 1;
        transform: translateX(0);
    }
    
    .project-modal-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .external-link-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .project-card {
        min-height: 200px;
        padding: var(--spacing-sm);
    }
    
    .project-hover {
        opacity: 1;
        transform: translateX(0);
        font-size: 0.85rem;
    }
    
    .project-number {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .project-icon {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
        margin: var(--spacing-xs) 0;
    }
}


