:root {
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.7);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-glow: rgba(255, 255, 255, 0.5);
    --border-light: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --font-main: 'Inter', sans-serif;
}

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

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

/* Background Video */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
    filter: blur(2px);
}

/* Glassmorphic Base */
.glass, .navbar, .card, .carousel-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 20px;
    left: 5%;
    width: 90%;
    z-index: 1000;
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px black;
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, white, transparent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: white;
}

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

.btn-download {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 5%;
    text-align: center;
}

.hero-content {
    z-index: 2;
}

.glitch-text {
    font-size: clamp(3rem, 15vw, 8rem);
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.3), -0.05em -0.025em 0 rgba(0, 255, 255, 0.3);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: none; opacity: 1; }
    7% { transform: skew(0.5deg, -0.9deg); opacity: 0.75; }
    10% { transform: none; opacity: 1; }
    27% { transform: none; opacity: 1; }
    30% { transform: skew(0.8deg, -0.2deg); opacity: 0.75; }
    35% { transform: none; opacity: 1; }
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #aaa, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Features Carousel */
.features-section {
    padding: 4rem 5%;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.15, 1);
}

.carousel-item {
    min-width: 320px;
    margin: 0 15px;
    padding: 2rem;
    border-radius: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-light);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, white 100deg, transparent 180deg, white 280deg, transparent 360deg);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.carousel-item:hover::before {
    opacity: 0.15;
    animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
    to { transform: rotate(360deg); }
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    width: 55px;
    height: 55px;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Resume Grid Layout */
.resume-grid {
    display: grid;
    grid-template-columns: 180px 1fr 200px;
    gap: 20px;
    padding: 2rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.grid-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 1.8rem;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.profile-card {
    text-align: center;
}

.profile-video-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

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

.profile-title {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.objective h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.details-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.card ul {
    list-style: none;
}

.card li {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
}

/* Skills Cloud */
.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skills-cloud span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    transition: 0.2s;
}

.skills-cloud span:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* Timeline */
.timeline-item {
    margin-bottom: 1.8rem;
}

.timeline-item h4 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}

.timeline-item span {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Full Width */
.full-width {
    grid-column: 1 / -1;
}

.project-item {
    margin-bottom: 1.5rem;
}

.project-item h4 {
    margin-bottom: 0.3rem;
    color: white;
}

/* Signature */
.signature {
    text-align: center;
    opacity: 0.6;
}

.signature img {
    max-width: 200px;
    filter: invert(1) brightness(0.8);
}

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

.popup-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: popupFade 0.3s;
}

@keyframes popupFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1200px) {
    .resume-grid {
        grid-template-columns: 1fr;
    }
    .grid-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 5%;
        width: 90%;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        border-radius: 30px;
        padding: 2rem;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-item {
        min-width: 260px;
    }
}