:root {
    scroll-behavior: smooth;
    --bg-color: #ffffff;
    --text-primary: #0a192f;
    --text-secondary: #495670;
    --accent: #00A3FF;
    /* Vibrant Blue */
    --card-bg: #f0f4f8;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.8;
    /* Increased for "neat" readability */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    /* For the underline effect */
}

/* Animated Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    /* For the canvas positioning */
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content but accessible if needed */
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    /* Increased max-width */
    padding: 0 30px;
    /* Reduced padding to push closer to edges */
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 700px;
    /* Increased to prevent wrapping */
    min-width: 500px;
    /* Ensure it doesn't shrink initially */
    margin-top: 0;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 10px;
    white-space: nowrap;
    /* Prevent name from wrapping */
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 163, 255, 0.05);
}

/* Hero Visual - Status Card */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Push visual to the right */
}

.status-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    width: 350px;
    text-align: left;
    position: relative;
    animation: float 6s ease-in-out infinite;
    border: 1px solid #f0f0f0;
}

.status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.status-card h3 {
    font-size: 1.2rem;
    color: #0a192f;
    margin-bottom: 5px;
    line-height: 1.3;
}

.status-card .company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.status-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.status-card .tags span {
    background: #f0f8ff;
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-card .status-footer {
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 15px;
    line-height: 1.5;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Hero */
@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 50px;
    }

    .hero-text {
        text-align: center;
        margin-top: 40px;
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-visual {
        justify-content: center;
    }

    .status-card {
        width: 100%;
        max-width: 320px;
    }
}

.greeting {
    color: var(--accent);
    font-size: 1.1rem;
    font-family: monospace;
    margin-bottom: 20px;
    display: block;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 10px;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.1;
    margin-bottom: 20px;
}

.social-links {
    margin: 30px 0;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-right: 20px;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: rgba(0, 163, 255, 0.1);
}

.btn-primary {
    background-color: transparent;
    margin-top: 20px;
}

/* Sections General */
.section {
    padding: 80px 0;
    /* Reduced from 100px */
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent);
    margin-top: 15px;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    /* Stack vertically for centering */
    align-items: center;
    text-align: center;
    gap: 40px;
}

.about-img {
    flex: 0 0 auto;
    width: 300px;
    /* Slightly larger for desktop */
    height: 300px;
    position: relative;
    border-radius: 50%;
    padding: 10px;
    /* Space for the glass border */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 163, 255, 0.2);
    /* Glow + depth */
    transition: var(--transition);
}

.about-img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 30px rgba(0, 163, 255, 0.4);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.about-text {
    max-width: 800px;
    /* Prevent overly long lines */
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
}



/* Skills Section Redesign */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
    margin-top: -30px;
}

.new-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.skill-category-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: left;
    border: 1px solid #eee;
}

.skill-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #f0f8ff;
    /* Light blue bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.skill-category-card h3 {
    font-size: 1.2rem;
    /* Reduced from 1.4rem to fit single line */
    color: #2b2d42;
    margin-bottom: 15px;
    min-height: 2rem;
    /* Reduced since text is now single-line */
    display: flex;
    align-items: center;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
    min-height: 3rem;
    /* Ensure skills start on the same line */
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 18px;
    /* Increased from 12px for better readability */
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skills-list li::before {
    content: "\f111";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 6px;
    color: var(--accent);
    opacity: 0.6;
}

