/* Global Styles */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #ff6b6b;
    --background-color: #f8f9fa;
    --text-color: #333333;
    --card-background: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --header-gradient-start: #6a6bff;
    --header-gradient-end: #d16ba5;
    --accent-color: #6a6bff;
    --button-hover: #5a5be0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* Night Mode Colors */
body.night-mode {
    --background-color: #121212;
    --card-background: #1e1e1e;
    --text-color: #e0e0e0;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --header-gradient-start: #6a6bff;
    --header-gradient-end: #d16ba5;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--header-gradient-start), var(--header-gradient-end));
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Holographic Header Effect */
header.holographic {
    position: relative;
}

header.holographic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    opacity: 0.7;
    transform: translateX(calc(var(--mouse-x, 0.5) * 100% - 50%)) 
               translateY(calc(var(--mouse-y, 0.5) * 100% - 50%));
    pointer-events: none;
    transition: transform 0.1s ease;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: white;
    transition: width 0.3s ease;
}

header h1:hover::after {
    width: 100%;
}

/* Main Content Styles */
main {
    padding-bottom: 60px;
}

section {
    margin-bottom: 50px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.intro {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.intro p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Games Section */
.games {
    margin: 3rem 0;
}

.games .game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.timeline {
    margin: 3rem 0;
}

.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--header-gradient-start), var(--header-gradient-end));
    border-radius: 2px;
}

.hackathon-group {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 2rem;
}

.hackathon-group::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--header-gradient-start);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--header-gradient-start);
}

.hackathon-group.pulse::before {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 107, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(106, 107, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(106, 107, 255, 0);
    }
}

.hackathon-group h3 {
    color: var(--header-gradient-start);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

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

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.game-image {
    height: 180px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
}

.placeholder-image {
    background: linear-gradient(45deg, #e6e6e6, #f5f5f5);
}

.game-card h4 {
    padding: 15px 15px 5px;
    font-size: 1.2rem;
}

.game-card p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.9rem;
}

.play-button {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.5s ease;
}

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    background-color: #3a5be0;
}

.future {
    border: 2px dashed #ccc;
    text-align: center;
    padding: 40px;
}

.future h3 {
    color: #888;
}

.future p {
    color: #888;
    font-style: italic;
}

/* Hackathon Description and Highlights Styles */
.hackathon-description {
    background: var(--card-background);
    border-radius: 15px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hackathon-description > p {
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.hackathon-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.highlight-item {
    background: rgba(106, 107, 255, 0.05);
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid var(--header-gradient-start);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highlight-item h4 {
    margin: 0 0 0.8rem 0;
    color: var(--header-gradient-start);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.highlight-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Artwork Section */
.artwork-section {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--card-background);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.artwork-card {
    background: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-5px);
}

.artwork-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.artwork-info {
    padding: 1.5rem;
}

.artwork-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.artwork-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.artwork-date {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* About Me Section */
.about-me {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.profile-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform var(--transition-speed);
}

.profile-image:hover {
    transform: scale(1.02);
}

.about-text {
    flex: 2;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .about-image {
        flex: 1;
    }
    
    .about-text {
        flex: 2;
    }
}

/* Legal Pages Styles */
.legal-content {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.legal-section h2 {
    color: var(--header-gradient-start);
    margin: 2rem 0 1rem;
}

.legal-section h2:first-child {
    margin-top: 0;
}

.legal-section h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
}

.legal-section h4 {
    color: var(--text-primary);
    margin: 1.2rem 0 0.8rem;
}

.legal-section p {
    margin: 0.8rem 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.back-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: var(--header-gradient-start);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    background: var(--card-background);
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

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

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

.footer-links a:hover {
    color: var(--header-gradient-start);
}

footer p {
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        padding: 40px 0;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .game-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
}

/* Floating Emojis */
.floating-emoji {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    animation: float 1.5s ease-out forwards;
    z-index: 10;
    opacity: 0;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(1.2);
        opacity: 0;
    }
}

/* Notification System */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--header-gradient-start);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Confetti Effect */
.confetti {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    animation: confetti-fall 2s forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--r));
        opacity: 0;
    }
}
