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

:root {
    --accent-start: #35d6ff;
    --accent-mid: #ff6580;
    --accent-end: #ffd15c;
    --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-mid), var(--accent-end));
    --primary-color: #35d6ff;
    --secondary-color: #ffffff;
    --text-color: #ffffff;
    --muted-color: rgba(255, 255, 255, 0.78);
    --surface-color: #0f1113;
    --surface-alt: rgba(24, 27, 31, 0.82);
    --surface-card: rgba(28, 33, 38, 0.88);
    --border-color: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
    --shadow-strong: 0 10px 40px rgba(255, 255, 255, 0.14);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--surface-color);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(57, 255, 0, 0.08), transparent 25%),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.06), transparent 22%),
        radial-gradient(circle at 50% 80%, rgba(57, 255, 0, 0.05), transparent 18%);
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    pointer-events: none;
    z-index: -1;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 17, 19, 0.78);
    color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    margin-top: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 17, 19, 0.58);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(53, 214, 255, 0.16), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(255, 101, 128, 0.14), transparent 28%),
        radial-gradient(circle at 50% 80%, rgba(255, 209, 92, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(24, 27, 31, 0.96), rgba(15, 17, 19, 0.82));
    animation: float 18s ease-in-out infinite;
    filter: blur(5px);
    opacity: 0.95;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.page-content {
    position: relative;
    min-height: calc(100vh - 60px);
    padding: 120px 2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 17, 19, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.page-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(53, 214, 255, 0.16), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(255, 101, 128, 0.14), transparent 28%),
        radial-gradient(circle at 50% 80%, rgba(255, 209, 92, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(24, 27, 31, 0.96), rgba(15, 17, 19, 0.82));
    filter: blur(5px);
    opacity: 0.9;
    z-index: -1;
    animation: float 18s ease-in-out infinite;
}

.blank-page {
    position: relative;
    z-index: 1;
    text-align: center;
}

.blank-page h1 {
    color: var(--text-color);
    font-size: 4rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin: 0 auto 3rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline-block;
    text-align: center;
    white-space: normal;
    animation: slideUp 0.8s ease-out;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideUp 0.8s ease-out 0.4s backwards;
    color: var(--muted-color);
}

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

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

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-gradient);
    background-size: 300% 300%;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.18);
    animation: slideUp 0.8s ease-out 0.6s backwards, gradientShift 10s ease infinite;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(255, 255, 255, 0.25), 0 0 40px rgba(50, 249, 255, 0.18);
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: rgba(15, 17, 19, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text h3,
.skills h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.about-text p,
.skills p {
    margin-bottom: 1rem;
    color: var(--muted-color);
    line-height: 1.8;
}

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

.skill-card {
    background: var(--surface-card);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.16);
}

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

/* Projects Section */
.projects {
    margin-top: 4rem;
}

.projects h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-align: center;
}

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

.project-card {
    background: var(--surface-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.gallery-showcase,
.gfx-showcase {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.gallery-header,
.gfx-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery-header h1,
.gfx-header h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.gallery-header p,
.gfx-header p {
    color: var(--muted-color);
    max-width: 760px;
    margin: 0 auto;
}

.gallery-grid,
.gfx-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.gallery-card,
.gfx-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 2px solid transparent;
    background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)) padding-box,
                linear-gradient(135deg, var(--accent-start), var(--accent-mid), var(--accent-end)) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.gallery-card:hover,
.gfx-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.32);
    border-color: rgba(255, 255, 255, 0.22);
}

.gallery-card::after,
.gfx-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.14) 100%);
}

.gallery-image,
.gfx-image {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0 0 0 0;
}

.gallery-caption,
.gfx-caption {
    position: relative;
    padding: 1.25rem 1.25rem 1.5rem;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .gallery-grid,
    .gfx-grid {
        grid-template-columns: 1fr;
    }
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h4 {
    color: var(--text-color);
    font-size: 1.3rem;
}

.project-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-status.not-commissionable {
    background-color: #e74c3c;
}

.project-card p {
    color: var(--muted-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    color: var(--accent-start);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-end);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: rgba(15, 17, 19, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    color: var(--text-color);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: var(--muted-color);
}

.contact-form {
    background: var(--surface-card);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #111417;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: #14191f;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(57, 255, 0, 0.2);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    background-size: 300% 300%;
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    animation: gradientShift 10s ease infinite;
}

.submit-button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.22), 0 0 50px rgba(255, 110, 196, 0.18);
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    display: none;
}

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

.form-message.success {
    color: #4caf50;
}

.form-message.error {
    color: #f44336;
}

.required-star {
    color: #e74c3c;
    font-weight: bold;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 2000;
    transition: var(--transition);
}

.success-popup.show {
    transform: translate(-50%, -50%) scale(1);
}

.popup-content {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.checkmark {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
    animation: popScaleIn 0.5s ease-out;
}

.popup-content p {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 600;
}

@keyframes popScaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.contact-links {
    text-align: center;
    margin-top: 3rem;
}

.contact-links h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 500;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--surface-alt);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    border-top: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--surface-alt);
        padding: 2rem;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-link {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about {
        padding: 3rem 1rem;
    }

    .contact {
        padding: 3rem 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}
