:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --accent: #ff2a5f; /* Neon pink/red accent */
    --accent-glow: rgba(255, 42, 95, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }
.mt-40 { margin-top: 40px; }

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.glitch-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--text-primary);
    position: relative;
    margin-bottom: 20px;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.accent {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

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

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

/* Common Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 150px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-photo-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin-bottom: -10px;
    z-index: 10;
}

.photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    z-index: -1;
    filter: blur(25px);
    opacity: 0.8;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(40%) contrast(1.1);
    mix-blend-mode: luminosity;
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    transition: var(--transition);
}

.profile-photo:hover {
    filter: grayscale(0%) contrast(1.1);
    mix-blend-mode: normal;
    transform: scale(1.05);
}

.greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.name {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bio {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

.btn.primary:hover {
    background: #fff;
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.btn.secondary {
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.btn.secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

/* About Section */
.about-section {
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-block {
    background: rgba(0,0,0,0.2);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.block-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 42, 95, 0.3);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-item h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.timeline-item .date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-item p, .timeline-item ul {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.timeline-item ul {
    padding-left: 20px;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skills-list li {
    background: rgba(255, 42, 95, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 42, 95, 0.3);
    font-size: 0.9rem;
    transition: var(--transition);
}

.skills-list li:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.tool-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.bar-bg {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

/* Overview Section */
.overview-section {
    padding-top: 100px;
}

.overview-text {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
}

.overview-text p {
    margin-bottom: 20px;
}

.overview-text strong {
    color: #fff;
}

/* Portfolio Section */
.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category {
    margin-bottom: 100px;
}

.text-header {
    margin-bottom: 40px;
    text-align: left;
    max-width: 800px;
}

.text-header h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    border-left: 5px solid var(--accent);
    padding-left: 15px;
}

.text-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    transition: var(--transition);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.grid-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(3px);
}

.play-btn {
    padding: 12px 25px;
    background: var(--accent);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(20px);
    transition: var(--transition);
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 42, 95, 0.2);
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item:hover .overlay {
    opacity: 1;
}

.grid-item:hover .play-btn {
    transform: translateY(0);
}

/* Contact */
.contact-card {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 42, 95, 0.2);
    box-shadow: 0 0 50px rgba(255, 42, 95, 0.05);
}

.contact-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-link:hover {
    color: var(--accent);
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.4s forwards;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-title {
    margin-bottom: 20px;
    color: #fff;
}

.modal-links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-btn {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Scroll Reveal Classes */
.hidden {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    filter: blur(5px);
}

.scatter-left {
    transform: translateY(80px) translateX(-50px) rotate(-6deg) scale(0.9);
}

.scatter-right {
    transform: translateY(80px) translateX(50px) rotate(6deg) scale(0.9);
}

.scatter-up {
    transform: translateY(80px) rotate(3deg) scale(0.95);
}

.show {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0) scale(1) !important;
    filter: blur(0);
}

/* Word Scatter Animations */
.scatter-word {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

/* Different variations of scattering for words */
.scatter-word.var-1 { transform: translateY(30px) rotate(-15deg) scale(0.8); }
.scatter-word.var-2 { transform: translateY(-30px) rotate(15deg) scale(1.2); }
.scatter-word.var-3 { transform: translateX(30px) rotate(10deg) scale(0.9); }
.scatter-word.var-4 { transform: translateX(-30px) rotate(-10deg) scale(1.1); }
.scatter-word.var-5 { transform: translateY(20px) translateX(20px) rotate(20deg) scale(0.7); }
.scatter-word.var-6 { transform: translateY(-20px) translateX(-20px) rotate(-20deg) scale(0.7); }

/* Trigger word animations when parent gets .show */
.show .scatter-word {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0) scale(1);
    filter: blur(0);
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        text-align: center;
        padding-top: 50px;
    }
    .name {
        font-size: 3.5rem;
    }
    .cta-buttons {
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
}
