/* ========== Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #060606;
    --bg-light: #cf9090;
    --text-dark: #0d0d0e;
    --text-light: #ffffff;
    --primary: #6c63ff;
    --secondary: #292828;
    --accent: #00d4ff;
    --transition: 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: url('image.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-light);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== Navbar ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    background: rgba(16, 16, 17, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

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

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
}

/* ========== Hero Section ========== */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 4rem 2rem;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

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

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

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    margin-right: 1rem;
    border-radius: 25px;
    text-decoration: none;
    transition: background var(--transition);
}

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

.btn.secondary {
    background: var(--secondary);
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.hero-img img {
    max-width: 300px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 15px rgba(6, 154, 139, 0.5);
}

/* ========== Sections ========== */
.section {
    padding: 4rem 2rem;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: rgba(6, 5, 5, 0.05);
    border: 1px solid rgba(40, 39, 39, 0.034);
    padding: 1rem;
    border-radius: 12px;
    transition: transform var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition);
}

.project-card img {
    width: 100%;
    display: block;
}

.project-card h3 {
    margin: 1rem;
}

.project-card p {
    margin: 0 1rem 1rem;
}

.project-card:hover {
    transform: translateY(-8px);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, 
.contact-form textarea {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
}

.contact-form button {
    border: none;
    cursor: pointer;
}

/* Social Links */
.socials {
    margin-top: 1rem;
}

.socials a {
    margin: 0 0.5rem;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.socials a:hover {
    color: var(--secondary);
}

/* Footer */
.footer {
    padding: 1rem;
    text-align: center;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(8px);
}

/* ========== Light Mode ========== */
.light-theme {
    --bg-dark: #ffffff;
    --text-light: #0f0f1a;
    background: var(--bg-light);
    color: var(--text-dark);
}

.light-theme .nav-links a {
    color: var(--text-dark);
}

.light-theme .btn {
    color: #fff;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Adjust opacity for more/less translucency */
    backdrop-filter: blur(10px);    /* Adjust blur as needed */
    z-index: 0;
    pointer-events: none;
}
}


