* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #d4af37; /* Gold accent */
    --dark-color: #1a2233;   /* Deep navy/slate */
    --light-color: #f5f6fa;  /* Very light gray/white */
    --accent-color: #bfa14a; /* Muted gold for hover */
    --shadow: 0 8px 32px 0 rgba(26, 34, 51, 0.10);
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
}

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

header {
    background: var(--dark-color);
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    z-index: 1100;
}

.menu-toggle .hamburger-bar {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    transition: right 0.3s;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26, 34, 51, 0.92), rgba(26, 34, 51, 0.92)), url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero-content p {
    font-size: 28px;
    margin-bottom: 30px;
    color: #f7e9c2;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--primary-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--dark-color);
}

section {
    padding: 100px 0 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    color: #d4af37;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #d4af37 0%, #bfa14a 40%, #1a2233 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Remove text-fill-color for better compatibility */
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}
@supports not (-webkit-text-fill-color: transparent) {
  .section-title h2 {
    color: #d4af37;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
  }
}
.section-title h2::after {
    content: '';
    display: block;
    margin: 0 auto;
    margin-top: 8px;
    width: 60px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, #d4af37 0%, #bfa14a 40%, #1a2233 100%);
    opacity: 0.85;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    box-shadow: 0 4px 24px rgba(44,62,80,0.15);
    background: #fff;
}

.about-text h3 {
    margin-bottom: 20px;
    font-size: 26px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 10px;
    font-size: 18px;
}

.about-skills h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-skills p {
    font-size: 17px;
    color: #555;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-item {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.2s;
}

.education-item:hover {
    transform: translateY(-6px) scale(1.03);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: white;
    transition: transform 0.2s;
}

.project-item:hover {
    transform: translateY(-6px) scale(1.03);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: filter 0.3s;
}

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 24px 18px;
    background: rgba(212, 175, 55, 0.97);
    color: var(--dark-color);
    transition: bottom 0.3s;
    border-radius: 0 0 12px 12px;
}

.project-item:hover .project-info {
    bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 36px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.service-item:hover {
    transform: translateY(-6px) scale(1.03);
}

.service-item i {
    font-size: 44px;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-item {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.review-item:hover {
    transform: translateY(-6px) scale(1.03);
}

.review-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.review-author img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

.review-author h4 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
}

.contact-info {
    text-align: center;
    margin-top: 50px;
}

.contact-info i {
    font-size: 26px;
    color: var(--primary-color);
    margin-right: 10px;
}

footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 16px;
    letter-spacing: 1px;
}

#goTopBtn {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: var(--primary-color);
    color: rgb(247, 241, 241);
    border: none;
    outline: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(26,34,51,0.15);
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    opacity: 0.85;
    overflow: visible;
}
#goTopBtn::after {
    content: '\2191'; /* Unicode up arrow */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 28px;
    color: var(--light-color);
    pointer-events: none;
    opacity: 0.85;
    text-shadow: 0 2px 8px rgba(26,34,51,0.18);
}
#goTopBtn i {
    opacity: 0;
}
#goTopBtn:hover::after {
    color: var(--primary-color);
    opacity: 1;
    text-shadow: 0 4px 16px rgba(26,34,51,0.22);
}
.skills-list {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    width: 100%;
}
.skills-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    background: linear-gradient(120deg, #fff 60%, var(--light-color) 100%);
    border-radius: 24px;
    box-shadow: 0 4px 32px 0 rgba(26,34,51,0.10);
    padding: 40px 48px;
    max-width: 800px;
    width: 100%;
    justify-content: center;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}
.skills-list ul::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 80%);
    opacity: 0.12;
    z-index: 0;
}
.skills-list ul::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 80%);
    opacity: 0.10;
    z-index: 0;
}
.skills-list li {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 18px 36px;
    border-radius: 32px;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(26,34,51,0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.skills-list li i {
    font-size: 28px;
    color: #fffbe7;
    filter: drop-shadow(0 2px 6px rgba(26,34,51,0.10));
}
.skills-list li:hover {
    background: var(--accent-color);
    color: var(--light-color);
    transform: scale(1.09) translateY(-4px);
    box-shadow: 0 8px 32px 0 rgba(26,34,51,0.18);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}
.hero-image img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 4px 16px rgba(44,62,80,0.12);
    background: #fff;
}

.btn,
.nav-links a,
.service-item,
.skills-list li,
.menu-toggle,
#goTopBtn {
    cursor: pointer;
}

.skill-example {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.skill-example pre {
    background: #23272f;
    color: #fff;
    padding: 24px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(44,62,80,0.10);
    max-width: 600px;
    width: 100%;
    overflow-x: auto;
}
.skill-example code {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        flex-direction: column;
        background: var(--dark-color);
        position: absolute;
        top: 70px;
        right: -100vw;
        width: 220px;
        padding: 30px 0;
        box-shadow: var(--shadow);
        border-radius: 0 0 0 16px;
        z-index: 1001;
        display: flex;
        transition: right 0.3s;
    }
    .nav-links.open {
        right: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        background: var(--dark-color);
        position: absolute;
        top: 70px;
        right: -100vw;
        width: 220px;
        padding: 30px 0;
        box-shadow: var(--shadow);
        border-radius: 0 0 0 16px;
        z-index: 1001;
        display: flex;
        transition: right 0.3s;
    }
    .nav-links.open {
        right: 0;
    }
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 34px;
    }
    .hero-content p {
        font-size: 18px;
    }
    .btn {
        font-size: 16px;
        padding: 10px 20px;
    }
    section {
        padding: 60px 0 30px 0;
    }
    .section-title h2 {
        font-size: 26px;
    }
}
.skills-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}
.skill-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.skill-card i {
  font-size: 48px;
  margin-bottom: 16px;
}
.skill-card span {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
}
.skill-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 32px 0 rgba(20, 33, 61, 0.18);
}