* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0b0f19;
    --second-bg-color: #111827;
    --text-color: #f3f4f6;
    --main-color: #3b82f6; /* Electric Blue */
    --accent-color: #8b5cf6; /* Vivid Purple */
    --glass-bg: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Custom Keyframes */
@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2.4rem); }
    100% { transform: translateY(0); }
}

@keyframes slideRight {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideLeft {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

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

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

/* Base Headings */
.heading {
    text-align: center;
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 3rem;
}
.heading span {
    color: var(--main-color);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 9%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}
.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-left: 2.5rem;
    font-weight: 500;
    transition: .3s;
}
.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

#menu-icon {
    font-size: 2.5rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Utility classes */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .3s ease;
}
.btn:hover {
    box-shadow: none;
    transform: scale(1.05);
}
.btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* Sections Base */
section {
    min-height: 100vh;
    padding: 8rem 9% 2rem;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}
.home-content h3 {
    font-size: 2rem;
    font-weight: 600;
}
.home-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 1rem 0;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(to right, #fff, var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #9ca3af;
    margin-bottom: 2rem;
    max-width: 600px;
}

.social-media {
    margin-bottom: 2rem;
}
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--main-color);
    margin-right: 1.2rem;
    transition: .3s;
}
.social-media a:hover {
    background: var(--main-color);
    color: #fff;
    box-shadow: 0 0 15px var(--main-color);
    transform: translateY(-3px);
}

.home-img img {
    width: 35vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: .5s ease;
    animation: floatImage 4s ease-in-out infinite;
}
.home-img img:hover {
    box-shadow: 0 0 50px var(--main-color);
}

/* About Section */
.about {
    background: var(--second-bg-color);
}
.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}
.about-text {
    flex: 1;
}
.about-text h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}
.about-text h4 {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}
.about-text p {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.stat-box {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: .3s;
}
.stat-box:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.stat-box h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.skills-category {
    background: var(--second-bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}
.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.skills-category h3 i {
    color: var(--main-color);
    font-size: 1.8rem;
}
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.skill-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--main-color);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: .3s;
}
.skill-tag:hover {
    background: var(--main-color);
    color: #fff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Certifications, Awards, Activities Sections */
.certifications, .activities {
    background: var(--second-bg-color);
}
.awards {
    background: var(--bg-color);
}
.awards .cert-card {
    background: var(--second-bg-color);
}
.certs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.cert-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: .3s;
    position: relative;
    overflow: hidden;
}
.cert-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}
.cert-icon {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}
.cert-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.cert-card h4 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.cert-card p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* API Showcase */
.api-showcase {
    text-align: center;
}
.api-desc {
    color: #9ca3af;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.api-card {
    background: var(--second-bg-color);
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
}
.quote-icon {
    font-size: 3rem;
    color: var(--main-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}
.quote-text {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.quote-author {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
}
.loader {
    border: 4px solid var(--bg-color);
    border-top: 4px solid var(--main-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Info */
.contact {
    background: var(--second-bg-color);
}
.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.contact-item i {
    font-size: 3rem;
    color: var(--main-color);
}
.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}
.contact-item p {
    color: #9ca3af;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}
.footer-text p {
    font-size: 1rem;
    color: #9ca3af;
}
.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .5rem;
    background: var(--main-color);
    border-radius: .5rem;
    transition: .3s;
}
.footer-iconTop a i {
    font-size: 1.5rem;
    color: #fff;
}
.footer-iconTop a:hover {
    box-shadow: 0 0 10px var(--main-color);
}

/* Projects Section */
.projects {
    background: var(--second-bg-color);
}
.project-card-large {
    background: var(--bg-color);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    overflow: hidden;
    transition: .3s;
}
.project-card-large:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}
.project-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--main-color);
    display: inline-block;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
    width: max-content;
}
.project-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.project-content p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.project-btn {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 8px;
}
.project-image-preview {
    flex: 1;
    background: linear-gradient(45deg, var(--main-color), var(--accent-color));
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}
.preview-box {
    background: rgba(17, 24, 39, 0.8);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(5px);
}
.preview-box i {
    font-size: 4rem;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}
.preview-box span {
    font-weight: 600;
    color: #f3f4f6;
    letter-spacing: 1px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: .3s;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Utilities */
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Responsive Design */
@media (max-width: 991px) {
    header {
        padding: 1.5rem 5%;
    }
    section {
        padding: 8rem 5% 2rem;
    }
    .home {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    .home-content h1 {
        font-size: 3.5rem;
    }
    .profile-img {
        width: 300px;
        height: 300px;
    }
    .about-content {
        flex-direction: column;
    }
    .project-card-large {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 5%;
        background: var(--second-bg-color);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.2);
        transition: .3s ease;
        border-bottom: 1px solid var(--border-color);
    }
    .navbar.active {
        left: 0;
    }
    .navbar a {
        display: block;
        font-size: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .home-content h1 {
        font-size: 3rem;
    }
    .heading {
        font-size: 2.8rem;
    }
}
