/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --text-light: #f8f9fa;
    --text-dark: #2c3e50;
    --bg-dark: #1a1a2e;
    --bg-light: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.2);
}
[data-theme="dark"] {
    --text-light: #2c3e50;
    --text-dark: #f8f9fa;
    --bg-dark: #f8f9fa;
    --bg-light: #1a1a2e;
}
/* ========== GLOBAL ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: all 0.3s ease;
    overflow-x: hidden;
}
/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}
[data-theme="dark"] .navbar {
    background: rgba(26, 26, 46, 0.95);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.nav-links a:hover {
    color: var(--primary-color);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}
.theme-toggle:hover {
    background: var(--gradient-1);
    color: white;
    transform: rotate(180deg);
}
/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gentle SVG pattern for subtle effect */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="300" r="100" fill="url(%23a)"/><circle cx="800" cy="200" r="80" fill="url(%23a)"/><circle cx="600" cy="600" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}
.hero-content .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}
.hero-content .description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary {
    background: white;
    color: var(--primary-color);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}
/* Profile Card & Circle (PNG Image) */
.profile-card {
    background: rgba(225, 37, 140, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(156, 234, 60, 0.2);
}
.profile-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7236e2, #d6e766);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 1rem auto;
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}
/* ========== ABOUT SECTION ========== */
.about {
    padding: 5rem 0;
    background: var(--bg-light);
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}
.about-text p {
    margin-bottom: 1.5rem;
}
.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}
.achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.achievement-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
[data-theme="dark"] .achievement-item {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.achievement-item:hover {
    transform: translateY(-5px);
}
.achievement-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.achievement-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.achievement-desc {
    font-size: 0.9rem;
    color: #666;
}
/* ========== SKILLS SECTION ========== */
.skills {
    padding: 5rem 0;
    background: var(--bg-light);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.skill-category {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
[data-theme="dark"] .skill-category {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.skill-item:hover {
    background: rgba(102, 126, 234, 0.1);
}
.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}
.skill-info {
    flex: 1;
}
.skill-name {
    font-weight: 600;
    color: var(--text-dark);
}
.skill-level {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.2rem;
}
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 2s ease;
}
/* ========== PROJECTS SECTION ========== */
.projects {
    padding: 5rem 0;
    background: #f8f9fa;
}
[data-theme="dark"] .projects {
    background: #16213e;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}
[data-theme="dark"] .project-card {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.project-image {
    height: 200px;
    background: var(--gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.project-image::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}
.project-card:hover .project-image::before {
    left: 100%;
}
.project-content {
    padding: 1.5rem;
}
.project-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.project-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.tech-tag {
    background: var(--gradient-1);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}
.project-links {
    display: flex;
    gap: 1rem;
}
.project-links a {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.project-links a:hover {
    background: var(--primary-color);
    color: white;
}
/* ========== CONTACT SECTION ========== */
.contact {
    padding: 5rem 0;
    background: var(--bg-light);
}
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}
.contact-form .form-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.contact-form .form-group input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    resize: vertical;
}
.contact-form button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background: #4CAF50;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.contact-form button:hover {
    background: #45a049;
}
/* ========== PROGRESS BAR ========== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1001;
}
.progress-bar-scroll {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    transition: width 0.3s ease;
}
html {
    scroll-behavior: smooth;
}
/* ========== CHESS PIECE ANIMATION ========== */
.chess-piece {
    display: inline-block;
    animation: chess-move 2s ease-in-out infinite alternate;
}
@keyframes chess-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(10px); }
}
/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 2rem 0;
    background: #222;
    color: #fff;
    font-size: 1rem;
    margin-top: 3rem;
}
/* ========== ANIMATIONS FOR SECTIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}
/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-container, .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .profile-card { margin-top: 2rem; }
}
@media (max-width: 600px) {
    .navbar { padding: 0.5rem 0;}
    .nav-container { padding: 0 1rem; }
    .logo { font-size: 1.2rem;}
    .hero-content h1 { font-size: 2.2rem;}
    .section-title { font-size: 1.8rem; }
    .contact-form .form-group input { min-width: 120px; }
    .profile-circle { width: 120px; height:120px;}
}

/* ========== END OF CSS ========== */

/* ===== CONTACT SECTION STYLING ===== */

.contact {
  padding: 5rem 1rem;
  background: #f9f9f9; /* Light background for contrast */
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.contact-content p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ===== FORM STYLING ===== */

.contact form {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact .form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.contact .form-group input {
  flex: 1;
  min-width: 200px;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact .form-group input:focus,
.contact textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
  outline: none;
}

/* ===== TEXTAREA ===== */

.contact textarea {
  width: 100%;
  padding: 12px 15px;
  min-height: 120px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* ===== BUTTON ===== */

.contact button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 1rem;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact button:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
  .contact .form-group {
    flex-direction: column;
  }
}
