/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a192f;
    color: #ffffff;
    line-height: 1.6;
}

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

section {
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 40px;
    color: #ffd700;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

/* Subtle underline animation for headings */
h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #f0c000);
    border-radius: 2px;
    animation: headingLine 3s ease-in-out infinite;
}

@keyframes headingLine {
    0%, 100% { width: 60px; opacity: 0.7; }
    50% { width: 100px; opacity: 1; }
}

.section-subtitle {
    text-align: center;
    color: #ccd6f6;
    font-size: 18px;
    margin-bottom: 50px;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */

nav {
    background-color: #0a192f;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    animation: navSlide 0.8s ease-out;
}

@keyframes navSlide {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.logo {
    color: #ffd700;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    border: 2px solid #ffd700;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.logo:hover {
    background-color: #ffd700;
    color: #0a192f;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
}

nav ul li a {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 18px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

/* Underline effect */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #f0c000);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 70%;
}

nav ul li a.active {
    color: #ffd700;
    font-weight: bold;
    background: transparent;
    box-shadow: none;
    transform: none;
}

nav ul li a.active::after {
    width: 70%;
}

nav ul li a.active:hover {
    transform: none;
}

nav ul li a:hover {
    background: transparent;
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: none;
}

.menu-toggle {
    display: none;
    color: #ffd700;
    font-size: 28px;
    cursor: pointer;
}

.menu-toggle i {
    transition: all 0.3s ease;
}

.menu-toggle i.fa-times {
    transform: rotate(90deg);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #0a192f, #1a3a5c);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 30px;
    margin-top: 0;
    max-width: 100%;
    animation: heroFade 1.2s ease-out;
}

@keyframes heroFade {
    0% { opacity: 0; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 60px;
    color: #ffffff;
    margin-bottom: 20px;
    animation: textReveal 1.5s ease-out;
}

@keyframes textReveal {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero h1 span {
    color: #ffd700;
    display: inline-block;
    animation: goldPulse 3s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.1); }
    50% { text-shadow: 0 0 40px rgba(255, 215, 0, 0.25); }
}

.hero p {
    font-size: 22px;
    color: #ccd6f6;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
    animation: textReveal 1.8s ease-out;
}

.hero p strong {
    color: #ffd700;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: textReveal 2s ease-out;
}

.btn-primary {
    background-color: #ffd700;
    color: #0a192f;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background-color: #f0c000;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #ffd700;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #ffd700;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #ffd700;
    color: #0a192f;
    transform: scale(1.05);
}

.social-icons {
    display: flex;
    gap: 25px;
    justify-content: center;
    animation: textReveal 2.2s ease-out;
}

.social-icons a {
    color: #ccd6f6;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #ffd700;
    transform: translateY(-3px) scale(1.1);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background-color: #0a192f;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    border: 3px solid #ffd700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.1);
    transition: all 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.15);
}

.about-text h3 {
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 15px;
}

.about-text p {
    color: #ccd6f6;
    font-size: 17px;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.about-text p:hover {
    opacity: 1;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0 30px;
    color: #ccd6f6;
}

.about-info div {
    padding: 8px 0;
    transition: all 0.3s ease;
}

.about-info div:hover {
    transform: translateX(5px);
    color: #ffffff;
}

.about-info strong {
    color: #ffd700;
}

/* ========================================
   SKILLS SECTION
   ======================================== */

.skills {
    background: linear-gradient(135deg, #0a192f, #1a3a5c);
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    animation: cardFade 0.8s ease-out forwards;
    opacity: 0;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }
.skill-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes cardFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #ffd700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.1);
}

.skill-card i {
    font-size: 48px;
    color: #ffd700;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.skill-card:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.skill-card h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #f0c000);
    border-radius: 10px;
    transition: none;
    width: 0%;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.skill-percent {
    color: #ccd6f6;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    min-width: 40px;
    transition: all 0.3s ease;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects {
    background-color: #0a192f;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardFade 0.8s ease-out forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: #ffd700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.4s ease;
}

.project-card img:hover {
    filter: brightness(0.85) saturate(1.1);
    transform: scale(1.02);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: #ffd700;
    font-size: 22px;
    margin-bottom: 10px;
}

.project-info p {
    color: #e6e8f0;
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.project-tags span {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tags span:hover {
    background: rgba(255, 215, 0, 0.25);
    transform: scale(1.05);
}

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

.project-links a {
    color: #ccd6f6;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.project-links a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(3px);
}

/* ========================================
   CERTIFICATIONS & ACHIEVEMENTS SECTION
   ======================================== */

.certificates {
    background: linear-gradient(135deg, #0a192f, #1a3a5c);
}

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

.certificate-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 28px 25px 25px;
    border-radius: 15px;
    text-align: left;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: cardFade 0.8s ease-out forwards;
    opacity: 0;
}

.certificate-card:nth-child(1) { animation-delay: 0.1s; }
.certificate-card:nth-child(2) { animation-delay: 0.2s; }
.certificate-card:nth-child(3) { animation-delay: 0.3s; }
.certificate-card:nth-child(4) { animation-delay: 0.4s; }
.certificate-card:nth-child(5) { animation-delay: 0.5s; }
.certificate-card:nth-child(6) { animation-delay: 0.6s; }

.certificate-card:hover {
    transform: translateY(-10px);
    border-color: #ffd700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.1);
}

.cert-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 215, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.cert-image:hover {
    border-color: #ffd700;
    transform: scale(1.02);
    filter: brightness(0.92);
}

.certificate-card h3 {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.certificate-card .cert-issuer {
    color: #e6e8f0;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
}

.certificate-card .cert-issuer::before {
    content: '🏆 ';
    font-size: 14px;
}

.certificate-card .cert-description {
    color: #d0d8e8;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
    padding: 0 2px;
    font-weight: 400;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 215, 0, 0.15);
    width: 100%;
}

.certificate-card .cert-description::before {
    content: '"';
    color: #ffd700;
    opacity: 0.4;
    font-size: 18px;
    margin-right: 4px;
}

.certificate-card .cert-description::after {
    content: '"';
    color: #ffd700;
    opacity: 0.4;
    font-size: 18px;
    margin-left: 4px;
}

/* ========================================
   VIEW BUTTON
   ======================================== */

.view-btn {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    background: #ffd700;
    color: #0a192f;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.view-btn i {
    font-size: 14px;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    border: 3px solid #ffd700;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
    animation: zoomIn 0.3s ease;
}

.close-lightbox {
    position: fixed;
    top: 30px;
    right: 50px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.close-lightbox:hover {
    color: #ffd700;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    background-color: #0a192f;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 28px;
    color: #ffd700;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
}

.contact-item h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    color: #ccd6f6;
    font-size: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    background: rgba(255, 215, 0, 0.05);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8892b0;
}

.contact-form button {
    align-self: flex-start;
}

/* ========================================
   SUCCESS POPUP
   ======================================== */

.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: #0a192f;
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    animation: zoomIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
}

.popup-content i {
    font-size: 70px;
    color: #4caf50;
    margin-bottom: 20px;
    animation: bounceIn 0.5s ease;
}

.popup-content h3 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 15px;
}

.popup-content p {
    color: #ccd6f6;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-content .btn-primary {
    background-color: #ffd700;
    color: #0a192f;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-content .btn-primary:hover {
    background-color: #f0c000;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: #0a192f;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-logo {
    color: #ffd700;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid #ffd700;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    background-color: #ffd700;
    color: #0a192f;
    transform: scale(1.05);
}

footer p {
    color: #ccd6f6;
    font-size: 14px;
}

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

.footer-social a {
    color: #ccd6f6;
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #ffd700;
    transform: translateY(-3px) scale(1.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-info {
        justify-items: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form button {
        align-self: center;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #0a192f;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 20px;
        gap: 5px;
        border-bottom: 2px solid #ffd700;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li a {
        display: block;
        padding: 12px 20px;
        text-align: center;
        border-radius: 8px;
    }

    nav ul li a:hover {
        transform: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        min-width: 200px;
        max-width: 280px;
        text-align: center;
        padding: 14px 30px;
        display: inline-block;
    }

    section {
        padding: 60px 20px;
    }

    h2 {
        font-size: 30px;
    }

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

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

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

    .certificate-card {
        padding: 22px 18px 20px;
    }

    .certificate-card h3 {
        font-size: 18px;
    }

    .certificate-card .cert-description {
        font-size: 14px;
        line-height: 1.7;
        padding: 10px 12px;
    }

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

    .lightbox {
        padding: 20px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }

    .close-lightbox {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }

    .contact-form button {
        align-self: center;
        width: auto;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 28px;
    }

    .logo {
        font-size: 20px;
        padding: 6px 12px;
    }

    .project-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .project-links a {
        flex: 0 1 auto;
        padding: 8px 16px;
    }

    .btn-primary,
    .btn-secondary {
        min-width: 160px;
        max-width: 100%;
        padding: 12px 24px;
        font-size: 16px;
    }

    .popup-content {
        padding: 35px 25px;
        max-width: 95%;
    }

    .popup-content i {
        font-size: 50px;
    }

    .popup-content h3 {
        font-size: 22px;
    }

    .popup-content p {
        font-size: 14px;
    }
}

/* Chrome Autofill Fix */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #0a192f inset !important;
    box-shadow: 0 0 0 1000px #0a192f inset !important;
    caret-color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s !important;
}
