/* Global Styles */
:root {
    --primary-color: #00f2ea;
    --secondary-color: #ff0050;
    --bg-color: #050505;
    /* Darker, deeper black */
    --surface-color: rgba(255, 255, 255, 0.03);
    --text-color: #ffffff;
    --text-muted: #9ca3af;
    /* Tailwind cool gray */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
    --card-hover-bg: rgba(255, 255, 255, 0.05);
    --transition-speed: 0.4s;
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 242, 234, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 80, 0.08), transparent 25%);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

#three-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Allow clicks to pass through */
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Utility */
h1,
h2,
h3 {
    line-height: 1.2;
}

/* Header/Hero Styles */
.header {
    min-height: 90vh;
    /* Full viewport height feeling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 4rem;
    /* Navigate around fixed header if added later */
}

.name {
    font-size: clamp(3.5rem, 8vw, 6rem);
    /* Responsive font size */
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -2px;
    filter: drop-shadow(0 0 20px rgba(0, 242, 234, 0.2));
}

.title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-color);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.profile-image-container {
    width: 300px;
    height: 300px;
    margin-bottom: 2.5rem;
    position: relative;
    border-radius: 50%;
    padding: 6px;
    background: var(--gradient-main);
    box-shadow: 0 0 50px rgba(0, 242, 234, 0.25);
    transition: transform var(--transition-speed) ease;
}

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

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-color);
    background-color: var(--bg-color);
}

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

.intro-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Tech Stack Pills */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 2rem;
    max-width: 720px;
}

.tech-pill {
    padding: 0.45rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    user-select: none;
}

.tech-pill:hover {
    background: rgba(0, 242, 234, 0.06);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 14px rgba(0, 242, 234, 0.2), inset 0 0 8px rgba(0, 242, 234, 0.04);
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    /* More breathing room */
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    position: relative;
    /* display: inline-block; - Removed to allow block centering */
    /* left: 50%; - Removed as it causes off-center with block flow */
    /* transform: translateX(-50%); - Removed */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-main);
    border-radius: 10px;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.8rem 2.2rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-main);
    color: #000;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 242, 234, 0.3);
    transform: translateY(-2px);
}

/* Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

/* Project Card */
.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 242, 234, 0.3);
}

/* Subtle glow effect on card hover */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 10;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-image,
.project-media {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

/* Overlay gradient for image to text transition */
.project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    width: fit-content;
}

.project-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.project-link:hover::after {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    margin: 4rem 0 0;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.social-link:hover {
    transform: translateY(-5px);
    background: var(--gradient-main);
    color: #000;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.3);
}

.contact-form-inline {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 30px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-form-inline h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 600;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 242, 234, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-main);
    color: #000;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.3);
    filter: brightness(1.1);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-secondary:hover {
    background: rgba(0, 242, 234, 0.05);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.3), inset 0 0 10px rgba(0, 242, 234, 0.05);
    text-shadow: 0 0 8px rgba(0, 242, 234, 0.6);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col--center {
    align-items: center;
}

.footer-col--right {
    align-items: flex-end;
}

.footer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 220px;
    line-height: 1.5;
}

.footer-col-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--primary-color);
}

.footer-icons {
    display: flex;
    gap: 0.8rem;
}

.footer-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.footer-icon:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 242, 234, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
}

/* Animations Class Utilities */
.fade-in,
.slide-up,
.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal {
    transform: translateY(30px);
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .profile-image-container {
        width: 220px;
        height: 220px;
    }

    .name {
        font-size: 3rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .contact-form-inline {
        padding: 2rem;
    }

    .project-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .social-links {
        flex-direction: column;
        width: 100%;
    }

    .social-link {
        justify-content: center;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col--center,
    .footer-col--right {
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
    }
}