:root {
    /* Color Palette */
    --bg-dark: #0f0508;
    --bg-card: rgba(30, 10, 15, 0.6);
    --primary: #ff1f40;
    --primary-glow: rgba(255, 31, 64, 0.4);
    --primary-dark: #8b001a;
    --text-main: #ffffff;
    --text-muted: #b0a4a8;
    --accent: #ff4d6d;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Spacing */
    --nav-height: 70px;
    --section-padding: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    background: rgba(20, 5, 8, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    z-index: 1000;
    padding: 8px 12px;
}

.nav-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 40px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    background: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: radial-gradient(circle at 70% 30%, rgba(139, 0, 26, 0.15) 0%, transparent 50%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
}

.status-pill {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-text h1,
.hero-name {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero-name {
    font-family: 'Poppins', sans-serif;
    font-size: 64px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    background: linear-gradient(90deg, #ffffff 0%, #ff4d6d 60%, #ff1f40 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-text {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.bio {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 30px;
}

.location-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-main);
}

.badge i {
    color: var(--primary);
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(255, 31, 64, 0.05);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links span {
    font-size: 14px;
    color: var(--text-muted);
}

.social-links a {
    color: var(--text-main);
    font-size: 18px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
    z-index: 2;
    position: relative;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

/* --- Section General --- */
.section-padding {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.title-futuristic {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-main);
}

/* --- About Section --- */
.about {
    background: linear-gradient(to bottom, rgba(15, 5, 8, 0.5), rgba(40, 10, 15, 0.8));
    position: relative;
}

.about-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-content {
    flex: 1.2;
}

.about-title {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: left;
}

.about-description {
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.8;
}

.about-description p {
    margin-bottom: 20px;
    color: var(--text-muted);
    text-align: left;
}

.about-description .intro-p {
    color: var(--text-main);
    font-weight: 500;
}

.skills-focus {
    margin-top: 30px;
}

.focus-title {
    color: var(--text-main) !important;
    font-weight: 600;
    margin-bottom: 15px !important;
}

.minimal-skills {
    list-style: none;
}

.minimal-skills li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.accent-hash {
    color: var(--primary);
    font-weight: 700;
    margin-right: 8px;
    font-family: 'Orbitron', sans-serif;
}

.about-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame {
    position: relative;
    background: #fff;
    padding: 12px;
    padding-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
    transform: rotate(3deg);
    transition: 0.3s;
}

.photo-frame:hover {
    transform: rotate(0deg) scale(1.05);
}

.image-inner {
    width: 280px;
    height: 280px;
    overflow: hidden;
    background: #000;
}

.image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tape-piece {
    position: absolute;
    width: 100px;
    height: 35px;
    background: rgba(80, 20, 25, 0.6);
    backdrop-filter: blur(5px);
    z-index: 5;
}

.tape-tr {
    top: -15px;
    right: -30px;
    transform: rotate(45deg);
}

.tape-bl {
    bottom: -10px;
    left: -30px;
    transform: rotate(45deg);
}

/* --- Skills Section --- */
.skills {
    background: var(--bg-dark);
}

.skills-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    perspective: 1000px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card-3d {
    height: 180px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.card-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.card-3d-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transform: translateZ(30px); /* Lift icon and text */
}

.card-3d-front i {
    font-size: 45px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.card-3d-front span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Poppins', sans-serif;
}

.skill-card-3d:hover {
    transform: rotateX(10deg) rotateY(10deg);
}

.skill-card-3d:hover .card-3d-inner {
    border-color: var(--primary);
    background: rgba(255, 31, 64, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}

/* Floating animation for 3D cards */
@keyframes float3d {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    33% { transform: translateY(-10px) rotateX(5deg) rotateY(-5deg); }
    66% { transform: translateY(5px) rotateX(-5deg) rotateY(5deg); }
}

.skill-card-3d {
    animation: float3d 6s ease-in-out infinite;
}

.skill-card-3d:nth-child(2n) {
    animation-delay: 1.5s;
}

.skill-card-3d:nth-child(3n) {
    animation-delay: 3s;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 28px;
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.card-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.card-glow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

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

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 31, 64, 0.03));
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.project-img {
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-img-contain img {
    object-fit: contain;
    background: #f0f4ff;
    padding: 10px;
}

.project-img-light img {
    background: #eef2fb;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: 0.3s;
}

.project-links a:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags span {
    background: linear-gradient(135deg, rgba(255, 31, 64, 0.15), rgba(255, 31, 64, 0.05));
    border: 1px solid rgba(255, 31, 64, 0.3);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 31, 64, 0.05);
}

/* --- Footer --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 48px;
    }
    
    .about-flex {
        flex-direction: column;
        gap: 40px;
    }

    .about-title {
        text-align: center;
    }

    .about-description p {
        text-align: center;
    }

    .minimal-skills {
        display: inline-block;
        text-align: left;
    }

    .skills-focus {
        text-align: center;
    }

    .photo-frame {
        transform: rotate(0deg);
        width: fit-content;
    }

    .bio {
        margin: 0 auto 30px;
    }
    
    .location-badges, .hero-btns, .social-links {
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .image-wrapper {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .navbar {
        width: 90%;
        padding: 5px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .role-text {
        font-size: 24px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
