:root {
    --bg-color: #030303;
    --surface-color: #0d0d0d;
    --text-primary: #f2f2f2;
    --text-secondary: #a3a3a3;
    --accent: #ff2a5f;
    --accent-glow: rgba(255, 42, 95, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-primary: 'Outfit', sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

p {
    color: var(--text-secondary);
}

/* Utilities */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main, footer {
    position: relative;
    /* Removed z-index: 2 to prevent trapping the Z-index of the modal overlay */
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-panel {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.glow {
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.title {
    font-size: clamp(4rem, 8vw, 7rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.accent, .title {
    position: relative;
    z-index: 2;
}

.accent {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-primary);
    position: relative;
}

.accent::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    opacity: 0;
    transition: 0.5s ease;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

.title:hover .accent::after {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    animation: fadeUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-content .btn-primary {
    animation: fadeUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ambient-glow {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(60px);
    opacity: 0.5;
    animation: pulseGlow 8s infinite alternate;
}

.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Portfolio Section */
.portfolio {
    padding: 8rem 5%;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.divider {
    height: 1px;
    flex-grow: 1;
    background: var(--glass-border);
}

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

.video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.video-card:hover .thumbnail {
    transform: scale(1.05);
}

.video-card:hover .play-indicator {
    opacity: 1;
    transform: scale(1);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .card-info {
    transform: translateY(0);
    opacity: 1;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.card-info p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999 !important;
    isolation: isolate;
    transform: translateZ(9999px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    z-index: 100 !important;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent);
}

.video-container {
    width: 100%;
    height: 100%;
    background: #000;
}

.mock-player {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #111, #222);
}

.mock-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Contact Modal Specifics */
.contact-modal-content {
    max-width: 900px;
    /* Removed opaque background so it inherits the beautiful premium .glass style */
}

.contact-modal-body {
    display: flex;
    flex-wrap: wrap;
    color: var(--text-primary);
}

.contact-info-panel, .contact-form-panel {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
}

.contact-info-panel {
    background: linear-gradient(135deg, rgba(255, 42, 95, 0.08), transparent);
    border-right: 1px solid var(--glass-border);
}

.contact-modal-body h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-detail {
    margin-top: 1.5rem;
}

.detail-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:hover {
    border-color: rgba(255, 42, 95, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 42, 95, 0.3);
}

.w-100 {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .contact-info-panel {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
}

/* About Section */
.about {
    padding: 6rem 5%;
    position: relative;
}

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

.bio {
    padding: 3rem;
    border-radius: 12px;
    font-size: 1.25rem;
    line-height: 1.8;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bio:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 42, 95, 0.6);
    box-shadow: 0 15px 35px rgba(255, 42, 95, 0.15);
}

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

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

.achievements-grid .skill-category h3 {
    letter-spacing: 1px;
}

.achievements-grid .skill-category li {
    letter-spacing: 0.6px;
}

.skill-category {
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.skill-category:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 42, 95, 0.6);
    box-shadow: 0 15px 35px rgba(255, 42, 95, 0.15);
}

.skill-category h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.7;
}

.skill-category li:last-child {
    margin-bottom: 0;
}

.skill-category li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ Section */
.faq {
    padding: 6rem 5%;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 42, 95, 0.4);
    box-shadow: 0 10px 25px rgba(255, 42, 95, 0.1);
}

.faq-item summary {
    padding: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 2rem;
    color: var(--accent);
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 300;
    transition: transform 0.4s ease, color 0.4s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-content {
    padding: 0 2rem 2rem 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    animation: fadeInSlideDown 0.4s ease forwards;
}

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

/* Contact / Footer */
.contact {
    padding: 6rem 5% 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-card {
    padding: 4rem;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    margin-bottom: 4rem;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.social-icon:hover {
    color: white;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.4);
}

.footer-bottom {
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    from { transform: translateY(-50%) scale(1); opacity: 0.4; }
    to { transform: translateY(-50%) scale(1.1); opacity: 0.7; }
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
