@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Optimized Palette - Deep Navy & Sky Blue */
    --bg-color: #0d1321;
    /* Unified Deep Navy Background */
    --text-color: #f8fafc;
    /* Standard White Text */
    --text-muted: #94a3b8;
    /* Cool Gray Muted Text */
    --primary: #38bdf8;
    /* Vibrant Sky Blue */
    --secondary: #0ea5e9;
    /* Deep Sky Blue for depth */
    --accent: #f472b6;
    /* Soft Pink for subtle highlights */
    --glass-bg: rgba(13, 19, 33, 0.7);
    /* Glass effect matching new bg */
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(30, 41, 59, 0.5);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 auto 3rem;
    /* Center horizontally with bottom margin */
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: table;
    /* Allows margin: auto to work while keeping gradient tight */
}



.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    box-shadow: none;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 19, 33, 0.95);
    /* Deep Navy semi-transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 2rem;
    color: var(--text-muted);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 30px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 800;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: rgba(30, 41, 59, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* Projects Section */
.projects {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Project Filter Styles */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.project-card.hide-item {
    display: none;
}


.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-content {
    padding: 30px;
}

.project-category {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-link {
    color: var(--text-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    color: var(--primary);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: rgba(30, 41, 59, 0.3);
}

.contact-container {
    display: flex;
    justify-content: center;
}

.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

/* Site Footer - Exact Match */
.site-footer {
    background-color: #0d1321;
    /* Deep Navy Blue matching the image */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    padding: 40px 0;
    /* Reduced padding for shorter height */
    margin-top: auto;
    font-family: 'Inter', sans-serif;
    /* Clean sans-serif */
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 1. Left Section: Brand - Vertically Centered */
.brand-section {
    flex: 0 0 auto;
    min-width: 200px;
    align-self: center;
    /* Centers logo vertically relative to the container */
    margin-top: -10px;
    /* Slight optical adjustment */
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.footer-logo span {
    color: #38bdf8;
    /* Light Cyan/Blue from image */
}

/* 2. Middle Section: Links */
.links-section {
    flex: 2;
    padding-left: 60px;
    display: flex;
    flex-direction: column;
}

.footer-nav-container {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: 0.2px;
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    /* Distinct gap */
    align-items: center;
}

.footer-nav-links a {
    color: #94a3b8;
    /* Cool Gray text */
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-links a:hover {
    color: #38bdf8;
}

/* 3. Right Section: Social */
.social-section {
    flex: 0 0 auto;
    min-width: 200px;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    /* Cool Gray text */
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: #ffffff;
}

.footer-social-links a i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

/* Brand Colors for Icons */
.footer-social-links a i.fa-linkedin {
    color: #0077b5;
    /* LinkedIn Blue */
}

.footer-social-links a i.fa-github {
    color: #ffffff;
    /* GitHub White */
}

.footer-social-links a i.fa-twitter {
    color: #1da1f2;
    /* Twitter Blue */
}

.footer-copyright {
    display: none;
    /* Removed as it's not in the target image snippet, or keep minimal */
}

/* Responsive */
@media (max-width: 992px) {
    .links-section {
        padding-left: 0;
        margin-top: 20px;
        flex: 100%;
        order: 2;
    }

    .brand-section {
        flex: 100%;
        text-align: center;
        margin-bottom: 20px;
        order: 1;
    }

    .social-section {
        flex: 100%;
        margin-top: 20px;
        order: 3;
    }

    .footer-content-wrapper {
        flex-direction: column;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--bg-color);
    border: 4px solid var(--secondary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    border-radius: 6px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

.date {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
}

/* Certificate Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cert-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.cert-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 15px;
    }

    .timeline-item.right {
        left: 0%;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animation Utilities */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 200ms;
}

.stagger-2 {
    transition-delay: 400ms;
}

.stagger-3 {
    transition-delay: 600ms;
}