/* Matrix Dark Theme Portfolio */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --matrix-green: #00ff41;
    --matrix-green-dark: #00cc33;
    --neon-blue: #00ffff;
    --neon-purple: #ff00ff;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(0, 20, 0, 0.9);
    --text-primary: #00ff41;
    --text-secondary: #00cc33;
    --border-glow: rgba(0, 255, 65, 0.5);
}

body {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    position: relative;
}

/* Matrix Rain Background */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Glitch Animation - Fixed */
.glitch {
    position: relative;
    color: var(--text-primary);
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow:
        0.05em 0 0 var(--matrix-green-dark),
        -0.025em -0.05em 0 var(--neon-blue),
        0.025em 0.05em 0 var(--neon-purple);
    animation: glitch 5s linear infinite;
    z-index: 1;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--neon-blue);
    opacity: 0.7;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--neon-purple);
    opacity: 0.5;
    z-index: -2;
}

@keyframes glitch {
    0%, 98% {
        text-shadow:
            0.05em 0 0 var(--matrix-green-dark),
            -0.025em -0.05em 0 var(--neon-blue),
            0.025em 0.05em 0 var(--neon-purple);
    }
    1% {
        text-shadow:
            -0.05em -0.025em 0 var(--matrix-green-dark),
            0.025em 0.025em 0 var(--neon-blue),
            -0.05em -0.05em 0 var(--neon-purple);
    }
    2% {
        text-shadow:
            0.025em 0.05em 0 var(--matrix-green-dark),
            0.05em 0 0 var(--neon-blue),
            0 -0.05em 0 var(--neon-purple);
    }
    3% {
        text-shadow:
            -0.025em 0 0 var(--matrix-green-dark),
            -0.025em -0.025em 0 var(--neon-blue),
            -0.025em -0.05em 0 var(--neon-purple);
    }
}

@keyframes glitch-1 {
    0%, 98% {
        clip: rect(132px, 350px, 101px, 30px);
        transform: translate(0);
    }
    1% {
        clip: rect(45px, 9999px, 66px, 0);
        transform: translate(-2px, 2px);
    }
    2% {
        clip: rect(12px, 350px, 28px, 50px);
        transform: translate(2px, -2px);
    }
    3% {
        clip: rect(85px, 9999px, 140px, 0);
        transform: translate(0);
    }
}

@keyframes glitch-2 {
    0%, 98% {
        clip: rect(42px, 9999px, 120px, 0);
        transform: translate(0);
    }
    1% {
        clip: rect(20px, 350px, 90px, 30px);
        transform: translate(2px, -1px);
    }
    2% {
        clip: rect(65px, 9999px, 80px, 0);
        transform: translate(-2px, 1px);
    }
    3% {
        clip: rect(10px, 350px, 45px, 20px);
        transform: translate(0);
    }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: .15em solid var(--matrix-green);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--matrix-green); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Section container for consistent spacing */
section {
    padding: clamp(3rem, 6vw, 6rem) 0;
    overflow: visible;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 20, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 2px 20px rgba(0, 255, 65, 0.3);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--matrix-green);
}

.nav-logo a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--matrix-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, var(--matrix-green), var(--neon-blue));
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px var(--matrix-green);
}

/* Hero Section - Complete Overhaul */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 40, 0, 0.9) 100%);
    color: var(--text-primary);
    padding: 100px 0 50px;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
    z-index: 0;
}

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

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.hero-content {
    text-align: left;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--matrix-green), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    word-wrap: break-word;
}

.highlight {
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-shadow: 0 0 10px var(--matrix-green-dark);
    line-height: 1.4;
}

.hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 100%;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1rem);
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px clamp(20px, 3vw, 24px);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: clamp(0.85rem, 2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: clamp(120px, 20vw, 140px);
    box-sizing: border-box;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--matrix-green);
    color: var(--dark-bg);
    border: 1px solid var(--matrix-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.btn-primary:hover {
    background-color: var(--matrix-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.8);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    text-shadow: 0 0 10px var(--matrix-green);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

.btn-resume {
    background-color: var(--matrix-green);
    color: var(--dark-bg);
    border: 2px solid var(--matrix-green);
    text-shadow: 0 0 10px var(--matrix-green);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.btn-resume:hover {
    background-color: var(--matrix-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.8);
    border-color: var(--matrix-green);
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--matrix-green);
    box-shadow:
        0 0 30px rgba(0, 255, 65, 0.5),
        inset 0 0 30px rgba(0, 255, 65, 0.2);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

/* Section Styles */
section {
    padding: 80px 0;
    background-color: var(--dark-bg);
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    text-shadow: 0 0 20px var(--matrix-green);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--matrix-green), var(--neon-blue));
    box-shadow: 0 0 10px var(--border-glow);
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 30, 0, 0.95) 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

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

.info-item {
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 255, 65, 0.4);
    border-color: var(--matrix-green);
}

