/* ===== VARIABLES ===== */
:root {
    /* Cybersecurity-inspired color scheme */
    --primary-color: #00ff00;
    --secondary-color: #0a192f;
    --accent-color: #64ffda;
    --text-color: #e6f1ff;
    --dark-bg: #0a0e17;
    --card-bg: #112240;
    --light-navy: #172a45;
    --lightest-navy: #303C55;
    --terminal-bg: #0d1117;
    --terminal-text: #e6f1ff;
    
    /* Typography */
    --font-sans: 'Poppins', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    
    /* Border Radius */
    --border-radius: 4px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.highlight {
    color: var(--accent-color);
    font-weight: 500;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-text {
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background-color: var(--light-navy);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.loader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background-color: var(--primary-color);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-links {
    display: flex;
}

.nav-link {
    margin: 0 15px;
    padding: 5px 0;
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
}

.glitch {
    position: relative;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }
    5% {
        clip: rect(70px, 9999px, 71px, 0);
    }
    10% {
        clip: rect(29px, 9999px, 83px, 0);
    }
    15% {
        clip: rect(16px, 9999px, 91px, 0);
    }
    20% {
        clip: rect(2px, 9999px, 23px, 0);
    }
    25% {
        clip: rect(46px, 9999px, 33px, 0);
    }
    30% {
        clip: rect(8px, 9999px, 4px, 0);
    }
    35% {
        clip: rect(76px, 9999px, 91px, 0);
    }
    40% {
        clip: rect(37px, 9999px, 25px, 0);
    }
    45% {
        clip: rect(72px, 9999px, 6px, 0);
    }
    50% {
        clip: rect(5px, 9999px, 33px, 0);
    }
    55% {
        clip: rect(81px, 9999px, 72px, 0);
    }
    60% {
        clip: rect(1px, 9999px, 25px, 0);
    }
    65% {
        clip: rect(21px, 9999px, 35px, 0);
    }
    70% {
        clip: rect(65px, 9999px, 69px, 0);
    }
    75% {
        clip: rect(45px, 9999px, 16px, 0);
    }
    80% {
        clip: rect(52px, 9999px, 56px, 0);
    }
    85% {
        clip: rect(60px, 9999px, 37px, 0);
    }
    90% {
        clip: rect(97px, 9999px, 24px, 0);
    }
    95% {
        clip: rect(3px, 9999px, 12px, 0);
    }
    100% {
        clip: rect(67px, 9999px, 71px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 65px, 0);
    }
    5% {
        clip: rect(96px, 9999px, 67px, 0);
    }
    10% {
        clip: rect(54px, 9999px, 16px, 0);
    }
    15% {
        clip: rect(6px, 9999px, 34px, 0);
    }
    20% {
        clip: rect(33px, 9999px, 68px, 0);
    }
    25% {
        clip: rect(75px, 9999px, 63px, 0);
    }
    30% {
        clip: rect(23px, 9999px, 42px, 0);
    }
    35% {
        clip: rect(15px, 9999px, 63px, 0);
    }
    40% {
        clip: rect(55px, 9999px, 4px, 0);
    }
    45% {
        clip: rect(89px, 9999px, 38px, 0);
    }
    50% {
        clip: rect(98px, 9999px, 53px, 0);
    }
    55% {
        clip: rect(11px, 9999px, 31px, 0);
    }
    60% {
        clip: rect(67px, 9999px, 13px, 0);
    }
    65% {
        clip: rect(24px, 9999px, 73px, 0);
    }
    70% {
        clip: rect(35px, 9999px, 59px, 0);
    }
    75% {
        clip: rect(82px, 9999px, 64px, 0);
    }
    80% {
        clip: rect(10px, 9999px, 60px, 0);
    }
    85% {
        clip: rect(32px, 9999px, 43px, 0);
    }
    90% {
        clip: rect(77px, 9999px, 40px, 0);
    }
    95% {
        clip: rect(18px, 9999px, 96px, 0);
    }
    100% {
        clip: rect(44px, 9999px, 92px, 0);
    }
}

.typewriter {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

.btn-secondary:hover {
    background-color: rgba(0, 255, 0, 0.1);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, rgba(10, 25, 47, 0) 70%);
    z-index: -1;
}

.profile-outline {
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.profile-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, var(--primary-color) 50%, transparent 52%);
    background-size: 10px 10px;
    opacity: 0.3;
}

.profile-placeholder {
    font-size: 100px;
    color: var(--primary-color);
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.about-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.about-detail i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.about-detail h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.terminal {
    flex: 1;
    background-color: var(--terminal-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
}

.terminal-header {
    background-color: var(--light-navy);
    padding: 10px;
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close {
    background-color: #ff5f56;
}

.minimize {
    background-color: #ffbd2e;
}

.maximize {
    background-color: #27c93f;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-color);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
}

.line {
    margin-bottom: 10px;
}

.prompt {
    color: var(--primary-color);
    margin-right: 10px;
}

.command {
    color: var(--text-color);
}

.output {
    color: var(--text-color);
    opacity: 0.8;
    margin-left: 20px;
    margin-bottom: 20px;
}

.blink {
    animation: blink 1s infinite;
}

/* ===== SKILLS SECTION ===== */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.7);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.skill-bar {
    height: 6px;
    background-color: var(--light-navy);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
}

/* ===== EXPERIENCE SECTION ===== */
.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;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    right: -20px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-icon i {
    color: var(--primary-color);
}

.timeline-content {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--card-bg);
    transform: rotate(45deg);
}

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

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

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

.timeline-content p {
    font-size: 0.9rem;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.7);
}

.project-image {
    height: 200px;
    background-color: var(--light-navy);
    position: relative;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(10, 25, 47, 0.8);
}

.project-overlay i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.8;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-color);
    background-color: rgba(100, 255, 218, 0.1);
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    font-size: 0.9rem;
    color: var(--text-color);
}

.project-link:hover {
    color: var(--primary-color);
}

.project-link i {
    margin-right: 5px;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.certification-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.7);
}

.certification-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.certification-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.certification-content p {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.certification-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 255, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-text a {
    color: var(--text-color);
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--light-navy);
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

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

/* ===== FOOTER ===== */
footer {
    background-color: var(--secondary-color);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

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

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 50px;
    }
    
    .hero-description {
        margin: 0 auto 30px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        margin-bottom: 50px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .typewriter {
        font-size: 1.2rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--light-navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 99;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        margin: 15px 0;
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
        z-index: 100;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-icon {
        left: 10px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-icon {
        left: 10px;
    }
    
    .timeline-content::after {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .typewriter {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}