:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --primary-color: #00f3ff;
    --secondary-color: #bc13fe;
    --accent-color: #2b2b2b;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
}


/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.5);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-color);
    cursor: pointer;
}

.logo .accent {
    color: var(--primary-color);
}

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

.nav-links li a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--text-color);
    /* Fallback */
}

.nav-links li a:hover,
.nav-links li a.active {
    color: transparent;
    /* reveal gradient */
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 5% 50px;
}

/* Animated Gradient Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(125deg, #0a0a0a 0%, #1a1a2e 25%, #0a0a0a 50%, #16213e 75%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 243, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(188, 19, 254, 0.08) 0%, transparent 50%);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.hero-img-box {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.25);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

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

.hero-content {
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.glitch {
    position: relative;
    color: var(--text-color);
}

.hero-role {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--primary-color);
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #a0a0a0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.4s;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.7s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Tablet View */
@media screen and (max-width: 968px) {
    .hero {
        padding: 100px 5% 60px;
    }

    .hero-container {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-img-box {
        width: 180px;
        height: 180px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-role {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Mobile View */
@media screen and (max-width: 576px) {
    .hero {
        padding: 120px 8% 40px;
        min-height: auto;
    }

    .hero-container {
        gap: 1.5rem;
    }

    .hero-img-box {
        width: 140px;
        height: 140px;
        border-width: 2px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 2.1rem;
        margin-bottom: 0.3rem;
    }

    .hero-role {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 0.8rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .scroll-indicator {
        display: none;
    }
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
}

.scroll-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    margin: 10px auto;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.5s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 243, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.5s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger animation for links */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-role {
        font-size: 1.2rem;
    }
}

/* --- Section General --- */
.section {
    padding: 3rem 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title .accent {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.cyber-frame {
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: var(--text-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transition: all 0.5s ease;
}

.cyber-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50%;
    height: 50%;
    border-top: 4px solid var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
    transition: all 0.5s ease;
}

.cyber-frame::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50%;
    height: 50%;
    border-bottom: 4px solid var(--secondary-color);
    border-right: 4px solid var(--secondary-color);
    transition: all 0.5s ease;
}

.cyber-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.4);
}

.cyber-frame:hover::before,
.cyber-frame:hover::after {
    width: 100%;
    height: 100%;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #c0c0c0;
    font-size: 1rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-card {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

@media screen and (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin-bottom: 3rem;
    }

    .stats {
        justify-content: center;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* --- Experience Section (Timeline) --- */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 3px solid var(--secondary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item:hover::after {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.8);
}

.timeline-content {
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.03);
    position: relative;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.timeline-content h4 {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 400;
}

.timeline-content .date {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- Certifications & Education --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.cert-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.cert-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.cert-card p {
    font-size: 0.9rem;
    color: #888;
}

.subsection-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.education-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.edu-card {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-left: 3px solid var(--secondary-color);
    min-width: 300px;
}

.edu-card h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.edu-card .school {
    display: block;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.edu-card .year {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Timeline Responsive */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        /* Reduced from 3rem */
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        /* Reduced padding from 70px */
        padding-right: 15px;
        /* Reduced padding from 25px */
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item.right {
        left: 0%;
    }
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.contact-info p {
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
    transform: translateY(-3px);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

/* --- Footer --- */
.footer {
    padding: 2rem;
    text-align: center;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

/* Scroll Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Contact */
@media screen and (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}