
:root {
    --primary: #2563eb;
    --dark: #1e293b;
    --light: #f8fafc;
    --text: #334155;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text);
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    background: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
}

/* Sections */
section {
    padding: 100px 10% 60px;
    min-height: 80vh;
}

h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* Home Section */
#home {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn {
    background: white;
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

/* Portfolio Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Contact Form */
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

input,
textarea {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--dark);
    color: white;
}
/*skill */
.skill {
  margin-bottom: 12px;
}

.skill span {
  font-size: 14px;
  font-weight: bold;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  margin-top: 5px;
}

.skill-level {
  height: 100%;
  border-radius: 5px;
}

/* Skill levels */
.html { width: 80%; background: #f16529; } 
.js { width: 65%; background: #f7df1e; }
.php { width: 70%; background: #777bb4; }
.mysql { width: 75%; background: #00758f; }
.testing { width: 85%; background: #4caf50; }

/* Education Section */
#education {
    background: #f1f5f9;
}

.education-list {
    max-width: 800px;
    margin-left: 0;      /* force left */
    margin-right: auto;  /* push content left */
}

.education-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-left: 5px solid var(--primary);
    border-radius: 6px;
    text-align: left;
}

.education-item h3 {
    margin: 0;
    color: var(--dark);
}

.edu-place {
    display: block;
    font-weight: 600;
    margin-top: 0.3rem;
}

.edu-year {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.8rem;
}

.education-item p {
    margin: 0;
    font-size: 0.95rem;
}
/* Career goal */
#career-goal {
    background: white;
}

.career-box {
    max-width: 800px;
    padding: 1.5rem;
    border-left: 5px solid var(--primary);
    background: var(--light);
    border-radius: 6px;
    text-align: left;
}

/* Profile Image */
.profile-img {
    width: 150px;          /* Adjust size here */
    height: 150px;         /* Must match width for a circle */
    border-radius: 50%;    /* Makes the image circular */
    object-fit: cover;     /* Prevents the image from stretching */
    border: 4px solid rgba(255, 255, 255, 0.2); /* Soft white border */
    margin-bottom: 1.5rem; /* Space between image and name */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* This crops the image to fit the box perfectly */
    border-radius: 8px 8px 0 0;
}

/* resume style */
.resume-container {
    max-width: 900px;
    margin: 0 auto;
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.resume-block {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    /* Increased the blur to 15px and the opacity to 0.15 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    /* Optional: adds a very thin border to define the shape better */
    border: 1px solid #e2e8f0; 
    transition: transform 0.3s ease; /* Smooth movement when hovering */
}

/* Bonus: Add a hover effect to make it interactive */
.resume-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.resume-block h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    margin-bottom: 20px;
}

.resume-item {
    margin-bottom: 20px;
}

.resume-item h4 { margin: 0; color: var(--dark); }
.date { 
    display: inline-block;
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 5px 0;
}

/* Skills Pills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    background: var(--dark);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.skill-pill:hover {
    transform: translateY(-3px);
    background: var(--primary);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .resume-grid { grid-template-columns: 1fr; }
}

/* Contact Section Styling */
#contact {
    background-color: var(--light); /* Subtle background shift to separate from Resume */
    padding: 80px 10%;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    /* Matching your Resume box shadow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    border: 1px solid #e2e8f0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group input, 
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Focus effect: makes the input glow blue when clicked */
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    background: var(--primary);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}