:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #3b82f6;
    --secondary-color: #ec4899;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-image: url('../assets/hero-bg.svg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    /* Overlay to ensure text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: slideInLeft 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content .highlight {
    color: var(--primary-color);
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-out;
}

.hero-image img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 5px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Sections General */
.section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

/* Experience Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--glass-bg);
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
}

/* Date placement fixed - inside content but styled to look outside or above */
.timeline-date {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Media query for timeline handles the stacking */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
        /* Force all items to align left */
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .timeline-date {
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hidden-project {
    display: none;
}

.project-card {
    background: var(--glass-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid var(--glass-border);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Skills Section */
.subsection-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 3rem 0 2rem;
    position: relative;
    font-weight: 500;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.skill-item {
    background: var(--glass-bg);
    padding: 1.5rem 2.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    transition: bg 0.3s;
}

.skill-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Contact Section */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #0f172a;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    /* Changed to white as per reference image, or can keep glass if preferred */
    background: var(--glass-bg);
    /* Keeping glass for theme consistency */
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 0.8rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 2.5rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Footer styling */
.footer {
    background: #0b1120;
    /* Darker shade */
    padding: 4rem 5% 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-socials a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--primary-color);
}

.newsletter-signup {
    margin-top: 2rem;
}

.newsletter-link {
    color: var(--secondary-color);
    /* Orange/Accent color */
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* How I Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.work-card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

.work-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.work-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Projects Expandable Cards */
.projects-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-details {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-details[open] {
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 0.9);
}

.project-summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    list-style: none;
    /* Remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-summary::-webkit-details-marker {
    display: none;
}

.project-summary h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
}

.project-summary .icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.project-details[open] .project-summary .icon {
    transform: rotate(45deg);
}

.project-content {
    padding: 0 2rem 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.project-content h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.project-content h4:first-child {
    margin-top: 0;
}

.project-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Growth Section Refinements (Simplified & Centered) */
.growth-simple {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.growth-content-centered {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.growth-intro {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-color);
}

.growth-intro strong {
    color: var(--primary-color);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.growth-logic {
    font-size: 1.2rem;
    color: var(--text-muted);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    width: 100%;
}

.growth-logic p {
    margin: 0.5rem 0;
}

.growth-highlight {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

/* Final Global Formatting Adjustments */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .growth-intro {
        font-size: 1.2rem;
    }

    .growth-logic {
        font-size: 1rem;
        padding: 1rem;
    }

    .growth-highlight {
        font-size: 1.2rem;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        padding-top: 5rem;
        z-index: 999;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        height: auto;
        padding-top: 8rem;
        padding-bottom: 5rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-date {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin-bottom: 10px;
        display: block;
        text-align: left !important;
    }
}