/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Matrix Background Effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Navigation with Glassmorphism */
nav {
    position: fixed;
    width: 100%;
    padding: 1.5rem 3rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 225, 53, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    color: #00ffff;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00ffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links li a:hover {
    color: #00ffff;
}

.nav-links li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section with Cyberpunk Theme */
/* Hero Section Enhancement */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(255, 225, 53, 0.1));    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 20, 0, 0.95);
    border: 2px solid #0ff;
    border-radius: 4px;
    position: relative;
    animation: flicker 0.3s infinite;
    box-shadow: 
        0 0 5px #0ff,
        0 0 10px #0ff,
        inset 0 0 5px #0ff;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 255, 0.1) 0%,
        rgba(0, 255, 255, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    opacity: 0.3;
}

.hero-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 20, 0, 0.8) 90%
    );
    pointer-events: none;
}

@keyframes flicker {
    0% { opacity: 1; }
    3% { opacity: 0.8; }
    6% { opacity: 1; }
    7% { opacity: 0.9; }
    8% { opacity: 1; }
    9% { opacity: 0.9; }
    10% { opacity: 1; }
    100% { opacity: 1; }
}

/* Update text styles for better CRT look */
.hero-content h1 {
    color: #0ff;
    text-shadow: 
        0 0 5px #0ff,
        0 0 10px #0ff;
    margin-bottom: 2rem;
    font-family: 'Fira Code', monospace;
    letter-spacing: 2px;
}

.hero-content p {
    color: #0f8;
    text-shadow: 0 0 5px #0f8;
    font-family: 'Fira Code', monospace;
    margin-bottom: 1.5rem;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensures content stays above effects */
}

.hero-content {
    /* Terminal Animation Effects */
    .hero-content {
        position: relative;
        text-align: center;
        padding: 3rem;
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(0, 255, 0, 0.3);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        animation: bootSequence 2s ease-out;
    }
    
    .hero-content::before {
        content: '>';
        position: absolute;
        left: 20px;
        color: #00ffff;
        animation: blink 1s infinite;
    }
    
    .hero-content h1 {
        overflow: hidden;
        white-space: nowrap;
        border-right: 2px solid #00ffff;
        animation: typing 3.5s steps(40, end),
                   blink-caret 0.75s step-end infinite;
        margin: 0 auto 2rem;
    }
    
    /* Add these new animations */
    @keyframes bootSequence {
        0% {
            opacity: 0;
            transform: scale(0.95) translateY(20px);
        }
        50% {
            opacity: 0.5;
        }
        100% {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    @keyframes typing {
        from { width: 0 }
        to { width: 100% }
    }
    
    @keyframes blink-caret {
        from, to { border-color: transparent }
        50% { border-color: #00ffff }
    }
    
    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
    }
}

/* Hero Content */
.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 225, 53, 0.5),
        0 0 20px rgba(255, 225, 53, 0.3);
    animation: glitch 5s infinite;
}

/* Add paragraph centering styles */
p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.8;
}

/* Section Spacing and Effects */
section {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 225, 53, 0.1), rgba(0, 0, 0, 0.5));
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

/* Section Background Effects */
section {
    background: linear-gradient(135deg, rgba(0, 20, 0, 0.3), rgba(0, 0, 0, 0.5));
}

/* Card Backgrounds */
.skill-card, .project-card, .cert-card, .contact-info {
    background: rgba(255, 225, 53, 0.05);
    border: 1px solid rgba(255, 225, 53, 0.1);
    backdrop-filter: blur(10px);
}

/* Form Input Backgrounds */
.form-group input,
.form-group textarea {
    background: rgba(255, 225, 53, 0.05);
    border: 1px solid rgba(255, 225, 53, 0.2);
}

/* Remove any alternating section backgrounds */
section:nth-child(odd),
section:nth-child(even) {
    background: linear-gradient(135deg, rgba(0, 20, 0, 0.3), rgba(0, 0, 0, 0.5));
}

