:root {
    --primary: #0a192f;
    --primary-light: #112240;
    --accent: #64ffda;
    --accent-dark: #45e0be;
    --text: #ccd6f6;
    --text-secondary: #8892b0;
    --white: #e6f1ff;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary);
    color: var(--text);
    overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(10, 25, 47, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.08);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white) !important;
    letter-spacing: 0.5px;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: var(--text) !important;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0.3rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.navbar-toggler {
    border-color: var(--accent);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(100,255,218,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #0d2137 50%, #0f2b4a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(100, 255, 218, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 6s infinite;
}

@keyframes float-particle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-greeting {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    font-family: 'Courier New', monospace;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 540px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(100, 255, 218, 0.05);
}

.btn-accent {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent:hover {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.15);
}

.btn-accent-filled {
    background: var(--accent);
    color: var(--primary);
    border: 2px solid var(--accent);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent-filled:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.25);
}

/* ========== SECTIONS ========== */
section {
    padding: 6rem 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.section-heading h2 span {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 400;
    margin-right: 0.5rem;
}

.section-heading::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(100, 255, 218, 0.15);
}

/* ========== ABOUT ========== */
#about {
    background: var(--primary);
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.highlight-card {
    background: var(--primary-light);
    border: 1px solid rgba(100, 255, 218, 0.08);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
}

.highlight-card .icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.highlight-card h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== SKILLS ========== */
#skills {
    background: var(--primary-light);
}

.skill-card {
    background: var(--primary);
    border: 1px solid rgba(100, 255, 218, 0.08);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(2, 12, 27, 0.5);
}

.skill-card .skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(100, 255, 218, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.6rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    background: rgba(100, 255, 218, 0.15);
    transform: scale(1.1);
}

.skill-card h5 {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* ========== EXPERIENCE TIMELINE ========== */
#experience {
    background: var(--primary);
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--accent);
    top: 2rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

.timeline-content {
    width: 45%;
    background: var(--primary-light);
    border: 1px solid rgba(100, 255, 218, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(100, 255, 218, 0.2);
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
}

.timeline-date {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-content .company {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.timeline-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline-content ul li::before {
    content: '\25B9';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.promotion-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
}

/* ========== EDUCATION ========== */
#education {
    background: var(--primary-light);
}

.edu-card {
    background: var(--primary);
    border: 1px solid rgba(100, 255, 218, 0.08);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.2);
    box-shadow: 0 15px 35px rgba(2, 12, 27, 0.5);
}

.edu-card .degree {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.edu-card .field {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.edu-card .school {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.edu-card .edu-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.edu-card .edu-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(100, 255, 218, 0.08);
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ========== CERTIFICATION ========== */
#certification {
    background: var(--primary);
}

.cert-card {
    background: var(--primary-light);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(100, 255, 218, 0.03), transparent 30%);
    animation: rotate-bg 8s linear infinite;
}

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

.cert-card > * {
    position: relative;
    z-index: 1;
}

.cert-card:hover {
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 20px 40px rgba(2, 12, 27, 0.5);
}

.cert-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: var(--accent);
}

.cert-card h4 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cert-card .cert-id {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.3rem;
    word-break: break-all;
}

.cert-card .cert-expiry {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ========== CONTACT ========== */
#contact {
    background: var(--primary-light);
}

.contact-info-card {
    background: var(--primary);
    border: 1px solid rgba(100, 255, 218, 0.08);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.05);
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    padding-left: 0.5rem;
}

.contact-item .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(100, 255, 218, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.contact-item .label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.contact-form {
    background: var(--primary);
    border: 1px solid rgba(100, 255, 218, 0.08);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

.contact-form .form-control,
.contact-form .form-control:focus {
    background: var(--primary-light);
    border: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--text);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(100, 255, 218, 0.1);
}

.contact-form .form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.contact-form label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* ========== FOOTER ========== */
footer {
    background: var(--primary);
    border-top: 1px solid rgba(100, 255, 218, 0.08);
    padding: 2rem 0;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(100, 255, 218, 0.2);
    color: var(--accent);
    transform: translateY(-3px);
}

/* ========== TYPING ANIMATION ========== */
.typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 576px) {
    section { padding: 4rem 0; }
    .section-heading h2 { font-size: 1.4rem; }
    .hero-badges { flex-direction: column; align-items: flex-start; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn-accent,
    .hero-btns .btn-accent-filled { width: 100%; justify-content: center; }
}
