/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff41;
    --primary-dark: #00cc33;
    --secondary-color: #ff0066;
    --accent-color: #00ffff;
    --dark-bg: #000000;
    --dark-card: #0a0a0a;
    --light-text: #e0e0e0;
    --light-gray: #808080;
    --border-color: #1a1a1a;
    --shadow: 0 4px 6px -1px rgba(0, 255, 65, 0.3), 0 2px 4px -1px rgba(0, 255, 65, 0.2);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    will-change: scroll-position;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -2;
    animation: grid-move 15s linear infinite;
    will-change: transform;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 65, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(255, 0, 102, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.08) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: hack-pulse 4s ease-in-out infinite;
    will-change: opacity;
}

/* Additional background layers */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -2;
    animation: grid-move 15s linear infinite;
    will-change: transform;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--light-text);
    position: relative;
    font-weight: 700;
    animation: data-flow 4s ease-in-out infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding: 4px 0;
    box-shadow: 0 1px 10px rgba(0, 255, 65, 0.2);
    height: 50px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--light-gray);
    margin-bottom: 0;
    line-height: 1;
}

/* Desktop Navigation */
.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 0;
    position: relative;
    transition: var(--transition);
    font-size: 0.85rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    width: 25px;
    height: 2px;
    background: var(--light-text);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--light-text);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.mobile-contact {
    margin-top: auto;
    padding-top: 40px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #000000;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.5);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
    animation: cyber-scan 1s linear infinite;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.5);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
    animation: cyber-scan 1s linear infinite;
}

/* Hero Section */
.hero {
    padding-top: 60px;
    padding-bottom: 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    animation: glitch-green 3s infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 20px;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--light-gray);
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.hardware-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circuit-board {
    width: 300px;
    height: 300px;
    background: var(--dark-card);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    animation: glow-green 3s ease-in-out infinite;
}

@keyframes glow-green {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), inset 0 0 20px rgba(0, 255, 65, 0.1); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.5), inset 0 0 30px rgba(0, 255, 65, 0.2); }
}

.chip {
    position: absolute;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chip-1 {
    width: 80px;
    height: 60px;
    top: 40px;
    left: 40px;
}

.chip-2 {
    width: 60px;
    height: 80px;
    bottom: 40px;
    right: 40px;
}

.trace {
    position: absolute;
    background: var(--primary-color);
    opacity: 0.8;
    border-radius: 2px;
}

.trace-1 {
    width: 120px;
    height: 3px;
    top: 70px;
    left: 130px;
    transform: rotate(45deg);
}

.trace-2 {
    width: 100px;
    height: 3px;
    bottom: 70px;
    right: 110px;
    transform: rotate(-30deg);
}

.led {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.led-red {
    background: #ef4444;
    top: 120px;
    right: 120px;
}

.led-green {
    background: var(--secondary-color);
    top: 180px;
    left: 120px;
}

.led-blue {
    background: var(--primary-color);
    bottom: 120px;
    left: 180px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 4px solid var(--primary-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

.about-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.about-description {
    margin-bottom: 30px;
}

.about-description p {
    margin-bottom: 15px;
    color: var(--light-gray);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    animation: glow-green 2s ease-in-out infinite;
}

.project-header {
    padding: 20px 20px 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.02);
}

.project-description {
    padding: 15px 20px;
    color: var(--light-gray);
    font-size: 0.95rem;
}

.project-tech {
    padding: 0 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background: var(--dark-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    position: relative;
    animation: slideIn 1s ease-out, pulse-green 2s ease-in-out infinite;
}

@keyframes slideIn {
    from { width: 0; }
}

@keyframes hack-pulse {
    0%, 100% { opacity: 0.3; }
    25% { opacity: 0.5; }
    50% { opacity: 0.7; }
    75% { opacity: 0.4; }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

/* Hacking animations */
@keyframes glitch-green {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
        transform: translateX(0);
    }
    25% { 
        text-shadow: -2px 0 rgba(255, 0, 102, 0.8), 2px 0 rgba(0, 255, 255, 0.8);
        transform: translateX(-2px);
    }
    50% { 
        text-shadow: 2px 0 rgba(255, 0, 102, 0.8), -2px 0 rgba(0, 255, 255, 0.8);
        transform: translateX(2px);
    }
    75% { 
        text-shadow: 0 0 15px rgba(0, 255, 65, 1);
        transform: translateX(0);
    }
}

@keyframes matrix-rain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes cyber-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes data-flow {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

/* Hacking background animations */
.circuit-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.2;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 65, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 75% 75%, rgba(255, 0, 102, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 30%);
    animation: circuit-pulse 8s ease-in-out infinite;
    will-change: opacity;
}

@keyframes circuit-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.3; }
}

.subtle-matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    opacity: 0.05;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 65, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 102, 0.06) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 255, 255, 0.02) 0%, transparent 100%);
    animation: matrix-flow 12s linear infinite;
    will-change: transform;
}

@keyframes matrix-flow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-80px); }
}

/* Additional hacking effects */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    gap: 10px;
}

.matrix-rain::before {
    content: '01';
    position: absolute;
    top: -100%;
    left: 10%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary-color);
    animation: matrix-rain 8s linear infinite;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.matrix-rain::after {
    content: '1010';
    position: absolute;
    top: -100%;
    left: 80%;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--accent-color);
    animation: matrix-rain 12s linear infinite;
    animation-delay: 2s;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.cyber-scan {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    z-index: -1;
    animation: cyber-scan 4s linear infinite;
    will-change: transform;
}

/* Particle Effects */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particles::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
    animation: particle-float 6s ease-in-out infinite;
}

.particles::after {
    content: '';
    position: absolute;
    top: 70%;
    left: 80%;
    width: 3px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    animation: particle-float 8s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes particle-float {
    0%, 100% { 
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-30px) translateX(20px);
        opacity: 1;
    }
    50% { 
        transform: translateY(-60px) translateX(-10px);
        opacity: 0.6;
    }
    75% { 
        transform: translateY(-30px) translateX(-20px);
        opacity: 0.9;
    }
}

/* Enhanced LED animations */
.led-red {
    background: #ef4444;
    top: 120px;
    right: 120px;
    animation: led-blink 2s ease-in-out infinite;
}

.led-green {
    background: var(--secondary-color);
    top: 180px;
    left: 120px;
    animation: led-blink 2.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.led-blue {
    background: var(--primary-color);
    bottom: 120px;
    left: 180px;
    animation: led-blink 3s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes led-blink {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 15px currentColor;
    }
    50% { 
        opacity: 0.3;
        box-shadow: 0 0 5px currentColor;
    }
}

/* Glitch text for headings */
.about-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--light-text);
    animation: glitch-green 4s infinite;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    animation: glitch-green 5s infinite;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: glitch-green 6s infinite;
}

.skill-category h3 i {
    color: var(--primary-color);
    animation: pulse-green 2s ease-in-out infinite;
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    animation: glitch-green 4.5s infinite;
}

.tool-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tool-item:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item a,
.contact-item p {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--dark-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
    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 3px rgba(37, 99, 235, 0.2);
}

/* Footer */
.footer {
    background: var(--dark-card);
    border-top: 1px solid var(--border-color);
    padding: 20px 0 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    color: var(--light-gray);
    margin-top: 10px;
    font-size: 0.8rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer-column h4 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.8rem;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--light-gray);
    font-size: 0.8rem;
    gap: 10px;
}

.footer-credit {
    color: var(--light-gray);
    font-size: 0.7rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Hide desktop nav, show mobile toggle */
    .nav ul {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .about-info {
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .circuit-board {
        width: 250px;
        height: 250px;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
}