/* Section Headers Enhancement */
section h2 {
    text-align: center;
    width: 100%;
    margin: 0 auto 4rem auto;
    position: relative;
    padding: 0 4rem;  /* Increased padding */
    color: #00ffff;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

section h2::before {
    content: '<';
    position: absolute;
    left: 0;
    color: #00ffff;
    opacity: 0.5;
    font-size: 2rem;  /* Adjusted size */
    transform: translateX(50%);  /* Adjusted position */
}

section h2::after {
    content: '/>';
    position: absolute;
    right: 0;
    color: #00ffff;
    opacity: 0.5;
    font-size: 2rem;  /* Adjusted size */
    transform: translateX(-50%);  /* Adjusted position */
}

/* Ensure container has proper width */
.skills, .projects, .certifications, .contact {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Hero Content Heading */
.hero-content h1 {
    text-align: center;
    width: 100%;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(0, 255, 0, 0.5),
        0 0 20px rgba(0, 255, 0, 0.3);
    animation: glitch 5s infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Card Headings */
.skill-card h3,
.project-card h3,
.cert-card h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #FFE135;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 225, 53, 0.3);
}

/* Contact Section Heading */
.contact h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
}

section h2::before {
    content: '<';
    position: absolute;
    left: 0;
    color: #00ffff;
    opacity: 0.5;
}

section h2::after {
    content: '/>';
    position: absolute;
    right: 0;
    color: #00ffff;
    opacity: 0.5;
}

/* Card Hover Effects - Enhanced Version */
.skill-card, .project-card, .cert-card, .contact-info {
    background: rgba(0, 20, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Common hover effect for all cards */
.skill-card::before, .project-card::before, .cert-card::before, .contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-card:hover, .project-card:hover, .cert-card:hover, .contact-info:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.2),
        0 0 30px rgba(0, 255, 255, 0.1),
        0 0 40px rgba(0, 255, 255, 0.05);
}

.skill-card:hover::before, .project-card:hover::before, 
.cert-card:hover::before, .contact-info:hover::before {
    transform: translateX(100%);
}
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: linear-gradient(45deg, #00ffff, #007bff);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.cta-button i {
    margin-left: 10px;
}

.cta-button span {
    margin-right: 5px;
}

/* Enhanced button hover effects */
.cta-button, .submit-btn, .project-link {
    position: relative;
    overflow: hidden;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-button::before, .submit-btn::before, .project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cta-button:hover::before, .submit-btn:hover::before, .project-link:hover::before {
    left: 100%;
}

.cta-button:hover, .submit-btn:hover, .project-link:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.1);
}

/* Form input hover effects */
.form-group input:hover, .form-group textarea:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

