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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff006e;
    --accent-color: #00ffa3;
    --bg-dark: #0a0e27;
    --bg-darker: #050812;
    --text-light: #e0e0e0;
    --text-lighter: #ffffff;
    --card-bg: #1a1f3a;
    --border-color: #2a2f4a;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dotAnimation {
    0%, 20% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    99% {
        opacity: 0;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(255, 0, 110, 0.4);
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #050812 0%, #0a0e27 50%, #1a1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 3s ease-out forwards;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loading-text {
    font-size: 1.8rem;
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    animation: textGlow 2s ease-in-out infinite;
}

.loading-subtext {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 500;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    animation: dotAnimation 1.4s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0a0e27 0%, #050812 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(5, 8, 18, 0.7);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(42, 47, 74, 0.3);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.05);
    animation: slideInDown 0.6s ease-out;
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #050812 0%, #0a0e27 50%, #1a1f3a 100%);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--text-lighter);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 45px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #00b8d4);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.5);
}

/* Sections */
section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out;
}

section h2 {
    font-size: 3.2rem;
    margin-bottom: 3rem;
    color: var(--text-lighter);
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* About Section */
.about p {
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.highlight-item {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.5) 0%, rgba(26, 31, 58, 0.2) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.highlight-item:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(26, 31, 58, 0.4) 100%);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.highlight-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

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

.skill-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(26, 31, 58, 0.3) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.9) 0%, rgba(26, 31, 58, 0.5) 100%);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.25);
}

.skill-card:hover::before {
    top: -25%;
    right: -25%;
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.skill-card p {
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* Experience Section */
.experience-item {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.5) 0%, rgba(26, 31, 58, 0.2) 100%);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-color);
    border-radius: 12px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: slideInLeft 0.8s ease-out;
}

.experience-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.experience-item h3 {
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Past Work Section */
.past-work {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.5) 0%, rgba(26, 31, 58, 0.2) 100%);
    text-align: center;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.past-work h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.past-work p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 1rem;
}

.cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.contact-item {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.5) 0%, rgba(26, 31, 58, 0.2) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.contact-item:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(26, 31, 58, 0.4) 100%);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Services Section */
.services-section {
    background: linear-gradient(180deg, #0a0e27 0%, #050812 100%);
}

.services-section h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: var(--text-lighter);
    font-weight: 900;
}

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

.service-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(26, 31, 58, 0.3) 100%);
    padding: 3rem 2.5rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 110, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.9) 0%, rgba(26, 31, 58, 0.5) 100%);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    color: var(--text-lighter);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Projects Header */
.projects-header {
    background: linear-gradient(135deg, #050812 0%, #0a0e27 50%, #1a1f3a 100%);
    text-align: center;
    padding: 120px 0;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.projects-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.projects-header h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-lighter);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.projects-header p {
    font-size: 1.3rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* Portfolio Section */
.portfolio-section {
    background: linear-gradient(180deg, #0a0e27 0%, #050812 100%);
    padding: 100px 0;
}

.portfolio-section .container h2 {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--text-lighter);
    font-weight: 900;
    letter-spacing: -1px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out;
}

.tab-btn {
    padding: 14px 28px;
    border: 2px solid var(--border-color);
    background-color: transparent;
    color: var(--text-light);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #00b8d4);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
    animation: glow 2s ease-in-out infinite;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 3.5rem;
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.5) 0%, rgba(26, 31, 58, 0.2) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.portfolio-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 40px 80px rgba(0, 212, 255, 0.25);
    transform: translateY(-15px);
}

.portfolio-video-wrapper {
    position: relative;
    width: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, #1a1f3a 0%, #050812 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.portfolio-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 220px;
}

.video-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.video-loading-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-lighter);
}

.video-loading-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-light);
}

.video-play-btn {
    border: 1px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(255, 0, 110, 0.18));
    color: var(--text-lighter);
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.video-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.22);
    border-color: var(--secondary-color);
}

.video-open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.portfolio-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #1a1f3a 0%, #050812 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.portfolio-item:hover .portfolio-image-wrapper img {
    transform: scale(1.08);
    filter: brightness(1);
}

.portfolio-details {
    padding: 2.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-item h3 {
    color: var(--text-lighter);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.portfolio-meta {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
}

.portfolio-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 100%);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-date {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
}

.portfolio-client {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.portfolio-client strong {
    color: var(--primary-color);
}

.portfolio-item p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.portfolio-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 18, 0.92);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: min(90vw, 1100px);
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.98) 0%, rgba(5, 8, 18, 0.98) 100%);
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
    padding: 0.9rem;
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-lighter);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.video-modal-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 84vh;
    border-radius: 16px;
    overflow: hidden;
    background: #050812;
}

.video-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-modal-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #050812;
}

.mobile-player-shell {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-player-shell video {
    flex: 1;
    min-height: 0;
    border-radius: 14px;
    background: #050812;
}

.mobile-player-shell video::-webkit-media-controls,
.mobile-player-shell video::-webkit-media-controls-enclosure,
.mobile-player-shell video::-webkit-media-controls-panel,
.mobile-player-shell video::-webkit-media-controls-play-button,
.mobile-player-shell video::-webkit-media-controls-start-playback-button,
.mobile-player-shell video::-webkit-media-controls-overlay-play-button,
.mobile-player-shell video::-webkit-media-controls-timeline,
.mobile-player-shell video::-webkit-media-controls-current-time-display,
.mobile-player-shell video::-webkit-media-controls-time-remaining-display,
.mobile-player-shell video::-webkit-media-controls-mute-button,
.mobile-player-shell video::-webkit-media-controls-volume-slider,
.mobile-player-shell video::-webkit-media-controls-fullscreen-button,
.mobile-player-shell video::-webkit-media-controls-rewind-button,
.mobile-player-shell video::-webkit-media-controls-return-to-realtime-button,
.mobile-player-shell video::-webkit-media-controls-seek-back-button,
.mobile-player-shell video::-webkit-media-controls-seek-forward-button,
.mobile-player-shell video::-webkit-media-controls-toggle-closed-captions-button {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.mobile-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.15rem 0 0.1rem;
}

.mobile-player-btn {
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-lighter);
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    min-width: 92px;
}

