/* --- Global Theme & Reset Rules --- */
:root {
    --bg-dark: #0a0a0c;
    --card-dark: #121216;
    --neon-cyan: #00f2fe;
    --neon-purple: #4facfe;
    --text-main: #f5f5f7;
    --text-muted: #a0a0aa;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* --- Navigation Bar UI --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 8%;
    background: rgba(18, 18, 22, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-main);
}

.logo span {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: var(--transition-smooth);
}

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

.menu-btn {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Global Section Title Layout --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    letter-spacing: 1px;
}

.section-title span {
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Hero Section UI --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    position: relative;
}

.hero-content {
    max-width: 55%;
}

.hero-content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.typing-text {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Button & Hover Glow Objects */
.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.6);
}

.secondary-btn {
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.secondary-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-glow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-glow:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: scale(1.1);
}

/* CSS Illustration Objects */
.hero-illustration {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-sphere {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0,242,254,0.2) 0%, rgba(79,172,254,0.05) 70%);
    border-radius: 50%;
    animation: pulse 4s infinite alternate;
}

.tech-stack-orbit {
    position: relative;
    width: 100%;
    height: 100%;
    animation: rotateOrbit 20s linear infinite;
}

.orbit-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--card-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.icon-1 { top: 0; left: 50%; transform: translateX(-50%); }
.icon-2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.icon-3 { left: 0; top: 50%; transform: translateY(-50%); }
.icon-4 { right: 0; top: 50%; transform: translateY(-50%); }

/* --- About Section UI --- */
.about-section {
    padding: 6rem 8%;
}

.about-card-glow {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.about-card-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79,172,254,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-card-glow:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 40px rgba(0, 242, 254, 0.05);
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.education-timeline {
    margin-top: 3rem;
}

.education-timeline h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--neon-cyan);
}

.edu-item {
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
}

.edu-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--neon-purple);
    border-radius: 50%;
}

.edu-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.edu-item p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- Experience Timeline UI --- */
.exp-section {
    padding: 6rem 8%;
    background: rgba(18, 18, 22, 0.3);
}

.timeline-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: calc(-2rem - 7px);
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--neon-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--card-dark);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(0, 242, 254, 0.2);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.company {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.2rem;
}

.timeline-content li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-size: 0.8rem;
}

/* --- Project Grid & Filters UI --- */
.project-section {
    padding: 6rem 8%;
}

.project-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    color: #000;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-dark);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.project-img-wrapper {
    height: 180px;
    background: linear-gradient(135deg, #16161f 0%, #0a0a0c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.project-card:hover .project-img-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 242, 254, 0.05);
}

.project-placeholder-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.project-card:hover .project-placeholder-icon {
    color: var(--neon-cyan);
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    height: 75px;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--neon-purple);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
}

/* --- Skills Layout UI --- */
.skills-section {
    padding: 6rem 8%;
    background: rgba(18, 18, 22, 0.3);
}

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

.skills-category-card {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.skills-category-card:hover {
    border-color: rgba(79, 172, 254, 0.3);
}

.skills-category-card h3 {
    font-size: 1.3rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.skill-item:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: scale(1.05);
}

/* --- Contact Section UI --- */
.contact-section {
    padding: 6rem 8%;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -3rem;
    margin-bottom: 4rem;
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-box i {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 10px;
    color: var(--neon-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.info-box p {
    color: var(--text-muted);
}

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

.contact-form input, .contact-form textarea {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.submit-btn {
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Core Animations --- */
@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    from { transform: scale(0.9); opacity: 0.4; }
    to { transform: scale(1.1); opacity: 0.8; }
}

/* Responsive Rules Configuration */
@media(max-width: 968px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        padding-top: 8rem;
        text-align: center;
        gap: 3rem;
    }
    .hero-content { max-width: 100%; }
    .btn-group, .social-icons { justify-content: center; }
    .contact-wrapper { flex-direction: column; gap: 3rem; }
    .nav-links { display: none; }
    .menu-btn { display: block; }
}