* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modern color scheme and variables */
:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #06b6d4;
    --dark: #1f2937;
    --light: #f3f4f6;
    --text: #374151;
    --success: #10b981;
    --warning: #f59e0b;
    --transition: all 0.3s ease;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
}

nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    height: 4rem;
}

nav ul {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    list-style: none;
    padding: 0;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    text-align: center;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
    transform: none;
}

nav ul li a:hover::after,
nav ul li a.active::after,
.current-page::after {
    width: 100%;
}

nav ul li a.active,
.current-page {
    color: var(--primary);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
    margin-right: 1rem;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 6px 0;
    transition: var(--transition);
}

section {
    padding: 4rem 2rem;
    min-height: 100vh;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, var(--accent) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--secondary) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.9;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    opacity: 0.9;
}

/* Media queries for better responsiveness */
@media (max-width: 768px) {
    nav {
        justify-content: flex-start;
        padding: 0.75rem 1.5rem;
        height: 3.5rem;
    }

    .menu-btn {
        display: block;
        padding: 0.25rem;
        z-index: 1002;
    }

    .menu-btn span {
        transition: all 0.3s ease;
    }

    nav ul {
        position: fixed;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        top: 0;
        left: -100%;
        height: 100vh;
        width: 250px;
        padding: 5rem 2rem 2rem 2rem;
        transition: all 0.3s ease;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
        gap: 2rem;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li a {
        display: block;
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    nav ul li a::after {
        bottom: -4px;
    }

    /* Enhanced hamburger menu animation */
    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    section {
        padding: 4rem 1.5rem;
    }
    
    nav ul li a::after {
        display: none;  /* Hide underline effect on mobile */
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    nav ul {
        gap: 3rem;
    }

    nav {
        padding: 1rem 5%;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Modern buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transform: none;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Additional breakpoint for medium screens */
@media (max-width: 1024px) {
    nav ul {
        gap: 2rem;
    }
}

/* Experience Section Styles */
.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem;
    width: 90%;
}

.experience-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.company {
    font-weight: 500;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.date {
    color: var(--text);
    opacity: 0.8;
    font-size: 0.9rem;
}

.experience-details {
    list-style: none;
    padding: 0;
}

.experience-details li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Updated Contact Section Styles */
.contact-container {
    max-width: 1000px;
    margin: 2rem auto;
}

.contact-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2rem;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.email-link, .social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    background: var(--primary);
    color: white;
    white-space: nowrap;
    width: auto;
    min-width: min-content;
}

.email-link i {
    font-size: 1rem;
    flex-shrink: 0;
}

.email-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link {
    color: var(--text);
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .email-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }

    .contact-methods {
        gap: 1rem;
    }
}

/* Fix button alignment in hero section */
.hero .glass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero .btn {
    display: inline-block;
    margin-top: 2rem;  /* Increased margin for better spacing */
    text-decoration: none;  /* Remove underline from link */
}

/* Ensure consistent text alignment */
.hero h1, 
.hero h2, 
.hero p {
    margin-bottom: 1rem;
    width: 100%;
}

/* About Section Styles */
.about-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    width: 90%;
}

.about-content {
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.about-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-container {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Adjust heading spacing */
section h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Add active state for navigation links */
nav ul li a.active {
    color: var(--primary);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary);
}

/* Remove progress bar styles */
.skill-progress,
.skill-progress-bar {
    display: none;  /* or you can delete these classes entirely */
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Revert container styles */
.about-container,
.experience-grid,
.contact-container,
.skills-grid {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
}

/* Skill category base styles */
.skills-grid {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
}

.skill-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

/* Desktop and larger screens */
@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }

    .skill-category {
        min-height: 250px;
    }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 1023px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }
}

/* Small screens */
@media (max-width: 767px) {
    .skills-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .skill-category {
        padding: 1.25rem;
    }
}

/* Keep other existing styles */
.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category ul li {
    padding: 0.5rem 0;
    color: var(--text);
    position: relative;
    padding-left: 1.5rem;
}

.skill-category ul li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Hobbies Page Styles */
#hobbies {
    padding-top: 6rem;  /* Account for fixed navigation */
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.hobby-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hobby-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.hobby-card p {
    color: var(--text);
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hobbies-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .hobby-card {
        padding: 1.5rem;
    }
}
