* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #000046 0%, #1CB5E0 100%);
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(0, 0, 0, 0.1);
}

.logo {
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    padding: 0 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 8%;
    min-height: calc(100vh - 80px);
}

/* Hero Section Container */
.hero-container {
    display: flex;
    align-items: center; /* Vertically centers the photo and text together */
    justify-content: space-between; /* Spaced out horizontally */
    max-width: 1200px;
    width: 100%;
    gap: 60px; /* Space between the photo and the text */
}

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

.hero-image img {
    width: 380px;  /* Size of the circle */
    height: 380px; 
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.2); /* Semi-transparent white frame */
    outline: 2px solid white; /* Thin solid outer line for a 'double frame' look */
    padding: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Text Content Styling */
.hero-text {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Ensures text stays centered if photo is taller */
}

/* Responsive adjustments for Mobile */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column; /* Stack vertically on small screens */
        text-align: center;
        gap: 30px;
    }

    .hero-image img {
        width: 280px; /* Slightly smaller for mobile */
        height: 280px;
    }

    .title-group {
        justify-content: center;
    }
}

.hero-text {
    flex: 1.5;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.title-group h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.line {
    flex-grow: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
}

.name {
    font-size: 5rem;
    font-weight: 800;
    margin-top: -10px;
    line-height: 1.1;
}

.description {
    margin-top: 25px;
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.9);
}

/* Social Icons */
.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 2.5rem;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
}

/* Responsive Tablet/Mobile */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .name { font-size: 3.5rem; }
    .title-group { justify-content: center; }
    .line { display: none; }
    .description { margin: 25px auto; }
    .social-icons { justify-content: center; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none; /* Controlled by JS */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #000046;
        flex-direction: column;
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .nav-links li { padding: 15px 0; }
}

/* About Page Layout */
.about-container {
    padding: 60px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

/* Sidebar Styling */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-left: 4px solid #1CB5E0;
    border-radius: 4px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #1CB5E0;
    margin-bottom: 5px;
}

.stat-card p {
    font-weight: 600;
}

/* Main Content Styling */
.about-main h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-main .intro {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 25px;
    color: #1CB5E0;
}

.about-main p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.about-main h3 {
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
}

/* Skill Tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.tag {
    background: rgba(28, 181, 224, 0.2);
    border: 1px solid #1CB5E0;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive for Mobile */
@media (max-width: 850px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-sidebar {
        order: 2; /* Move facts below text on mobile */
    }
    
    .about-main {
        order: 1;
    }
}
/* --- Updated Navbar Hover Effects --- */

.nav-links a {
    position: relative; /* Necessary for the custom underline effect */
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease; /* Smooth transition for color change */
}

/* 1. Change text color and slight glow on hover */
.nav-links a:hover {
    color: #1CB5E0; /* Matches your theme's light blue */
    text-shadow: 0 0 10px rgba(28, 181, 224, 0.5);
}

/* 2. Modern Animated Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #1CB5E0;
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
    background: #1CB5E0;
}

/* 3. Button effect for the Logo */
.logo {
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
    transform: scale(1.05); /* Slight pop-out effect */
    color: #1CB5E0;
}

/* 4. Active Link State (so people know where they are) */
.active-link {
    color: #1CB5E0 !important;
}

.active-link::after {
    width: 100% !important; /* Keep the line visible for the active page */
}

/* Tech Stack Page */
.tech-container {
    padding: 80px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-container .section-title p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
    grid-auto-rows: minmax(220px, auto);
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tech-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #1CB5E0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.tech-card i {
    font-size: 3.5rem;
    color: #1CB5E0;
    margin-bottom: 20px;
    display: block;
}

/* Special styling for C icon since FontAwesome doesn't have a standard C logo */
.c-icon {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1CB5E0;
    margin-bottom: 25px;
    border: 3px solid #1CB5E0;
    width: 60px;
    height: 60px;
    line-height: 54px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}


/* Mobile responsive tweak */
@media (max-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Standardized Badge Gallery --- */
.badge-gallery {
    display: flex;
    justify-content: center;
    align-items: center; /* Center badge items for even alignment */
    gap: 50px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-item img {
    height: 70px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(28, 181, 224, 0.3));
}

.badge-item span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1CB5E0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.badge-item:hover {
    transform: translateY(-10px);
}

.badge-item:hover img {
    filter: drop-shadow(0 0 15px rgba(28, 181, 224, 0.6));
}

/* Mobile responsive tweak */
@media (max-width: 600px) {
    .badge-gallery {
        gap: 20px;
    }
    .badge-item {
        width: 100px;
    }
    .badge-item img {
        height: 55px;
    }
}

/* --- Contact Page Main Container --- */
.contact-container {
    padding: 80px 8%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

/* --- Resume Section (View/Download) --- */
.resume-section {
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.resume-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.resume-content:hover {
    border-color: #1CB5E0;
}

.resume-content i {
    font-size: 3.5rem;
    color: #1CB5E0;
}

.resume-text {
    flex-grow: 1;
}

.resume-text h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: white;
}

.resume-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Resume Buttons */
.resume-actions {
    display: flex;
    gap: 15px;
}

.main-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #1CB5E0;
    color: white;
    border: 2px solid #1CB5E0;
    cursor: pointer;
}

.main-btn.outline {
    background: transparent;
    color: #1CB5E0;
}

.main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(28, 181, 224, 0.3);
}

.main-btn.outline:hover {
    background: rgba(28, 181, 224, 0.1);
}

/* --- Social Contact Grid --- */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    width: 320px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #1CB5E0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-card i {
    font-size: 3rem;
    color: #1CB5E0;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Card Button Decoration */
.contact-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #1CB5E0;
    border-radius: 30px;
    color: #1CB5E0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-btn {
    background: #1CB5E0;
    color: white;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .resume-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .resume-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .main-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 60px 5%;
    }
    
    .contact-card {
        width: 100%;
    }
}

/* --- Certifications Page Container --- */
.certs-container {
    padding: 80px 8%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

/* --- Standardized Badge Gallery --- */
.badge-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Aligns badges along the bottom for visual balance */
    gap: 50px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px; /* Standardized container width */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-item img {
    height: 70px; /* Forces all badges to the exact same height */
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(28, 181, 224, 0.2));
}

.badge-item span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1CB5E0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.badge-item:hover {
    transform: translateY(-10px);
}

/* --- Horizontal Certificate Grid --- */
.certs-grid {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Forces all cards in a row to be equal height */
    gap: 30px;
    flex-wrap: wrap;
}

.cert-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 320px; /* Standard card width */
    transition: 0.3s ease;
    backdrop-filter: blur(5px);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: #1CB5E0;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* --- Image Container Alignment Fix --- */
.cert-img-container {
    height: 250px; /* Fixed height for consistent horizontal alignment */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.15);
}

.cert-img-container img {
    max-height: 160px; /* Limits size so different shapes look uniform */
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* --- Text Content Alignment --- */
.cert-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1; /* Pushes content to fill card height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cert-info h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 8px;
    min-height: 3em; /* Reserves space so text starts at the same line */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .badge-gallery {
        gap: 25px;
    }
    
    .badge-item img {
        height: 55px;
    }

    .cert-card {
        width: 100%; /* Stacks cards on mobile */
    }
}