/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme */
    --primary-color: #6C63FF;    /* Playful purple */
    --secondary-color: #FF6B6B;  /* Coral */
    --accent-color: #4ECDC4;     /* Turquoise */
    --dark-color: #2C3E50;       /* Dark blue */
    --light-color: #F7F9FC;      /* Light background */
    --text-color: #2C3E50;       /* Text color */
    --card-bg: white;            /* Card background */
    --nav-bg: #2C3E50;          /* Navigation background */
    --shadow-color: rgba(0,0,0,0.1); /* Shadow color */
}

[data-theme="dark"] {
    --primary-color: #8B7FFF;    /* Lighter purple for dark mode */
    --secondary-color: #FF8585;  /* Lighter coral for dark mode */
    --accent-color: #6EE7DE;     /* Lighter turquoise for dark mode */
    --dark-color: #1A1A1A;       /* Darker background */
    --light-color: #2C2C2C;      /* Dark background */
    --text-color: #E0E0E0;       /* Light text */
    --card-bg: #363636;          /* Dark card background */
    --nav-bg: #1A1A1A;          /* Dark navigation background */
    --shadow-color: rgba(0,0,0,0.3); /* Darker shadow */
}

html {
    height: 100%;
    overflow-x: hidden;
    background-color: var(--light-color);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: var(--light-color);
}

[data-theme="dark"] body {
    background-color: var(--dark-color);
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #2C3E50; /* Fallback color while image loads */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('/images/WorldScreenshot.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    background-attachment: fixed;
    z-index: -1;
    transform: translateZ(0);
    min-height: 100vh;
    /* Ensure the background extends beyond viewport */
    background-clip: border-box;
    /* Remove fixed height to allow dynamic sizing */
    height: auto;
}

[data-theme="dark"] .parallax-bg {
    background-color: #1A1A1A; /* Dark fallback color */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('/images/WorldScreenshot.png');
}

/* Content overlay to ensure readability */
.content-overlay {
    position: relative;
    z-index: 1;
    background: transparent;
    min-height: 100vh;
    backdrop-filter: none;
    width: 100%;
}

[data-theme="dark"] .content-overlay {
    background: transparent;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-50%) rotate(30deg);
}

.theme-toggle i {
    font-size: 1.5rem;
}

/* Navigation */
.navbar {
    background-color: var(--nav-bg);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.brand {
    position: absolute;
    left: 2rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    color: #F7F9FC;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: var(--accent-color) !important;
    background-color: rgba(78, 205, 196, 0.1) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 20px !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Dark mode navigation link colors */
[data-theme="dark"] .nav-links a {
    color: #E0E0E0;
}

[data-theme="dark"] .nav-links a.active {
    color: var(--accent-color) !important;
    background-color: rgba(110, 231, 222, 0.15) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 20px !important;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
}

/* Gradient Header Styles (matching blog style) */
.gradient-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gradient-header .section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block !important;
    left: auto !important;
    transform: none !important;
    text-align: center !important;
    position: relative;
    font-weight: 700;
}

.gradient-header .section-title::before,
.gradient-header .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.gradient-header .section-title::before {
    left: -220px;
}

.gradient-header .section-title::after {
    right: -220px;
}

.gradient-header .header-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease-out both;
}

[data-theme="dark"] .hero {
    background-color: rgba(54, 54, 54, 0.8);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px var(--shadow-color);
    transition: color 0.3s ease;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Current Project Section */
.current-project {
    text-align: center;
    padding: 4rem 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

[data-theme="dark"] .current-project {
    background-color: rgba(54, 54, 54, 0.8);
}

.current-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.current-project h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px var(--shadow-color);
    transition: color 0.3s ease;
}

.current-project p,
.geode-description {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.project-highlight {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .project-highlight {
    background-color: rgba(54, 54, 54, 0.6);
}

.project-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.project-info p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.project-screenshots {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.screenshot {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.project-link {
    background-color: var(--primary-color);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* GEODE specific layout */
.geode-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .geode-layout {
    background-color: rgba(54, 54, 54, 0.6);
}

.geode-layout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.geode-image {
    flex: 1;
    max-width: 400px;
}

.geode-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.geode-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.geode-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.geode-buttons .project-link {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* Skills Section */
.skills {
    padding: 2rem 0;
}

.skills h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    transition: color 0.3s ease;
}

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

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }

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

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--shadow-color);
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 2rem 0;
    text-align: center;
}

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

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--shadow-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

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

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Status Messages */
.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

[data-theme="dark"] .status-message.success {
    background-color: #1e4a2e;
    color: #d4edda;
    border: 1px solid #2d5a3d;
}

[data-theme="dark"] .status-message.error {
    background-color: #4a1e1e;
    color: #f8d7da;
    border: 1px solid #5a2d2d;
}

[data-theme="dark"] .status-message.info {
    background-color: #1e4a4a;
    color: #d1ecf1;
    border: 1px solid #2d5a5a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    .brand {
        position: static;
        margin-bottom: 1rem;
        left: unset;
        top: unset;
        transform: none;
    }
    .theme-toggle {
        position: static;
        right: unset;
        top: unset;
        transform: none;
        margin-top: 1rem;
    }
    .nav-links {
        position: static;
        left: unset;
        top: unset;
        transform: none;
        flex-wrap: wrap;
        margin: 0;
    }
    .nav-links li {
        margin: 0.5rem;
    }
    .container {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .gradient-header .section-title {
        font-size: 2.5rem;
    }
    
    .gradient-header .section-title::before,
    .gradient-header .section-title::after {
        width: 100px;
    }
    
    .gradient-header .section-title::before {
        left: -110px;
    }
    
    .gradient-header .section-title::after {
        right: -110px;
    }
    
    .header-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

html {
    background: transparent !important;
} 