/* Additional styles for enhanced visual appeal */

/* Header & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--dark-color);
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-text h2:after {
    display: none;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    border: 5px solid white;
}

.hero-image:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    top: -20px;
    left: 20px;
    z-index: -1;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    /* important: align at start, not stretch */
    gap: 3rem;
    height: 100%;
}

.about-text-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    height: 88%;
    max-height: 500px;
    /* 👈 try adjusting this */
    overflow: auto;
    /* scroll if overflow happens */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.about-text-card h3 {
  margin-top:-6px
}

.about-text p {
    margin-bottom: 1rem;
    /* Reduce space between paragraphs */
    line-height: 1.5;
    /* Tighten line spacing slightly */
    font-size: 1rem;
    /* Slightly smaller font */
}
.about-text p:first-child {
    margin-top: 0;
}

.about-text p:last-child {
    margin-bottom: 0;
}
.about-education {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* important: match height */
}
.about-education h3,
.about-education h4,
.about-education p,
.about-education ul,
.about-education li {
    margin: 0;
    padding: 0;
}

.about-education h3 {
    margin-bottom: 1rem;
}

.about-education h4 {
    margin-bottom: 0.5rem;
}

.about-education p {
    margin-bottom: 1rem;
}

.about-education ul {
    list-style: disc inside;
    margin-top: 1rem;
}

.about-education li {
    margin-bottom: 0.5rem;
}
.education-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    /* match padding for better symmetry */
    box-shadow: var(--box-shadow);
    height: 100%;
    /* <--- THIS is what was missing */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* nice visual spacing */
    font-size: 1rem;
    /* match font size a bit */
    line-height: 1.5;
}

.education-item ul li {
  margin-bottom: 0.5rem; /* Tight bullet spacing */
}

.education-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-period {
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 1rem;
}
/* Contact Form */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: white;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1.5rem 0;
    }
    
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
        text-align: center;
    }
    
    .hero-image:before {
        display: none;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}
