/* ================== Global ================== */

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

body {
font-family: 'Inter', sans-serif;
background: #f8f9fc;
color: #2c3e50;
scroll-behavior: smooth;
transition: background 0.3s, color 0.3s;
}

/* ================== Navbar ================== */
.navbar {
background: #ffffffcc;
backdrop-filter: blur(10px);
position: sticky;
top: 0;
z-index: 10;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
transition: background 0.3s;
}

.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 40px;
}

.nav-logo a {
font-family: 'Dancing Script', cursive;
font-size: 2rem;
color: #4a90e2;
text-decoration: none;
}

.nav-menu {
display: flex;
gap: 25px;
align-items: center;
}

.nav-link {
text-decoration: none;
color: #2c3e50;
font-weight: 600;
transition: color 0.3s ease;
}

.nav-link:hover {
color: #4a90e2;
}

.btn-download {
background: #4a90e2;
color: #fff;
padding: 8px 18px;
border-radius: 20px;
text-decoration: none;
transition: background 0.3s ease;
}

.btn-download:hover {
background: #357ab8;
}

/* ================== Hero Section ================== */
.hero {
display: flex;
justify-content: center;
align-items: center;
min-height: 90vh;
padding: 80px 20px;
background: linear-gradient(135deg, #e8f1f9, #ffffff);
color: #2c3e50;
transition: background 0.3s, color 0.3s;
}

.hero-container {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
max-width: 1200px;
margin: 0 auto;
gap: 40px;
}

.hero-content {
flex: 1 1 500px;
max-width: 600px;
}

.hero-welcome {
color: #4a90e2;
letter-spacing: 2px;
margin-bottom: 10px;
}

.hero-name {
font-size: 2.5rem;
margin-bottom: 10px;
}

.hero-title {
font-size: 1.5rem;
color: #6c757d;
margin-bottom: 20px;
}

.hero-desc {
margin-bottom: 20px;
font-size: 1.1rem;
line-height: 1.6;
}

.hero-buttons {
display: flex;
gap: 15px;
}

.btn {
text-decoration: none;
padding: 10px 22px;
border-radius: 25px;
font-weight: 600;
transition: all 0.3s ease;
}

.btn-primary {
background: #4a90e2;
color: #fff;
}

.btn-primary:hover {
background: #357ab8;
}

.btn-secondary {
border: 2px solid #4a90e2;
color: #4a90e2;
}

.btn-secondary:hover {
background: #4a90e2;
color: #fff;
}

/* Hero Image */
.hero-image img {
width: 250px;
height: 250px;
object-fit: cover;
border-radius: 50%;
border: 5px solid #f8f9fc;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ================== About Section ================== */
.about {
padding: 60px 50px;
text-align: center;
background: #fff;
transition: background 0.3s, color 0.3s;
}

.section-title {
font-size: 2rem;
color: #4a90e2;
margin-bottom: 25px;
}

.about-content p {
max-width: 700px;
margin: 0 auto;
opacity: 0.9;
line-height: 1.6;
}

/* ================== Projects Section ================== */
.projects {
padding: 60px 50px;
text-align: center;
background: #f8f9fc;
transition: background 0.3s, color 0.3s;
}

.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
margin-top: 30px;
}

.project-card {
background: #fff;
border-radius: 15px;
box-shadow: 0 6px 15px rgba(0,0,0,0.08);
padding: 20px;
text-align: center;
transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}

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

.project-image img {
width: 100%;
max-height: 150px;
object-fit: cover;
border-radius: 12px;
margin-bottom: 15px;
}

.project-info h3 {
font-size: 1.2rem;
margin-bottom: 12px;
color: #2c3e50;
}

.project-info p {
font-size: 0.95rem;
line-height: 1.5;
color: #555;
}

.project-info .btn {
display: inline-block;
margin-top: 15px;
background: transparent;
border: 2px solid #4A6CF7;
color: #4A6CF7;
padding: 8px 18px;
border-radius: 25px;
font-weight: 600;
transition: 0.3s;
text-decoration: none;
}

.project-info .btn:hover {
background: #4A6CF7;
color: #fff;
}

/* ================== Contact Section ================== */
.contact {
padding: 60px 50px;
text-align: center;
background: #fff;
transition: background 0.3s, color 0.3s;
}

.contact-buttons {
margin-top: 20px;
display: flex;
justify-content: center;
gap: 20px;
}

/* ================== Footer ================== */
.footer {
text-align: center;
padding: 20px;
background: #f1f3f6;
color: #6c757d;
font-size: 0.9rem;
transition: background 0.3s, color 0.3s;
}

/* ================== Animations ================== */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

.project-card {
opacity: 0;
animation: fadeUp 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeIn {
from { opacity: 0; transform: translateY(40px); }
to { opacity: 1; transform: translateY(0); }
}

.about .section-title {
opacity: 0;
animation: fadeIn 1s ease forwards;
animation-delay: 0s;
}

.about-content {
opacity: 0;
animation: fadeIn 1s ease forwards;
animation-delay: 0.2s;
}

@keyframes fadeInLeft {
from { opacity: 0; transform: translateX(-40px); }
to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
from { opacity: 0; transform: translateX(40px); }
to { opacity: 1; transform: translateX(0); }
}

.hero-content {
opacity: 0;
animation: fadeInLeft 1s ease forwards;
animation-delay: 0.2s;
}

.hero-image {
opacity: 0;
animation: fadeInRight 1s ease forwards;
animation-delay: 0.4s;
}

/* ================== Dark Mode ================== */
body.dark {
background: #121212;
color: #f1f1f1;
}

body.dark .navbar {
background: #1e1e1ecc;
box-shadow: 0 2px 10px rgba(255,255,255,0.05);
}

body.dark .nav-link {
color: #f1f1f1;
}

body.dark .btn-download {
background: #4a90e2;
color: #fff;
}

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

body.dark .hero-title {
color: #bbb;
}

body.dark .about {
background: #1e1e1e;
color: #ddd;
}

body.dark .projects {
background: #121212;
color: #eee;
}

body.dark .project-card {
background: #1f1f1f;
color: #ddd;
border: 1px solid #333;
}

body.dark .project-info h3 {
color: #f1f1f1;
}

body.dark .project-info p {
color: #bbb;
}

body.dark .project-info .btn {
border-color: #74b9ff;
color: #74b9ff;
}

body.dark .project-info .btn:hover {
background: #74b9ff;
color: #1f1f1f;
}

body.dark .contact {
background: #1e1e1e;
color: #eee;
}

body.dark .footer {
background: #1a1a1a;
color: #aaa;
}

/* ================== Dark Mode Toggle ================== */
.dark-toggle {
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dark-toggle:hover {
  background: #357ab8;
}
