    /* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* Dark Theme Variables */
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --text-color: #f3f4f6; /*also changes the link color in D-Mode*/
    --light-text: #d1d5db;
    --background: #111827;
    --section-bg: #1f2937;
    --card-bg: #1f2937;
    --nav-bg: rgba(17, 24, 39, 0.95);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    --nav-res-bg:  rgba(17, 24, 39, 0.97);
    --view-text: #6f7793;
}

[data-theme="light"] {
    /* Light Theme Variables */
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --text-color: #f3f4f6;
    --light-text: #d1d5db;
    --background: #111827;
    --section-bg: #1f2937;
    --card-bg: #1f2937;
    --nav-bg: rgba(17, 24, 39, 0.95);
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    --nav-res-bg:   rgba(17, 24, 39, 0.97);
    --view-text: #6f7793;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
   background-color: var(--nav-res-bg) !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.menu-btn {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}





/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background: linear-gradient(135deg, var(--section-bg) 0%, var(--background) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    top: -100%;
    left: -100%;
    animation: rotate 20s linear infinite;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.hero p {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.2s forwards;
}

.highlight {
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.4s forwards;
}
.more{
    justify-content: center;
    display: flex;
}
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    color: var(--view-text)
}
.btn:hover{
    color: gray;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.secondary-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-links {
    position: absolute;
    bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icon:nth-child(2) {
    animation-delay: 0.2s;
}

.social-icon:nth-child(3) {
    animation-delay: 0.4s;
}

/* About Section */
.about {
    padding: 6rem 5%;
    background: var(--section-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .more {
      justify-content: flex-end;
      margin-right: 40px;
      margin-top: 0;
      position: relative;
      top: 20px;
    }
  }

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    
}
@media (min-width: 768px) {
    .stat-item{
        margin-left: 70px;
    }
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    
}

/* Projects Section */
.projects {
    padding: 6rem 5%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.proj{
    position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(var(--primary-color), 0.1);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }

.project-image::after {
    content: '';
    
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.3;
    transition: var(--transition);
}

.project-card:hover .project-image::after {
    opacity: 0.5;
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-text);
}

.project-links {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
}

/* Skills Section */
.skills {
    padding: 6rem 5%;
    background: var(--section-bg);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    text-align: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(var(--primary-color), 0.1);
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    top: 0;
    left: 0;
}

.skill-item:hover::before {
    opacity: 0.1;
}

.skill-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(var(--primary-color), 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    position: fixed;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.95);
    color: white;
    font-size: small;
    bottom: 0;
  left: 0;
  width: 100%;
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Scroll Animations */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

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

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--hover-shadow);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} 

.tooltip {
    position: relative;
    display: inline-block;
    cursor: not-allowed;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: max-content;
    max-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    font-size: 13px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
  }
  
  .tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }
  
  .logos{
    text-decoration: none;
    color: white;
  }

  .toast {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #10B981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}
