/* CSS Reset and Modern Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #001f3f;
    --secondary-color: #003366;
    --accent-color: #ffd700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Modern Body Styles */
body.homepage {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background: var(--gradient-primary);
    color: var(--text-dark);
    min-height: 100vh;
    padding-bottom: 80px;
    overflow-x: hidden;
}

body.education-section {
    background-color: white;
    color: #000;
}

/* Advanced Header Styles */
header {
    background: var(--gradient-secondary);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="60" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="20" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, var(--text-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Navigation Styles */
nav ul.nav-items {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: 1rem;
}

nav ul.nav-items li {
    margin: 0 15px;
}

nav ul.nav-items a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

nav ul.nav-items a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.2);
    transition: left 0.3s ease;
}

nav ul.nav-items a:hover::before {
    left: 0;
}

nav ul.nav-items a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Profile Photo with Advanced Effects */
.profile-photo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    transition: var(--transition);
}

.profile-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    position: relative;
}

.profile-photo::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-color), var(--primary-color), var(--accent-color));
    z-index: -1;
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-photo:hover::after {
    opacity: 1;
}

.profile-photo:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Advanced Section Styles */
section {
    margin: 3rem 0;
    padding: 3rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

section:hover::after {
    opacity: 1;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Home Section with Particle Effect */
#home {
    background: var(--gradient-secondary);
    color: var(--text-light);
    text-align: center;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

#home::before {
    background: var(--accent-color);
}

#home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

#home h3 {
    color: var(--text-light);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

#home p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Advanced Work Entry Styles */
.work-entry {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.work-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.work-entry:hover::before {
    left: 100%;
}

.work-entry:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary-color);
}

.work-entry h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    position: relative;
}

.work-entry h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.work-entry:hover h3::after {
    width: 100%;
}

.work-entry ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.work-entry li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition);
}

.work-entry li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Advanced Skills Grid */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.skills-list li {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.skills-list li::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 31, 63, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skills-list li:hover::before {
    opacity: 1;
}

.skills-list li:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--accent-color);
}

.skills-list strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.skills-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.skills-list li:hover i {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Advanced Button Styles */
.education-link,
.project-link {
    display: inline-block;
    background: var(--gradient-secondary);
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.education-link::before,
.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.education-link:hover::before,
.project-link:hover::before {
    left: 100%;
}

.education-link:hover,
.project-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.education-link i,
.project-link i {
    margin-right: 0.5rem;
    transition: var(--transition);
}

.education-link:hover i,
.project-link:hover i {
    transform: scale(1.2);
}

/* Advanced Contact Section */
#contact {
    background: var(--gradient-secondary);
    color: var(--text-light);
    text-align: center;
    position: relative;
}

#contact::before {
    background: var(--accent-color);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: scale(0);
}

.social-icons a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.social-icons a:hover {
    color: var(--text-dark);
    transform: translateY(-3px) scale(1.1);
}

/* Modern Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Advanced Responsive Design */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2.5rem;
    }

    nav ul.nav-items li {
        margin: 0 10px;
    }

    section {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .profile-photo {
        position: static;
        display: block;
        margin: 0 auto 2rem;
    }

    .profile-photo img {
        width: 150px;
        height: 150px;
    }

    header h1 {
        font-size: 2.2rem;
        margin-top: 1rem;
    }

    section {
        margin: 2rem 0;
        padding: 2rem 1.5rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }

    nav ul.nav-items {
        flex-direction: column;
        align-items: center;
    }

    nav ul.nav-items li {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 1.5rem 
    }
   