
:root {
    --primary-color: #3a86ff;
    --primary-hover: #2563eb;
    --text-color: #333;
    --text-color-secondary: #555;
    --bg-color: #f9f9f9;
    --secondary-bg: #e0e0e0;
    --card-bg: white;
    --header-bg: white;
    --shadow-color: rgba(0,0,0,0.1);
    --footer-bg: #222;
    --footer-text: white;
}

[data-theme="dark"] {
    --primary-color: #4f93fe;
    --primary-hover: #6aa5ff;
    --text-color: #e0e0e0;
    --text-color-secondary: #b0b0b0;
    --bg-color: #121212;
    --secondary-bg: #2a2a2a;
    --card-bg: #1e1e1e;
    --header-bg: #1a1a1a;
    --shadow-color: rgba(0,0,0,0.3);
    --footer-bg: #111;
    --footer-text: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

p {
    margin-bottom: 15px;
    color: var(--text-color-secondary);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.theme-switch {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
}

.theme-switch-icon {
    font-size: 18px;
    margin-right: 5px;
}

/* Header */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.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);
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color-secondary);
}

/* About Section */
#about {
    background-color: var(--card-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.about-text {
    flex: 1;
}

.skills {
    margin-top: 30px;
}

.skill-item {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 8px 15px;
    background-color: var(--secondary-bg);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
}

/* Projects Section */
#projects {
    background-color: var(--bg-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 200px;
    background-color: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-secondary);
}

.project-info {
    padding: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.tag {
    padding: 4px 8px;
    background-color: var(--secondary-bg);
    border-radius: 4px;
    font-size: 12px;
}

/* Contact Section */
#contact {
    background-color: var(--card-bg);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info {
    width: 100%;
    max-width: 600px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.contact-icon {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

    /* Container styling */
.social_icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }
  
  /* Base link/icon styling */
  .social_icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #12030179;                   /* icon color */
    background-color: #f0f0f000;     /* light grey circle */
    border-radius: 50%;            /* circular shape */
    transition: 
      transform 0.3s ease, 
      background-color 0.3s ease, 
      color 0.3s ease,
      box-shadow 0.3s ease;
    text-decoration: none;
    font-size: 1.5rem;             /* icon size */
  }
  
  /* Hover/focus effect */
  .social_icons a:hover,
  .social_icons a:focus {
    color: #fff;                    /* icon turns white */
    background-color: #0073e6;      /* nice blue background */
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* Optional: Smooth bounce on click */
  .social_icons a:active {
    transform: scale(0.95);
  }
  
  /* Ensure icons don’t capture pointer events separately */
  .social_icons a i {
    pointer-events: none;
  }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 20px;
    }

    .menu-btn {
        display: block;
    }

    .about-content, .contact-content {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}
