:root {
    --bg-color: #050511;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-color: #e0e0e0;
    --text-muted: #a0a0b0;
    --primary: #00f3ff;
    --secondary: #bd00ff;
    --accent: #ff0055;
    --nav-bg: rgba(5, 5, 17, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(0, 243, 255, 0.3);
    --timeline-line: rgba(255, 255, 255, 0.2);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.light-mode {
    --bg-color: #f0f2f5;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-color: #1a1a1a;
    --text-muted: #555;
    --primary: #007bff;
    --secondary: #6610f2;
    --accent: #dc3545;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    --glow: 0 0 15px rgba(0, 123, 255, 0.2);
    --timeline-line: rgba(0, 0, 0, 0.1);
}

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

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

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s;
    mix-blend-mode: screen;
}

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: var(--glass-border);
    transition: padding 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

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

.dot {
    color: var(--primary);
    text-shadow: var(--glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

#theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    color: var(--accent);
}

/* Mobile Burger */
.burger {
    display: none;
    cursor: pointer;
}

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

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

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.greeting {
    font-size: 1.5rem;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.glitch {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-color);
    position: relative;
    margin-bottom: 1rem;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(90px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(30px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(70px, 9999px, 90px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(90px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(50px, 9999px, 30px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 70px, 0);
    }

    80% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(40px, 9999px, 60px, 0);
    }
}

.typewriter {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-family: monospace;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary);
}

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

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: width 0.3s ease;
}

.primary-btn:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary);
}

.primary-btn:hover::before {
    width: 100%;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.secondary-btn:hover {
    border-color: var(--text-color);
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.tech-circle {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.c1 {
    width: 100%;
    height: 100%;
    border-bottom: 4px solid var(--primary);
    transform: rotateX(60deg);
}

.c2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-right: 4px solid var(--secondary);
    transform: rotateY(60deg);
}

.c3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top: 4px solid var(--accent);
    transform: rotateZ(20deg);
}

.icon-float {
    position: absolute;
    font-size: 2.5rem;
    color: var(--text-color);
    background: var(--bg-color);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    border: 1px solid var(--glass-border);
}

.java {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20s);
    animation: counter-rotate 20s infinite linear;
}

.react {
    bottom: 20%;
    right: 0;
    animation: counter-rotate 20s infinite linear;
}

.aws {
    bottom: 20%;
    left: 0;
    animation: counter-rotate 20s infinite linear;
}

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

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

/* Sections Common */
.section {
    padding: 6rem 10%;
    min-height: 80vh;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: var(--glow);
}

.highlight {
    color: var(--primary);
}

/* About Section */
.about-container {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: var(--glass-border);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--secondary);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--timeline-line);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

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

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

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--glow);
}

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

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: var(--glass-border);
    position: relative;
    transition: all 0.3s;
}

.card-glow:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    border-color: var(--primary);
}

.date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
}

.timeline-content h3 {
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

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

.tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: var(--glass-border);
}

.skill-category h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: var(--font-heading);
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-cloud span {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.skill-cloud span:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: var(--glass-border);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1.5rem;
    width: 40px;
    text-align: center;
}

.info-item h4 {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.info-item p,
.info-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--primary);
}

.contact-form {
    flex: 1.5;
    min-width: 300px;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: var(--glass-border);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    padding: 10px 0;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group input:valid,
.form-group textarea:focus,
.form-group textarea:valid {
    border-color: var(--primary);
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary);
}

.submit-btn {
    width: 100%;
    cursor: pointer;
}

.submit-btn i {
    margin-left: 10px;
}

footer {
    padding: 2rem;
    text-align: center;
    background: var(--nav-bg);
    border-top: var(--glass-border);
    margin-top: 4rem;
    color: var(--text-muted);
}

.heart {
    color: var(--accent);
}


/* Company Header & Logos */
.company-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
    padding: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* CDIC Project Highlight */
.project-highlight {
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.project-highlight:hover {
    background: rgba(0, 243, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.05);
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.project-logo {
    width: 40px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.project-highlight h5 {
    color: var(--primary);
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.project-highlight ul {
    list-style: none;
    margin-top: 10px;
    padding-left: 5px;
}

.project-highlight li {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-highlight li i {
    color: var(--secondary);
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease;
        backdrop-filter: blur(20px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        z-index: 9999;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

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

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

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

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

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .company-logo {
        width: 40px;
        /* Smaller on mobile */
        height: 40px;
    }

    .project-highlight {
        padding: 12px;
    }

    .highlight-header {
        flex-wrap: wrap;
    }
}

/* CI/CD & Security Section */
.cicd-container {
    max-width: 1100px;
    margin: 0 auto;
}

.pipeline-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pipeline-step {
    text-align: center;
    position: relative;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: var(--glass-border);
    width: 200px;
    word-wrap: normal;
    transition: all 0.3s ease;
}

.pipeline-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

.pipeline-step.security-step:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
}

.icon-box {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.security-step .icon-box {
    color: var(--accent);
}

.pipeline-step h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
}

.pipeline-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.connector {
    color: var(--text-muted);
    font-size: 1.2rem;
    opacity: 0.5;
    animation: pulse-connector 2s infinite;
}

@keyframes pulse-connector {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

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

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

.tool-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: var(--glass-border);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    min-width: 50px;
    text-align: center;
    transition: color 0.3s;
}

.tool-card:hover .tool-icon {
    color: var(--primary);
}

.tool-card h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Specific Tool Icon Colors on Hover */
.github-actions:hover .tool-icon {
    color: #2dba4e;
}

.bitbucket:hover .tool-icon {
    color: #0052CC;
}

.security-tool:hover .tool-icon {
    color: var(--accent);
}

@media screen and (max-width: 768px) {
    .pipeline-visual {
        flex-direction: column;
        gap: 1rem;
    }

    .connector {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    @keyframes pulse-connector {

        0%,
        100% {
            transform: rotate(90deg) translateY(0);
            opacity: 0.5;
        }

        50% {
            transform: rotate(90deg) translateY(5px);
            opacity: 1;
        }
    }
}