:root {
    --primary-color: #3b82f6;
    --secondary-color: #1d4ed8;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --accent-color: #6366f1;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --gradient-light: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- General Layout --- */
body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

section {
    padding: 5rem 0 4rem 0;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    letter-spacing: 1px;
}
.section-title::after {
    content: '';
    display: block;
    margin: 1rem auto 0 auto;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* --- About Section --- */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(37,99,235,0.07);
    padding: 2.5rem 2rem;
}
.about-img img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
    border: 4px solid var(--primary-color);
}
.about-text {
    flex: 1;
    font-size: 1.1rem;
    color: var(--dark-color);
}
.about-text a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}
.about-text a:hover {
    text-decoration: underline;
}

.resume-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.resume-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

/* --- Experience Section --- */
.experience-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07);
    padding: 2rem 2.5rem;
    transition: all 0.3s ease;
}

.experience-item:hover {
    box-shadow: 0 6px 24px rgba(37,99,235,0.13);
    transform: translateY(-5px);
}

.experience-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
}

.experience-item span {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.experience-item ul {
    margin: 1rem 0;
    padding-left: 1.2rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
}

.skills-used {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(37,99,235,0.1);
}

.skills-used h4 {
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tags span {
    background: var(--gradient-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    transform: translateY(-2px);
    background: var(--gradient-primary);
    color: white;
}

/* --- Projects Section --- */
.projects-section {
    background: var(--gradient-light);
    padding: 5rem 0;
}

.projects-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

.project-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: -0.5rem;
}

.project-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.github-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.github-button i {
    font-size: 1.1rem;
}

.github-button:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.github-link {
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    opacity: 0.9;
    z-index: 2;
}

.github-link:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.1);
}

.project-description {
    color: var(--dark-color);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.project-skills span {
    background: var(--gradient-light);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-skills span:hover {
    transform: translateY(-2px);
    background: var(--gradient-primary);
    color: white;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: fit-content;
}

.project-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

.project-link:hover i {
    transform: translateX(4px);
}

/* --- Certificates & Achievements --- */
.certificates-section ul {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07);
    padding: 2.2rem 2rem;
    font-size: 1.1rem;
    list-style: disc inside;
}
.certificates-section li {
    margin-bottom: 0.7rem;
}

.certificates-section ul li a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.certificates-section ul li a:hover {
    color: var(--secondary-color);
}

/* --- Coursework & Extra-curricular --- */
.coursework-section {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07);
    padding: 2.5rem 2rem;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.coursework-section strong {
    color: var(--primary-color);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--gradient-light);
    padding: 5rem 5%;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-links a {
    color: var(--dark-color);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: white;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* --- Footer --- */
footer {
    background: white;
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer p {
    color: var(--dark-color);
    font-size: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .about-content, .education-list, .experience-list, .projects-grid, .skills-list, .coursework-section {
        padding: 1.2rem 0.5rem;
        border-radius: 1rem;
    }
    .about-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .about-img img {
        margin: 0 auto;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
        color: var(--primary-color);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        padding-right: 0;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-photo {
        max-width: 400px;
        margin: 0 auto;
    }
    .experience-container {
        padding: 0 0.8rem;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2rem;
    }
    .about-content, .education-list, .experience-list, .projects-grid, .skills-list, .coursework-section {
        padding: 0.7rem 0.2rem;
    }
    .education-item, .experience-item, .project-card, .skills-list, .certificates-section ul, .coursework-section, .contact-section {
        padding: 1.2rem 0.7rem;
    }
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    .experience-item {
        padding: 1.5rem;
    }
    
    .skill-tags {
        gap: 0.4rem;
    }
    
    .skill-tags span {
        padding: 0.3rem 0.8rem;
        font-size: 0.85rem;
    }

    .project-card {
        padding: 1.5rem;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-header h3 {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .project-skills {
        gap: 0.4rem;
    }
    
    .project-skills span {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
    }

    .github-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .github-button i {
        font-size: 1rem;
    }
    
    .github-button span {
        display: none;
    }

    .project-header {
        margin-bottom: 0;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
section, .project-card, .education-item, .experience-item, .skills-list, .certificates-section ul, .coursework-section, .contact-section {
    animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) both;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 5% 5rem;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    padding-right: 2rem;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.name-text {
    display: inline-block;
    position: relative;
    padding: 0.1em 0;
    vertical-align: baseline;
    color: var(--primary-color);
}

.hero-name {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-photo {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-photo:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 30px;
}

/* Card Styles */
.education-item, .experience-item, .project-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.education-item::before, .experience-item::before, .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.education-item:hover::before, .experience-item:hover::before, .project-card:hover::before {
    opacity: 1;
}

.education-item:hover, .experience-item:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.education-item *, .experience-item *, .project-card * {
    position: relative;
    z-index: 1;
}

/* Ensure proper text rendering in all browsers */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .hero-name {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
