* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e1e1e1;
    background-color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: #2a2a2a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #66b3ff;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #b8b8b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4a9eff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #4a9eff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    /* To change the background image, update the --hero-background-image custom property below
       Example: --hero-background-image: url('path/to/your/background-image.jpg'); */
    --hero-background-image: url('images/background'); /* CSS custom property for easy background customization */
    background: 
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        var(--hero-background-image),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: contain;
    background-position: center;
    background-blend-mode: normal;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.personal-image {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.personal-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #4a9eff;
    color: #fff;
}

.btn-primary:hover {
    background: #66b3ff;
    color: #fff;
    border-color: #66b3ff;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #4a9eff;
}

.btn-secondary:hover {
    background: #4a9eff;
    color: #fff;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #e1e1e1;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about {
    background: #242424;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b8b8b8;
}

.skills h3 {
    margin-bottom: 1.5rem;
    color: #e1e1e1;
    font-size: 1.3rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Experience Section */
.experience {
    background: #1e1e1e;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 150px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 145px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #4a9eff;
    border-radius: 50%;
}

.timeline-date {
    width: 140px;
    font-weight: 600;
    color: #4a9eff;
    font-size: 0.9rem;
}

.timeline-content {
    flex: 1;
    margin-left: 2rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: #e1e1e1;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #b8b8b8;
    line-height: 1.6;
}

/* Projects Section */

.projects {
    background: #242424;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: #2a2a2a;
    display: flex;              /* NEW */
    flex-direction: column;     /* NEW */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.project-card h3 {
    margin: 0 0 1rem;
    color: #e1e1e1;
    font-size: 1.3rem;
}

.project-card p {
    color: #b8b8b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-card button {
  background-color: #444;
  border: none;
  padding: 10px 20px;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  margin: 0; /* Remove any default margin */
  display: block; /* Ensure button takes full width of container if needed */
  width: 100%; /* Optional: Makes button full width of card */
}

.project-links {
  margin: 0;        /* remove default margin */
  padding: 0;       /* reset padding */
}

.project-links span {
  display: inline-block; /* keeps the span styled like a button */
  margin: 0
}



/* Contact Section */
.contact {
    background: #1e1e1e;
    text-align: center;
}

.contact p {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #2a2a2a;
    color: #e1e1e1;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    color: #4a9eff;
}

.contact-icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #0f0f0f;
    color: #b8b8b8;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2a2a2a;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        display: none;
    }

    .nav-menu.active {
        display: flex;
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-images {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .personal-image {
        width: 160px;
        height: 160px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }

    .timeline-content {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 200px;
        justify-content: center;
    }

    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}