.mobile-player-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(0, 212, 255, 0.16);
}

body.video-modal-open {
    overflow: hidden;
}

.role-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2) 0%, rgba(255, 0, 110, 0.05) 100%);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.portfolio-cta {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    padding: 0.8rem 0;
    border-bottom: 3px solid transparent;
    transition: all 0.4s ease;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.portfolio-cta:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    transform: translateX(8px);
}

.no-projects {
    text-align: center;
    color: var(--text-light);
    padding: 4rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: rgba(5, 8, 18, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(42, 47, 74, 0.3);
    transition: all 0.3s ease;
}

footer:hover {
    border-top-color: var(--primary-color);
}

footer p {
    font-weight: 600;
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 18, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-container {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.95) 0%, rgba(26, 31, 58, 0.8) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideInUp 0.4s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: none;
    -webkit-text-fill-color: unset;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form-group {
    display: flex;
    flex-direction: column;
}

.login-form-group label {
    color: var(--text-lighter);
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-form-group input {
    padding: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: rgba(10, 14, 39, 0.6);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(10, 14, 39, 0.8);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.login-form-group input::placeholder {
    color: rgba(224, 224, 224, 0.4);
}

.login-error {
    background: rgba(255, 0, 110, 0.15);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.login-btn {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), #00b8d4);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.login-btn:active {
    transform: translateY(-1px);
}

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

/* Admin Header Actions */
.admin-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-logout {
    background: rgba(255, 0, 110, 0.2);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.admin-logout:hover {
    background: var(--secondary-color);
    color: white;
}

.admin-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.95) 0%, rgba(26, 31, 58, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-left: 2px solid var(--primary-color);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-panel.active {
    right: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(5, 8, 18, 0.5);
}

.admin-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.admin-close {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(5, 8, 18, 0.3);
}

.admin-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.admin-tab:hover {
    color: var(--primary-color);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
}

.admin-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.admin-tab-content.active {
    display: block;
}

.projects-table-wrapper {
    overflow-x: auto;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.projects-table thead {
    background: rgba(0, 212, 255, 0.1);
}

.projects-table th {
    padding: 1rem 0.8rem;
    text-align: left;
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
}

.projects-table td {
    padding: 1rem 0.8rem;
    border-bottom: 1px solid rgba(42, 47, 74, 0.5);
    color: var(--text-light);
}

.projects-table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.table-btn-edit {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.table-btn-edit:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.table-btn-delete {
    background: rgba(255, 0, 110, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.table-btn-delete:hover {
    background: var(--secondary-color);
    color: white;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.admin-form .form-group {
    display: flex;
    flex-direction: column;
}

.admin-form label {
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(10, 14, 39, 0.6);
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(10, 14, 39, 0.8);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.admin-form textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.admin-btn {
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
}

.admin-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #00b8d4);
    color: var(--bg-dark);
}

.admin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.admin-btn-secondary {
    background: rgba(255, 0, 110, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.admin-btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.admin-panel::-webkit-scrollbar {
    width: 6px;
}

.admin-panel::-webkit-scrollbar-track {
    background: rgba(42, 47, 74, 0.3);
}

.admin-panel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.admin-panel::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    section h2 {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .portfolio-section .container h2 {
        font-size: 2rem;
    }

    .projects-header {
        padding: 80px 0;
    }

    .projects-header h1 {
        font-size: 2.5rem;
    }

    .portfolio-details {
        padding: 2rem;
    }

    .portfolio-item h3 {
        font-size: 1.4rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin: 1.75rem 0;
    }

    .portfolio-item {
        border-radius: 16px;
    }

    .portfolio-video-wrapper,
    .portfolio-video-placeholder {
        min-height: 200px;
    }

    .video-loading-state {
        gap: 0.7rem;
    }

    .video-loading-title {
        font-size: 1.05rem;
    }

    .video-loading-subtitle {
        font-size: 0.78rem;
    }

    .video-play-btn {
        padding: 0.8rem 1.1rem;
        font-size: 0.82rem;
        min-width: 140px;
    }

    .filter-tabs {
        gap: 0.8rem;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .about-highlights {
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .portfolio-item h3 {
        font-size: 1.2rem;
    }

    .portfolio-details {
        padding: 1.5rem;
    }

    .portfolio-grid {
        gap: 1.2rem;
        margin: 1.25rem 0;
    }

    .portfolio-video-wrapper,
    .portfolio-video-placeholder {
        min-height: 180px;
    }

    .portfolio-item h3 {
        margin-bottom: 1rem;
    }

    .video-loading-title {
        font-size: 0.98rem;
    }

    .video-loading-subtitle {
        font-size: 0.72rem;
    }

    .video-play-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        min-width: 128px;
    }

    .container {
        padding: 0 15px;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.8rem;
    }
}

/* Scroll Animation */
[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    animation: fadeInUp 0.8s ease-out forwards;
}