/* Navigation link hover enhancement */
.nav-links li a::before {
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.project-card {
    background: rgba(0, 20, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card h3 {
    color: #FFE135;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.project-tech {
    color: #00ffff;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.project-desc {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Project Links - Centered */
.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 255, 255, 0.05);
}

.project-link:hover {
    color: #fff;
    text-shadow: 0 0 5px #00ffff;
    background: rgba(0, 255, 255, 0.15);
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.project-link i {
    font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
}

.project-card {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    font-size: 16px; /* Prevents zoom on iOS */
}

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    justify-content: center;
}

.contact-social {
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.2rem;
}

.contact-info p {
    font-size: 1rem;
}


/* Extra Small Devices */
@media (max-width: 480px) {
    .contact-container {
        padding: 0.5rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
    }
}

.contact-info {
    background: rgba(0, 20, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    color: #00ffff;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    margin: 0.5rem 0 1.5rem;
    color: #fff;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-social a {
    color: #00ffff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 20, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ffff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #00ffff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: #00ffff;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Section Padding */
    section {
        padding: 4rem 1rem;
    }

    /* Grid Layouts */
    .skills-grid, .project-grid, .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards */
    .skill-card, .project-card, .cert-card {
        padding: 1.5rem;
    }

    /* Contact Form */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Section Headers */
    section h2 {
        font-size: 2rem;
        padding: 0 2rem;
    }

    /* Stats Section */
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Navigation */
    nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }

    /* Form Elements */
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Project Cards */
.project-card, .skill-card, .cert-card {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
}

/* Hero Content Adjustments */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 90%;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 225, 53, 0.1) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Add these new animations */
@keyframes scanlines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.glitch {
    position: relative;
    display: inline-block; /* Add this */
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Add this */
    text-align: center; /* Add this */
}

.glitch span:first-child {
    animation: glitch 500ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-0.04em, -0.03em);
    opacity: 0.75;
}

.glitch span:last-child {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(0.04em, 0.03em);
    opacity: 0.75;
}

/* Update the section h2 styles */
section h2 {
    text-align: center;
    width: 100%;
    margin: 0 auto 4rem auto;
    position: relative;
    padding: 0 4rem;
    color: #00ffff;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex; /* Add this */
    justify-content: center; /* Add this */
    align-items: center; /* Add this */
}

/* Card Hover Effects */
.skill-card, .project-card, .cert-card {
    transform: translateY(0);
    transition: all 0.3s ease;
    background: rgba(0, 20, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.1);
}

.skill-card:hover, .project-card:hover, .cert-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

/* Grid Layouts Enhancement */
.skills-grid, .project-grid, .cert-grid {
    gap: 3rem;
    padding: 2rem;
}

/* Animated Background Elements */
.background-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 225, 53, 0.1) 0%, transparent 70%);    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

section {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

section:hover .background-glow {
    opacity: 1;
}

/* Update the JavaScript part in your script.js */


/* Skills Grid */
.skills-grid, .project-grid, .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* About Content */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}


/* Education Section */
.education {
    padding: 80px 20px;
    background-color: rgba(0, 0, 0, 0.8);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.education-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.education-card h3 {
    color: #FFE135;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 225, 53, 0.3);
}

.education-card .institution {
    color: #00ffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.education-card .duration {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.education-card .board {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .education-card {
        padding: 20px;
    }
}
/* Contact Form */
/* Contact Section Styles */
.contact {
    position: relative;
    overflow: hidden;
}

/* Contact Section Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Mobile Responsive Contact Form */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 2rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-btn {
        width: 100%;
        padding: 0.8rem;
        justify-content: center;
    }

    .contact-social {
        justify-content: center;
    }

    .contact-info h3 {
        font-size: 1.2rem;
    }

    .contact-info p {
        font-size: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .contact-container {
        padding: 0.5rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
    }
}

.contact-info {
    background: rgba(0, 20, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    color: #00ffff;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    margin: 0.5rem 0 1.5rem;
    color: #fff;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-social a {
    color: #00ffff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 20, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ffff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #00ffff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: #00ffff;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Section Padding */
    section {
        padding: 4rem 1rem;
    }

    /* Grid Layouts */
    .skills-grid, .project-grid, .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards */
    .skill-card, .project-card, .cert-card {
        padding: 1.5rem;
    }

    /* Contact Form */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Section Headers */
    section h2 {
        font-size: 2rem;
        padding: 0 2rem;
    }

    /* Stats Section */
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Navigation */
    nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }

    /* Form Elements */
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Project Cards */
.project-card, .skill-card, .cert-card {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
}

/* Hero Content Adjustments */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 90%;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 225, 53, 0.1) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Add these new animations */
@keyframes scanlines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.glitch {
    position: relative;
    display: inline-block; /* Add this */
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Add this */
    text-align: center; /* Add this */
}

.glitch span:first-child {
    animation: glitch 500ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-0.04em, -0.03em);
    opacity: 0.75;
}

.glitch span:last-child {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(0.04em, 0.03em);
    opacity: 0.75;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    15% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    50% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    99% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    100% {
        text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
                     -0.04em -0.025em 0 #fffc00;
    }
}
