@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff8f3, #ffffff);
    color: #333;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Navbar */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: rgba(255,255,255,0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ff6600, #ff944d);
    -webkit-background-clip: text;
    color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #ff6600;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

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

h1 span {
    color: #ff6600;
}

h2 {
    color: #ff6600;
    margin-bottom: 1.5rem;
}

/* About */
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.profile-img {
    width: 220px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff6600;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Animated Text */
.animated-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #ff6600;
    animation: typing 3.5s steps(30, end),
               blink 0.7s step-end infinite;
    font-weight: 600;
    margin-bottom: 1rem;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Projects */
.project-card {
    background: linear-gradient(145deg, #ffffff, #fff2e8);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-left: 5px solid #ff6600;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Achievements */
#achievements ul {
    list-style: none;
}

#achievements li {
    padding: 12px 18px;
    margin-bottom: 12px;
    background: #fff4eb;
    border-left: 4px solid #ff6600;
    border-radius: 8px;
}

/* Contact */
.contact-section {
    background: linear-gradient(135deg, #fff8f3, #ffffff);
}

.contact-form {
    max-width: 450px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.15);
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #ff6600, #ff944d);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(255,102,0,0.4);
}

/* Social */
.social-icons a {
    font-size: 22px;
    margin-right: 18px;
    color: #ff6600;
    transition: 0.3s;
}

.social-icons a:hover {
    transform: translateY(-4px) scale(1.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #fff4eb;
    font-size: 14px;
    color: #555;
}
/* =========================
   DARK THEME STYLES
========================= */

body.dark-theme {
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    color: #f1f1f1;
}

/* Navbar */
body.dark-theme header nav {
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

body.dark-theme nav ul li a {
    color: #f1f1f1;
}

/* Sections */
body.dark-theme section {
    background: transparent;
}

/* Headings */
body.dark-theme h1 span,
body.dark-theme h2 {
    color: #ff944d;
}

/* About image border */
body.dark-theme .profile-img {
    border-color: #ff944d;
}

/* Project cards */
body.dark-theme .project-card {
    background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* Achievements */
body.dark-theme #achievements li {
    background: #1f1f1f;
    color: #f1f1f1;
}

/* Contact section */
body.dark-theme .contact-section {
    background: linear-gradient(135deg, #121212, #1a1a1a);
}

body.dark-theme .contact-form input,
body.dark-theme .contact-form textarea {
    background: #1f1f1f;
    border: 1px solid #333;
    color: #fff;
}

/* Footer */
body.dark-theme footer {
    background: #1a1a1a;
    color: #aaa;
}

/* Social icons */
body.dark-theme .social-icons a {
    color: #ff944d;
}
.theme-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 20px;
    background: #ff6600;
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    z-index: 2000;
}
