/* Base Theme Variables */
:root {
    --bg: #ffffff;
    --text: #111111;
    --primary: #007bff;
    --accent: #ff5722;
    --card: #f0f0f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

body.dark {
    --bg: #121212;
    --text: #ffffff;
    --primary: #00bfff;
    --accent: #ff9800;
    --card: #1e1e1e;
    --shadow: rgba(255, 255, 255, 0.1);
}

/* Body & Typography */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    background: var(--bg);
    box-shadow: 0 2px 5px var(--shadow);
    z-index: 10;
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar a {
    margin: 0 0.8rem;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
}

.navbar a:hover {
    color: var(--accent);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
}

/* Sections */
.section {
  padding: 4rem 2rem;
  text-align: center;
  opacity: 1; /* <-- changed */
  transform: none; /* <-- changed */
  transition: opacity 0.6s ease, transform 0.6s ease;
}


h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Grids */
.skills-grid,
.projects-grid,
.vlogs-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.skill,
.project-card,
.vlog-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill:hover,
.project-card:hover,
.vlog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--accent);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: var(--bg);
    color: var(--text);
}

.contact-form textarea {
    resize: vertical;
}

/* Vlogs - Text Style */
.vlog-card {
    text-align: left;
}

/* Footer */
.footer {
    padding: 2rem;
    background: var(--card);
    text-align: center;
    color: var(--text);
}

/* Footer Social Icons */
.footer .socials {
    margin-top: 1rem;
}

.footer .socials a {
    margin: 0 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.footer .socials a:hover {
    color: var(--accent);
}

/* Profile Photo */
.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px var(--shadow);
    object-fit: cover;
    border: 3px solid var(--primary);
}

/* Contact Details */
.contact-details {
    margin-top: 2rem;
    text-align: left;
    max-width: 500px;
    margin-inline: auto;
    font-size: 1rem;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    header {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar a {
        margin: 0.4rem;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }
}