/* Skills Section */
.skills {
    background-color: rgba(0, 10, 0, 0.95);
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.4);
    border-color: var(--matrix-green);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--neon-blue);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(5px);
    border-color: var(--matrix-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--matrix-green);
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 20, 0, 0.95) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--matrix-green), var(--neon-blue), var(--neon-purple));
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(400px); }
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.4);
    border-color: var(--matrix-green);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.7) contrast(1.2);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(0.9) contrast(1.3);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--matrix-green);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 255, 0.1));
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--neon-blue);
}

.project-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background-color: rgba(0, 10, 0, 0.95);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--matrix-green);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: translateX(10px);
}

.contact-item i {
    width: 20px;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--matrix-green);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.social-link:hover {
    background: var(--matrix-green);
    color: var(--dark-bg);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.6);
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glow);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--matrix-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.95);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-glow);
}

/* Education Section */
.education {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 30, 0, 0.95) 100%);
}

.education-content {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.4);
    border-color: var(--matrix-green);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.education-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    text-shadow: 0 0 10px var(--matrix-green);
}

.education-period {
    color: var(--neon-blue);
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-blue);
}

.education-school {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.education-school i {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--matrix-green);
}

/* Experience Section */
.experience {
    background-color: rgba(0, 10, 0, 0.95);
}

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

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--matrix-green), var(--neon-blue));
    box-shadow: 0 0 10px var(--border-glow);
}

.experience-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.experience-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.experience-date {
    width: 30%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    color: var(--neon-blue);
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.experience-content {
    width: 70%;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    margin: 0 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.experience-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.4);
    border-color: var(--matrix-green);
}

.experience-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--matrix-green);
}

.experience-content h4 {
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--neon-blue);
}

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

.experience-content li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.experience-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--matrix-green);
    font-size: 0.8rem;
    text-shadow: 0 0 10px var(--matrix-green);
}

/* Certifications Section */
.certifications {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 20, 0, 0.95) 100%);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.certification-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--matrix-green), var(--neon-blue), var(--neon-purple));
    animation: scanline 3s linear infinite;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.4);
    border-color: var(--matrix-green);
}

.cert-icon {
    font-size: 3rem;
    color: var(--matrix-green);
    text-shadow: 0 0 20px var(--matrix-green);
    margin-bottom: 1rem;
}

.certification-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--matrix-green);
}

.certification-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cert-year {
    color: var(--neon-blue);
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-blue);
    background: rgba(0, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--neon-blue);
}

/* Volunteer Experience Section */
.volunteer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 20, 0, 0.95) 100%);
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.volunteer-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.volunteer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--matrix-green), var(--neon-blue), var(--neon-purple));
    animation: scanline 3s linear infinite;
}

.volunteer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.4);
    border-color: var(--matrix-green);
}

.volunteer-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.volunteer-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 255, 0.1));
    border: 2px solid var(--border-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.volunteer-card:hover .volunteer-icon {
    transform: scale(1.1);
    border-color: var(--matrix-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.volunteer-icon i {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--matrix-green);
}

.volunteer-title {
    flex: 1;
}

.volunteer-title h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--matrix-green);
}

.volunteer-title h4 {
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--neon-blue);
}

.volunteer-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    text-shadow: 0 0 5px var(--matrix-green);
}

.volunteer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.volunteer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.volunteer-tag {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 255, 0.1));
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.volunteer-tag:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

/* Achievements Section */
.achievements {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 20, 0, 0.95) 100%);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.achievement-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--matrix-green), var(--neon-blue), var(--neon-purple));
    animation: scanline 3s linear infinite;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.4);
    border-color: var(--matrix-green);
}

.achievement-icon {
    font-size: 3rem;
    color: var(--matrix-green);
    text-shadow: 0 0 20px var(--matrix-green);
    margin-bottom: 1rem;
}

