/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f0f0f;
    color: #f0f0f0;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00f7ff;
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid #00f7ff;
    padding-left: 1rem;
    color: #00f7ff;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #0f0f0f, #1a1a1a);
    text-align: center;
    padding-top: 6rem;
}

.hero .intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .intro p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #00f7ff;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    margin: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.4);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid #00f7ff;
    color: #00f7ff;
}

/* Cards */
.card {
    background: rgba(31, 31, 31, 0.85);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.1);
    backdrop-filter: blur(8px);
}

.card h3 {
    margin-bottom: 0.5rem;
    color: #00f7ff;
}

.card p {
    color: #e6e1e1;
}

.date {
    font-weight: normal;
    font-size: 0.9rem;
    color: #888;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    list-style: none;
    margin-top: 1rem;
}

.skills-grid li {
    background: #1f1f1f;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.1);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.projects-grid .card a {
    display: inline-block;
    margin-top: 1rem;
    color: #00f7ff;
    text-decoration: none;
    font-weight: bold;
}

/* Social Profiles */
.social-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    color: #00f7ff;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #00f7ff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background: #00f7ff;
    color: #000;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #666;
    background: #111;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Light Mode Fixes */
.light-mode {
    background-color: #f9f9f9;
    color: #1a1a1a;
}

.light-mode .navbar,
.light-mode .card,
.light-mode .skills-grid li {
    background: #ffffff;
    color:#1a1a1a;
    
}

.light-mode .section h2,
.light-mode .nav-links a,
.light-mode .card h3,
.light-mode .projects-grid .card a,
.light-mode .social-links a {
    color: #007bff;
}

.light-mode .name_secondary {
    color: #000000;
}

.light-mode .card p {
    color: #000000;
}

.light-mode .text_secondary{
    color: #020202;
}

.light-mode .hero {
    background: #ffffff;
}


.light-mode .btn {
    background: #1a1a1a;
    color: #fff;
}

.light-mode .btn.secondary {
    border: 2px solid #1a1a1a;
    color: #121111;
    background: transparent;
}

.light-mode .footer {
    background: #eaeaea;
    color: #f6f3f3;
}

.light-mode .social-links a {
    border-color: #1a1a1a;
}

.light-mode .social-links a:hover {
    background: #1a1a1a;
    color: #fff;
}
