:root {
    --bg-dark: #070714;
    --bg-card: rgba(18, 18, 38, 0.65);
    --border-cyan: #22d3ee;
    --border-pink: #e879f9;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

/* --- 3D Floating Animations & Background Elements --- */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.9) 0%, rgba(7, 7, 20, 1) 90%);
}

.sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: floating3D 12s infinite ease-in-out;
}

.sphere-1 {
    width: 300px;
    height: 300px;
    background: var(--border-pink);
    top: 15%;
    left: -5%;
}

.sphere-2 {
    width: 250px;
    height: 250px;
    background: var(--border-cyan);
    top: 50%;
    right: 5%;
    animation-delay: -4s;
}

.polygon-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(34, 211, 238, 0.08);
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    top: 20%;
    left: 30%;
    transform: translate(-50%, -50%);
    filter: blur(5px);
    animation: rotate3D 30s infinite linear;
}

@keyframes floating3D {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-40px) scale(1.1) rotate(180deg); }
}

@keyframes rotate3D {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(10, 10, 25, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 12px 30px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--border-cyan);
    text-decoration: none;
    font-size: 1.3rem;
}
.logo span { color: var(--border-pink); }

.nav-menu { display: flex; gap: 20px; }

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--border-cyan);
}

/* --- Button Styling with Neon Animations --- */
.btn-hire {
    background: var(--border-cyan);
    color: #000;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 0 15px var(--border-cyan);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-hire:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px var(--border-cyan), 0 0 50px rgba(34, 211, 238, 0.4);
}

.btn-primary {
    background: var(--border-cyan);
    color: #000;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--border-cyan);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-main);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-pink);
    box-shadow: 0 0 15px rgba(232, 121, 249, 0.3);
    transform: translateY(-4px);
}

/* --- Hero Section Design --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 10% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(45deg, var(--border-cyan), var(--border-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-alt {
    background: linear-gradient(45deg, var(--border-pink), var(--border-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-actions { display: flex; gap: 20px; }

/* --- Global Cards Architecture --- */
.section-container {
    padding: 80px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(34, 211, 238, 0.05);
}

/* --- Services Grid Structure --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 15px; font-family: var(--font-heading); }
.service-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* --- Skills Layout Architecture --- */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}

.tag {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover, .tag.active {
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--border-cyan);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.skills-bars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px 50px;
}

.skill-progress-item { display: flex; flex-direction: column; gap: 8px; }
.skill-info { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.9rem; }
.progress-track { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--border-cyan), var(--border-pink));
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* --- Projects Panels Setup --- */
.featured-project {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    border-left: 4px solid var(--border-cyan);
}

.badge {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--border-cyan);
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.featured-info h3 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 20px; }
.featured-info p { color: var(--text-muted); line-height: 1.7; margin-bottom: 30px; }
.featured-actions { display: flex; gap: 15px; }

.featured-graphic {
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-icon-3d {
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transform: rotateX(15deg) rotateY(-15deg);
    animation: floatingCard 6s infinite ease-in-out;
}

@keyframes floatingCard {
    0%, 100% { transform: rotateX(15deg) rotateY(-15deg) translateY(0); }
    50% { transform: rotateX(10deg) rotateY(-10deg) translateY(-10px); }
}

.projects-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.sub-project-card h3 { font-family: var(--font-heading); margin-bottom: 15px; }
.sub-project-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.9rem; margin-bottom: 20px; }
.project-link {
    color: var(--border-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}
.project-link:hover { color: var(--border-pink); }

/* --- Clean Interactive Experience Timeline --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid rgba(255,255,255,0.05);
}

.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
    position: absolute;
    left: -41px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-cyan);
    box-shadow: 0 0 10px var(--border-cyan);
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.timeline-card h3 { font-family: var(--font-heading); margin-bottom: 5px; }
.company-name { color: var(--border-cyan); font-size: 1rem; margin-bottom: 15px; font-weight: 500; }
.timeline-card ul { padding-left: 20px; color: var(--text-muted); }
.timeline-card li { margin-bottom: 10px; line-height: 1.6; font-size: 0.95rem; }

/* --- Contact & Forms --- */
.contact-card { max-width: 650px; margin: 0 auto; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 2px; color: var(--text-muted); }

.form-group input, .form-group textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--border-cyan);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.15);
}

.btn-submit {
    width: 100%;
    background: var(--border-cyan);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.2);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--border-cyan);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 40px auto 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-socials { display: flex; gap: 15px; }
.footer-socials a { color: var(--text-muted); transition: color 0.3s; }
.footer-socials a:hover { color: var(--border-cyan); }

/* --- Responsive Adjustments --- */
@media(max-width: 768px) {
    .nav-menu { display: none; }
    .hero-title { font-size: 2.5rem; }
    .featured-project { grid-template-columns: 1fr; }
    .featured-graphic { display: none; }
    .skills-bars-container { grid-template-columns: 1fr; }
}