/* Redesign - Mobile Responsive */
@media (max-width: 768px) {
    .new-skills-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .skills-mobile-nav {
        display: flex;
    }
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
    .skills-mobile-nav {
        display: none;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    /* Increased padding */
    border-radius: 12px;
    /* More rounded corners */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    /* Center project content */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.project-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    min-height: 4.5rem;
    /* Ensure tech stack starts on same line */
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info .tech-stack {
    color: var(--accent);
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 20px;
    min-height: 2.5rem;
    /* Ensure description starts on same line */
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    /* Consistent line spacing */
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-info {
    margin-top: 50px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Better vertical spacing */
}

.contact-info p {
    font-size: 1.1rem;
    /* Slightly larger */
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.contact-info i {
    color: var(--accent);
    margin-right: 15px;
    width: 25px;
    /* Consistent icon width for alignment */
    text-align: center;
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 50px;
}

/* Animations (Simple Fade In) */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
        /* Reduced even further for a tighter look */
    }

    /* Skills Redesign Mobile */
    .skills-mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
        /* Aligned to top for varying label lengths */
        gap: 10px;
        margin-bottom: 40px;
        background: #f8fafc;
        padding: 20px 10px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .nav-circle {
        width: 45px;
        height: 45px;
        background: var(--accent);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        box-shadow: 0 4px 10px rgba(0, 163, 255, 0.2);
    }

    .mobile-nav-item span {
        font-size: 0.65rem;
        /* Slightly smaller for full names */
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }

    .skill-category-card {
        padding: 30px 20px;
    }

    .skills-list li {
        display: flex;
        align-items: baseline;
        gap: 12px;
        margin-bottom: 10px;
        text-align: left;
    }

    .skills-list li::before {
        content: "\f111";
        /* FontAwesome circle */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 6px;
        color: var(--accent);
        opacity: 0.6;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0px;
        background-color: rgba(255, 255, 255, 0.85);
        /* Transparent for glass effect */
        backdrop-filter: blur(15px);
        /* Glassmorphism */
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 80px;
        /* Reduced from 100px */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        gap: 30px;
        /* Added gap for cleaner vertical layout */
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links li a {
        font-size: 1.5rem;
        /* Increased from default 0.9rem */
        font-weight: 600;
        letter-spacing: 1px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links.nav-active li {
        animation: navLinkFade 0.4s ease forwards;
    }

    .nav-links.nav-active li:nth-child(1) {
        animation-delay: 0.2s;
    }

    .nav-links.nav-active li:nth-child(2) {
        animation-delay: 0.3s;
    }

    .nav-links.nav-active li:nth-child(3) {
        animation-delay: 0.4s;
    }

    .nav-links.nav-active li:nth-child(4) {
        animation-delay: 0.5s;
    }

    .nav-links.nav-active li:nth-child(5) {
        animation-delay: 0.6s;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-toggle {
        display: block;
        color: var(--accent);
    }

    .name {
        font-size: 2.5rem;
        white-space: normal;
    }

    .title {
        font-size: 1.8rem;
    }

    .social-links {
        margin: 20px 0;
    }

    .navbar {
        padding: 10px 0;
        /* Reduced from 20px */
    }

    .logo img {
        height: 35px;
        /* Smaller logo */
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 180px;
        /* Even thinner for a more compact look */
        margin: 0 auto;
        gap: 8px;
        /* Tighter gap */
    }

    .btn,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 8px 15px;
        /* Further reduced padding */
        font-size: 0.8rem;
        /* Smaller font */
    }

    .hero-visual {
        margin-top: -20px;
        /* Pull up the status card */
    }

    .status-card {
        padding: 1.5rem;
        /* Slightly more compact card */
    }

    /* About Me Mobile Refinements */
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        /* Stack line below text */
        text-align: center;
        justify-content: center;
        margin-bottom: 25px;
    }

    .section-title::after {
        width: 60px;
        /* Shorter, centered line */
        height: 2px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 10px;
        background-color: var(--accent);
        /* More visual prominence */
    }

    .section-subtitle {
        margin-bottom: 40px;
        margin-top: 0px;
        text-align: center;
        /* Centered subtitles */
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-img {
        flex: 0 0 auto;
        width: 200px;
        /* Adjusted size for circle */
        height: 200px;
        margin: 0 auto;
        overflow: hidden;
        border-radius: 50%;
        border: 4px solid var(--accent);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .about-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .about-text {
        font-size: 1rem;
        text-align: center;
        /* Centered as requested */
        opacity: 1;
        /* Ensure visible */
        transform: none;
        /* Remove translation */
    }
}