/* 
    HCG.github.io Inspired Dark Theme CSS 
*/
:root {
    --bg-color: #0a192f;
    --bg-light: #112240;
    --bg-lighter: #233554;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --accent: #64ffda;
    --accent-hover: rgba(100, 255, 218, 0.1);
    
    --nav-height: 100px;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

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

.text-muted {
    color: var(--text-muted) !important;
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* Buttons */
.custom-btn {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: var(--transition);
}
.custom-btn:hover {
    background-color: var(--accent-hover);
    color: var(--accent);
    transform: translateY(-3px);
}

.custom-btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: var(--transition);
}
.custom-btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background-color: rgba(204, 214, 246, 0.1);
    transform: translateY(-3px);
}

/* Navbar */
.custom-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}
.nav-link {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-mono);
    position: relative;
    padding: 10px;
}
.nav-link:hover {
    color: var(--accent);
}
.nav-link:hover {
    color: var(--accent);
}

/* Sections */
.section {
    padding: 100px 0;
}
.bg-alternate {
    background-color: rgba(17, 34, 64, 0.2); /* very subtle var(--bg-light) */
    box-shadow: inset 0 0 40px rgba(2, 12, 27, 0.3);
}
.section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 40px;
    white-space: nowrap;
}
.section-title::after {
    content: "";
    display: block;
    height: 1px;
    width: 300px;
    background-color: var(--bg-lighter);
    margin-left: 20px;
}
.title-icon {
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.hero-text {
    flex: 1;
}
.hero-greeting {
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 20px;
}
.hero-name {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}
.hero-role {
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.typed-text {
    color: var(--text-main);
}
.hero-description {
    color: var(--text-muted);
    max-width: 540px;
    font-size: 18px;
    line-height: 1.6;
}

/* Hero Image Container */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}
.image-container {
    position: relative;
    width: 300px;
    height: 300px;
}
.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(100,255,218,0.2) 0%, rgba(10,25,47,0) 70%);
    z-index: 1;
}
.profile-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-lighter);
    border: 2px solid var(--accent);
    border-radius: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.profile-placeholder:hover {
    transform: translate(-10px, -10px);
    box-shadow: 10px 10px 0 0 var(--accent);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}
.floating-badge i {
    color: var(--accent);
}
.badge-1 { top: -20px; right: 20px; animation-delay: 0s; }
.badge-2 { bottom: 40px; left: -20px; animation-delay: 2s; }
.badge-3 { bottom: -20px; right: 40px; animation-delay: 4s; }

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
}
.scroll-indicator span {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    margin-top: 20px;
    letter-spacing: 2px;
}
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}
@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Skills Grid */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.tech-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    transition: var(--transition);
}
.tech-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(2,12,27,0.7);
}
.tech-box i {
    font-size: 20px;
}

/* Project Cards */
.project-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--bg-lighter);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}
.project-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.project-img-wrapper::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: var(--transition);
}
.project-card:hover .project-img {
    transform: scale(1.05);
}
.project-card:hover .project-img-wrapper::after {
    background-color: transparent;
}
.project-title {
    color: var(--text-main);
    font-size: 22px;
    font-weight: 600;
}
.project-card:hover .project-title {
    color: var(--accent);
}
.project-summary {
    font-size: 15px;
}
.tech-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 15px;
}

/* Contact Section */
.contact-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    max-width: 600px;
}
.social-btn {
    display: inline-block;
    padding: 20px;
    background-color: var(--bg-lighter);
    border-radius: 8px;
    width: 120px;
    text-align: center;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 14px;
    transition: var(--transition);
}
.social-btn:hover {
    transform: translateY(-5px);
    color: var(--accent);
}

/* Timeline (Experience) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 2px;
    background-color: var(--bg-lighter);
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
}
.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--accent);
    transform: translateX(-50%);
    z-index: 1;
    transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
.timeline-content {
    background-color: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
}
.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    border-color: var(--accent);
}
.timeline-title {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 5px;
}
.timeline-title span {
    color: var(--accent);
}
.timeline-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}
.timeline-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted) !important;
}

/* Animated CV Button */
.cv-btn-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px; /* Border thickness */
    border-radius: 50px;
    overflow: hidden;
    background: rgba(2, 12, 27, 0.7);
}

.cv-btn-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 50%,
        rgba(100, 255, 218, 0.2) 80%,
        var(--accent) 100%
    );
    animation: rotate-light 3s linear infinite;
    z-index: 0;
}

.cv-btn-wrapper::after {
    content: '';
    position: absolute;
    inset: 2px; /* Inner background border thickness */
    background: var(--bg-color); /* Match navbar dark bg */
    border-radius: 50px;
    z-index: 1;
}

.cv-btn-inner {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 8px 24px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: transparent;
}

.cv-btn-inner i {
    color: var(--accent);
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.cv-btn-wrapper:hover .cv-btn-inner {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
}

.cv-btn-wrapper:hover .cv-btn-inner i {
    transform: translateY(-2px);
}

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