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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #F9FAFB;
    scroll-behavior: smooth;
}

/* Navbar */
header {
    background: linear-gradient(135deg, #15803D, #34D399);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #15803D, #34D399);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.hero-section img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid white;
    animation: typewriter 3s steps(30) forwards;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-button {
    background: white;
    color: #15803D;
    padding: 12px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Education Section */
.education-section {
    background: #E8FBEA;
    padding: 60px 20px;
    text-align: center;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #15803D;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 50%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 50%;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: #15803D;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    z-index: 1;
}

.resume-block {
    margin-top: 40px;
}

.resume-viewer {
    width: 100%;
    height: 600px;
    border: none;
    margin: 20px 0;
}

.resume-download {
    background: #15803D;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.3s;
}

.resume-download:hover {
    transform: scale(1.05);
}

/* Skills Section */
.skills-section {
    padding: 60px 20px;
    text-align: center;
}

.skills-category {
    margin-bottom: 40px;
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #15803D;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-item {
    padding: 20px;
    background: #E8FBEA;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.skill-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.skill-item:hover {
    transform: translateY(-5px);
}

/* Portfolio Section */
.portfolio-section {
    padding: 60px 20px;
    text-align: center;
}

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

.portfolio-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: rotate(-2deg) scale(1.03);
}

/* Contact Section */
.contact-section {
    padding: 60px 20px;
    text-align: center;
}

.contact-details {
    margin: 40px 0;
}

.contact-details a {
    color: #15803D;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #34D399;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #15803D;
    outline: none;
}

.contact-form button {
    background: #15803D;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.contact-form button:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #15803D;
    color: white;
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer .social-icons {
    display: flex;
    gap: 15px;
}

footer .social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

footer .social-icons a:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
        width: 2px;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-dot {
        left: 20px;
    }
}

/* later changes */
.about-section {
    margin-right: 10px;
    padding: 60px;
}