:root {
    --primary-color: #00d2ff;
    --secondary-color: #9d50bb;
    --bg-dark: #0a0b10;
    --text-light: #f0f2f5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 210, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
    animation: scan 10s linear infinite;
    opacity: 0.3;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 210, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

header {
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

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

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    opacity: 0.7;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-content h1.visible {
    opacity: 1;
    transform: translateY(0);
}

.subtitle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

.cursor {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-left: 8px;
    animation: blink 1s step-end infinite;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    font-weight: 300;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.reveal-text {
    animation: revealText 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.fade-in-up {
    transform: translateY(30px);
    transition: all 1s ease;
}

.fade-in-up.visible {
    opacity: 0.6;
    transform: translateY(0);
}

.cta-buttons.fade-in-up {
    opacity: 0;
}

.cta-buttons.fade-in-up.visible {
    opacity: 1;
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(20px) skewY(5deg);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) skewY(0deg);
        filter: blur(0);
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    box-shadow: var(--neon-shadow);
}

.btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.5);
}

.btn.secondary {
    border: 1px solid var(--glass-border);
    color: #fff;
    background: var(--glass-bg);
}

.btn.secondary:hover {
    background: var(--glass-border);
    transform: translateY(-5px);
}

/* About Section */
#about {
    padding: 10rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 350px 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    max-width: 350px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--neon-shadow);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
}

.about-text h3 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.about-text strong {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text h3 {
        text-align: center;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
}

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

.expertise-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expertise-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

.expertise-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.expertise-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.expertise-card p {
    opacity: 0.6;
    font-weight: 300;
}

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

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
    border-color: var(--secondary-color);
}

.project-info {
    padding: 2.5rem;
}

.project-info h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-info p {
    opacity: 0.6;
    margin-bottom: 2rem;
    font-weight: 300;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 0.8rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--glass-border);
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05) 0%, rgba(157, 80, 187, 0.05) 100%);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 32px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.contact-card p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
}

.social-icon {
    color: #fff;
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 4rem 0;
    opacity: 0.4;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content h2 { font-size: 1.5rem; }
    nav ul { display: none; }
    .projects-container { grid-template-columns: 1fr; }
}