.achievement-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--matrix-green);
}

.achievement-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.achievement-date {
    color: var(--neon-blue);
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-blue);
    background: rgba(0, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--neon-blue);
    display: inline-block;
}

/* Courses Section */
.courses-section {
    margin-top: 3rem;
}

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

.course-card {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.course-card:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.course-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--matrix-green);
}

.course-card span {
    color: var(--neon-blue);
    font-size: 0.9rem;
    text-shadow: 0 0 5px var(--neon-blue);
}

.course-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Leadership & Volunteer Activities Section */
.leadership {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 20, 0, 0.95) 100%);
}

.leadership-timeline {
    margin-top: 3rem;
    position: relative;
}

.leadership-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.leadership-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--matrix-green), var(--neon-blue));
    animation: scanline 3s linear infinite;
}

.leadership-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.4);
    border-color: var(--matrix-green);
}

.leadership-date {
    color: var(--matrix-green);
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    white-space: nowrap;
}

.leadership-content h3 {
    color: var(--matrix-green);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.leadership-content h4 {
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.leadership-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.leadership-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.leadership-skills .tech-tag {
    background: rgba(0, 255, 65, 0.1);
    color: var(--matrix-green);
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Coding Profiles Section */
.coding-profiles {
    background-color: rgba(0, 10, 0, 0.95);
}

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

.coding-profile-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.coding-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--matrix-green), var(--neon-blue), var(--neon-purple));
    animation: scanline 3s linear infinite;
}

.coding-profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.4);
    border-color: var(--matrix-green);
}

.profile-icon {
    font-size: 3rem;
    color: var(--matrix-green);
    text-shadow: 0 0 20px var(--matrix-green);
    margin-bottom: 1rem;
}

.coding-profile-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--matrix-green);
}

.coding-profile-card p {
    color: var(--neon-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--neon-blue);
}

.coding-profile-card span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.profile-link {
    color: var(--matrix-green);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--matrix-green);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: 0 0 10px var(--matrix-green);
}

.profile-link:hover {
    background-color: var(--matrix-green);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.6);
}

/* Updated Skills Grid Layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Button Layout Fix */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive Design - Complete Overhaul */

