:root {
    --primary-color: #7E9CD8;
    --primary-light: #d5ddf3;
    --secondary-color: #111827;
    --text-color: #374151;
    --background-color: #ffffff;
    --accent-color: #9DB2E0;
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    --blur: 15px;
    --section-padding: 100px 0; /* Standard section padding */
    --animation-direction: 1; /* Controls animation direction: 1 = forward, -1 = reverse, 0 = paused */
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(126, 156, 216, 0.15) 0%, transparent 400px),
        radial-gradient(circle at 80% 70%, rgba(126, 156, 216, 0.15) 0%, transparent 400px),
        linear-gradient(120deg, rgba(126, 156, 216, 0.07) 0%, transparent 50%),
        linear-gradient(220deg, rgba(126, 156, 216, 0.07) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Creative background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(126, 156, 216, 0.03) 0%, transparent 40%);
    animation: rotate 60s linear infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(126, 156, 216, 0.08) 0%, transparent 60%);
    animation: pulse 15s ease-in-out infinite alternate;
    z-index: -1;
}

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

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reveal animations */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Glassmorphism effects */
.about-content, .skills, .education, .experience, .contact-info, .contact-form, .project-card, .hero-content {
    background-color: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Glass shine effect */
.about-content::before, .skills::before, .education::before, .experience::before, 
.contact-info::before, .contact-form::before, .project-card::before, .hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                rgba(255, 255, 255, 0) 0%, 
                rgba(255, 255, 255, 0.05) 50%, 
                rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 1;
}

.about-content:hover, .skills:hover, .education:hover, .experience:hover, 
.contact-info:hover, .project-card:hover, .contact-form:hover, .hero-content:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 40px var(--glass-shadow);
    background-color: rgba(255, 255, 255, 0.75);
}

/* Timeline enhancements */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-left-width: 4px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    background-color: var(--primary-light);
}

/* Form input enhancements */
.form-group input, .form-group textarea {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(126, 156, 216, 0.2);
    background-color: white;
}

/* Social links enhancement */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--glass-bg);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 5px 15px rgba(126, 156, 216, 0.4);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 90px; /* Increased height */
    display: flex;
    align-items: center;
}

.header:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

header.contact-preview {
    padding: 80px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 90px;
    padding: 0 25px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: var(--transition);
    padding: 4px 6px;
}

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

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

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

/* Main Content */
main {
    margin-top: 60px; /* Match header height */
    min-height: calc(100vh - 60px - 100px);
    padding-top: 0; /* Remove extra padding */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    margin-top: -60px; /* Compensate for header height */
    padding-top: 60px; /* Add padding equal to header height */
    margin-bottom: 120px; /* Specific spacing after hero */
    overflow: hidden;
}

/* Hero section background animation */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(126, 156, 216, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(126, 156, 216, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 15s infinite alternate;
    animation-play-state: running;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    will-change: transform, opacity;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(126, 156, 216, 0.03) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

/* .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-light);
    z-index: -1;
    transition: var(--transition);
} */

/* Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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.7s ease;
    z-index: -1;
}

.btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(126, 156, 216, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.primary-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(30, 58, 138, 0.3);
}

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

.secondary-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Section Styling */
.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

/* Add blur transition between sections */
.section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: -1;
    filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.underline {
    height: 4px;
    width: 70px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.text-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.text-link:hover {
    color: var(--accent-color);
}

.text-link:hover i {
    transform: translateX(5px);
}

/* Skills */
.skill-category {
    margin-bottom: 30px;
}

.skill-category h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.skill-list {
    list-style: none;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
    width: 0;
}

/* Section specific spacing */
.about-preview {
    padding: var(--section-padding);
    margin-bottom: 120px;
}

.projects-preview {
    padding: var(--section-padding);
    margin-bottom: 120px;
}

.contact-preview {
    padding: var(--section-padding);
    margin-bottom: 60px;
}

/* Projects Section */
.projects-preview {
    background-color: #f8fafc;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    margin-bottom: 30px;
    transition: all 0.5s ease;
}

.project-card.active, .project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.tag {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: #f1f5f9;
    padding: 10px 0;
}



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

.footer-logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.footer-logo a {
    display: inline-block;
    position: relative;
    z-index: 5;
    transition: var(--transition);
}

.footer-logo .logo-img {
    height: 75px;
    width: auto;
    border: none;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    transition: var(--transition);
    margin: 5px 0;
    object-fit: contain;
}

.logo a {
    display: inline-block;
    position: relative;
    z-index: 5;
    transition: var(--transition);
}

.logo-img {
    height: 75px;
    width: auto;
    border: none;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    transition: var(--transition);
    margin: 5px 0;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}
