/* General Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0f;
    color: #e0e0e0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(16, 16, 24, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .logo {
    font-weight: 800;
    font-size: 1.8rem;
    color: #00f2ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.navbar nav a {
    margin: 0 15px;
    font-weight: 600;
    color: #e0e0e0;
    transition: all 0.3s;
}

.navbar nav a:hover {
    color: #00f2ff;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

/* GitHub Portfolio Link */
.github-link {
    font-weight: 600;
    color: #00f2ff;
    text-decoration: none;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.github-link:hover {
    color: #00f2ff;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px;
    height: calc(100vh - 80px);
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 2;
    max-width: 50%;
}

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

.hero-image img {
    max-width: 80%;
    height: auto;
    border-radius: 20px;
}

/* Typing Animation */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #00f2ff;
    animation: 
        typing 3.5s steps(40, end),
        blink .75s step-end infinite;
    margin: 0 auto;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.hero-text .highlight {
    color: #00f2ff;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    position: relative;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f2ff, transparent);
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Tech-inspired text styles */
.about-left h2,
#projects h2,
#contact h2 {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.about-left h2::before,
#projects h2::before,
#contact h2::before {
    content: ' ';
    color: #00f2ff;
    margin-right: 10px;
    animation: blink 1s step-end infinite;
}

.about-left p,
.project-info p,
#contact p {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.about-left p::before,
.project-info p::before,
#contact p::before {
    content: ' ';
    color: #00f2ff;
    position: absolute;
    left: 0;
    opacity: 0.7;
}

/* Terminal-like effect for project cards */
.project-card {
    background: rgba(16, 16, 24, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f2ff, transparent);
    animation: scanline 3s linear infinite;
}

.project-info h3 {
    font-family: 'Courier New', monospace;
    color: #00f2ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
    position: relative;
    display: inline-block;
}

.project-info h3::before {
    content: '$';
    color: #00f2ff;
    margin-right: 8px;
    opacity: 0.7;
}

/* Update button style to be more terminal-like */
.cta-button {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 255, 0.2),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.cta-button:hover {
    background: linear-gradient(90deg, #0066ff, #00f2ff);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: #0f0f1a;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.about-left {
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.about-left h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.about-left p,
.about-left ul {
    font-size: 1rem;
    margin-bottom: 15px;
}

.about-left ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Gallery with Popup Feature */
.project-gallery {
    padding: 50px;
    text-align: center;
}

.project-gallery h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.project-gallery p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

/* Image Grid Layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Popup Modal */
.popup {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.popup-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ff0000;
}

/* Video Section */
.project-video {
    padding: 50px;
    text-align: center;
}

.project-video h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.project-video p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

.video-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.video-container video {
    max-width: 480px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
#projects {
    padding: 80px 20px;
    background: #0a0a0f;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#projects .content-wrapper {
    max-width: 1400px;
    /* Widen the content area */
    margin: 0 auto;
}

#projects h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* 4 items in a row */
    gap: 40px;
    /* Increased gap for breathing space */
    max-width: 1200px;
    /* Center the grid content */
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background: rgba(16, 16, 24, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.2);
    border-color: rgba(0, 242, 255, 0.3);
}

.project-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #f1f1f1;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-info h3 {
    margin: 0;
    font-weight: 600;
    color: #00f2ff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.project-info p {
    margin-top: 10px;
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.5;
}

/* Contact Section */
#contact {
    background: #0f0f1a;
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#contact .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

#contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

#contact p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #b0b0b0;
}

.contact-links {
    list-style: none;
    padding: 0;
}

.contact-links li {
    margin: 10px 0;
    font-size: 1rem;
    color: #00f2ff;
}

.contact-links a {
    color: #00f2ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

.contact-links a:hover {
    color: #00f2ff;
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.5);
}

/* Footer */
.social-links {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    background: #0a0a0f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.certification-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 25px 0;
    padding: 20px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.aws-badge {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.certification-badge span {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

.verify-link {
    font-size: 0.9rem;
    color: #00f2ff;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.verify-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}