/* Large Tablets and Small Desktops (1200px and below) */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 20px;
    }

    .hero {
        padding: 90px 0 40px;
        min-height: 90vh;
        overflow-x: hidden;
    }

    .hero-container {
        gap: clamp(2rem, 3vw, 3rem);
        padding: 0 clamp(20px, 4vw, 30px);
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    }

    .hero-description {
        font-size: clamp(0.85rem, 2vw, 1rem);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .hero {
        padding: 80px 0 30px;
        min-height: 85vh;
        overflow-x: hidden;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 900px;
        margin: 0 auto;
        gap: clamp(1.5rem, 3vw, 2rem);
        padding: 0 clamp(15px, 4vw, 25px);
        overflow: visible;
    }

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

    .hero-image {
        order: 1;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 4vw, 2.8rem);
        text-align: center;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 2.5vw, 1.2rem);
        text-align: center;
        margin-bottom: 1.2rem;
    }

    .hero-description {
        font-size: clamp(0.8rem, 2vw, 1rem);
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .coding-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .experience-item,
    .leadership-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .experience-date,
    .leadership-date {
        text-align: center;
        font-size: 0.9rem;
    }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(0, 20, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 255, 65, 0.3);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-glow);
        z-index: 1001;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        padding: 70px 0 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-x: hidden;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(1rem, 3vw, 1.5rem);
        padding: 0 clamp(15px, 4vw, 20px);
        max-width: 100%;
        overflow: visible;
    }

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

    .hero-image {
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(1.4rem, 6vw, 2.2rem);
        line-height: 1.3;
        margin-bottom: 0.8rem;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: clamp(0.8rem, 4vw, 1.1rem);
        margin-bottom: 1.2rem;
        text-align: center;
        line-height: 1.4;
    }

    .hero-description {
        font-size: clamp(0.75rem, 3.5vw, 1rem);
        max-width: 100%;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: center;
        padding: 0 10px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 10px 18px;
        min-width: 120px;
        flex: 1;
        min-width: 100px;
        max-width: 160px;
    }

    .profile-img {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .container {
        padding: 0 20px;
    }

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

    /* Grid Layouts Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .coding-profiles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .experience-timeline::before {
        left: 20px;
    }

    .experience-item {
        flex-direction: column !important;
        margin-left: 40px;
        margin-bottom: 2rem;
    }

    .experience-date,
    .experience-content {
        width: 100%;
        margin: 0;
        padding: 1rem;
    }

    .experience-date {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .experience-content h3 {
        font-size: 1.1rem;
    }

    .experience-content h4 {
        font-size: 1rem;
    }

    .experience-content h5 {
        font-size: 0.9rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .education-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .leadership-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .leadership-date {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        white-space: normal;
        text-align: center;
    }

    .leadership-content h3 {
        font-size: 1.1rem;
    }

    .leadership-content h4 {
        font-size: 1rem;
    }

    .education-item {
        padding: 1.5rem;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .course-card {
        padding: 1rem;
    }

    .coding-profiles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .volunteer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .volunteer-card {
        padding: 1.5rem;
    }

    .volunteer-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .volunteer-icon {
        width: 50px;
        height: 50px;
    }

    .info-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    header {
        padding: 1rem 0;
    }

    .nav-menu {
        top: 70px;
    }

    /* Hero Section - Mobile Portrait Optimized */
    .hero {
        min-height: 100vh;
        padding: 60px 0 20px;
        align-items: center;
        justify-content: center;
        overflow-x: hidden;
    }

    .hero-container {
        padding: 0 clamp(10px, 3vw, 15px);
        gap: clamp(0.8rem, 2vw, 1rem);
        max-width: 100%;
        overflow: visible;
    }

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

    .hero-image {
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 0.8rem;
    }

    .hero-title {
        font-size: clamp(1.2rem, 7vw, 1.8rem);
        line-height: 1.2;
        margin-bottom: 0.6rem;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .highlight {
        display: block;
        margin: 0.5rem 0;
    }

    .hero-subtitle {
        font-size: clamp(0.75rem, 4.5vw, 1rem);
        margin-bottom: 1rem;
        text-align: center;
        line-height: 1.3;
    }

    .hero-description {
        font-size: clamp(0.7rem, 4vw, 0.9rem);
        line-height: 1.5;
        margin-bottom: 1.2rem;
        text-align: center;
        padding: 0 5px;
        max-width: 100%;
    }

    .hero-buttons {
        gap: 0.6rem;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 0.8rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 12px 16px;
        min-width: 140px;
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .profile-img {
        width: 160px;
        height: 160px;
        margin: 0 auto;
        border: 3px solid var(--matrix-green);
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    }

    /* Section Titles */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Grid Layouts */
    .skills-grid,
    .projects-grid,
    .certifications-grid,
    .courses-grid,
    .coding-profiles-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Card Styles */
    .skill-card,
    .project-card,
    .achievement-card,
    .coding-profile-card {
        padding: 1.2rem;
    }

    .skill-category {
        padding: 1rem;
    }

    .skill-category h3 {
        font-size: 1rem;
    }

    .project-image {
        height: 160px;
    }

    .project-content h3 {
        font-size: 1.1rem;
    }

    /* Experience & Leadership */
    .experience-item,
    .leadership-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .experience-date,
    .leadership-date {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .experience-content h3,
    .leadership-content h3 {
        font-size: 1rem;
    }

    .experience-content h4,
    .leadership-content h4 {
        font-size: 0.9rem;
    }

    .experience-content h5 {
        font-size: 0.8rem;
    }

    /* About Section */
    .about-content {
        gap: 1.5rem;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Contact Form */
    .contact-content {
        gap: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .btn {
        width: 100%;
        margin-top: 1rem;
    }

    /* Education */
    .education-item {
        padding: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
        font-size: 0.9rem;
    }

    /* Tech Tags */
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    /* Social Links */
    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Ultra Small Screens (350px and below) */
@media (max-width: 350px) {
    .hero {
        padding: 50px 0 15px;
        overflow-x: hidden;
    }

    .hero-container {
        padding: 0 clamp(8px, 2vw, 12px);
        gap: clamp(0.6rem, 2vw, 0.8rem);
        max-width: 100%;
        overflow: visible;
    }

    .hero-title {
        font-size: clamp(1rem, 8vw, 1.6rem);
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .highlight {
        display: block;
        margin: 0.3rem 0;
        font-size: clamp(0.9rem, 7vw, 1.4rem);
    }

    .hero-subtitle {
        font-size: clamp(0.7rem, 5vw, 0.9rem);
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: clamp(0.65rem, 4.5vw, 0.85rem);
        margin-bottom: 1rem;
        padding: 0 3px;
    }

    .profile-img {
        width: 140px;
        height: 140px;
    }

    .btn {
        font-size: 0.75rem;
        padding: 10px 14px;
        min-width: 120px;
        max-width: 180px;
    }

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

    .container {
        padding: 0 10px;
    }
}

    .project-content h3 {
        font-size: 1.2rem;
    }

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

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .certification-card {
        padding: 1.5rem;
    }

    .cert-icon {
        font-size: 2rem;
    }

    .certification-card h3 {
        font-size: 1.1rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .course-card {
        padding: 1rem;
    }

    .course-card h4 {
        font-size: 1rem;
    }

    .coding-profiles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .coding-profile-card {
        padding: 1.5rem;
    }

    .profile-icon {
        font-size: 2rem;
    }

    .coding-profile-card h3 {
        font-size: 1.3rem;
    }

    .volunteer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .volunteer-card {
        padding: 1rem;
    }

    .volunteer-title h3 {
        font-size: 1.1rem;
    }

    .volunteer-title h4 {
        font-size: 1rem;
    }

    .volunteer-description {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
        min-height: 36px;
    }

    .btn i {
        font-size: 0.8rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .nav-logo a {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }

    .experience-item {
        margin-left: 20px;
    }

    .experience-timeline::before {
        left: 10px;
    }

    .contact-details {
        gap: 0.5rem;
    }

    .contact-item {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }

    .achievement-card {
        padding: 1.5rem;
    }

    .achievement-card h3 {
        font-size: 1.1rem;
    }

    .achievement-card p {
        font-size: 0.9rem;
    }

    .achievement-date {
        font-size: 0.8rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

/* Touch device specific fixes */
@media (hover: none) and (pointer: coarse) {
    .skill-item:hover,
    .project-card:hover,
    .volunteer-card:hover,
    .achievement-card:hover,
    .certification-card:hover,
    .coding-profile-card:hover,
    .course-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* Landscape mobile fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 80px 0 20px;
        align-items: center;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
        max-width: 1000px;
        padding: 0 20px;
    }

    .hero-content {
        order: 1;
        text-align: left;
    }

    .hero-image {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
        text-align: left;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        text-align: left;
    }

    .hero-description {
        font-size: clamp(0.8rem, 2vw, 1rem);
        text-align: left;
        max-width: 500px;
    }

    .hero-buttons {
        justify-content: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Small screens fix for glitch animation */
@media (max-width: 480px) {
    .glitch {
        font-size: 1.8rem;
    }

    .glitch::before,
    .glitch::after {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 20, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 255, 65, 0.3);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-glow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .profile-img {
        width: 200px;
        height: 200px;
    }

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--matrix-green);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--matrix-green);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--matrix-green-dark);
}

/* Selection Text */
::selection {
    background: var(--matrix-green);
    color: var(--dark-bg);
}

::-moz-selection {
    background: var(--matrix-green);
    color: var(--dark-bg);
}

/* Enhanced Animations */

/* Smooth fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Slide-in from left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide-in from right */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in animation */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced hover animations */
.skill-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 255, 65, 0.4);
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 255, 65, 0.5);
}

.achievement-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 255, 65, 0.4);
}

.coding-profile-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 255, 65, 0.4);
}

/* Floating animation for key elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation for CTAs */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0); }
}

.btn-primary:hover {
    animation: pulse 2s infinite;
}

/* Typewriter effect enhancement */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--matrix-green);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--matrix-green); }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    animation: fadeInUp 0.8s ease;
}

/* Scroll progress indicator */
@keyframes progress {
    0% { width: 0%; }
    100% { width: var(--scroll, 0%); }
}

/* Interactive button effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Universal Responsive Fixes */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid and flexbox universal fixes */
.grid, .flex {
    display: grid;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive text universal fix */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Button fixes */
button, .btn, input[type="submit"], input[type="button"] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Form input fixes */
input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Card container fixes */
.card, .project-card, .skill-card, .achievement-card, .coding-profile-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Universal responsive padding/margin */
.section-padding {
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.responsive-margin {
    margin: clamp(1rem, 2vw, 2rem) 0;
}