:root {
    /* Modern color palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #14b8a6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f8fafc;
    --card-bg: #ffffff;
    --gradient-start: #6366f1;
    --gradient-end: #ec4899;
    --spacing: 2rem;
    --border-radius: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    overflow-x: hidden;
    font-size: 18px; /* Increased font size for better readability */
}

h1, h2, h3, h4, h5, h6 {
    font-size: 1.25em; /* Increased font size for headings */
}

p, a, li {
    font-size: 1.1em; /* Increased font size for paragraphs, links, and list items */
}

.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: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem var(--spacing);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

main {
    margin-top: 80px; /* Adjust based on header height */
    min-height: calc(100vh - 80px);
}

/* Adjust hero section to account for header */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: white;
    overflow: hidden;
    padding: 6rem 1rem;  /* Adjusted padding */
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 10rem);
    justify-content: center; /* Changed from space-between to center */
}

.hero-text-content {
    position: relative;
    margin: auto 0;
    padding: 0;  /* Removed padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;  /* Consistent gap between elements */
    min-height: calc(100vh - 200px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.hero-intro {
    margin-bottom: 1rem;
}

.greeting {
    font-size: 1.25rem;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-block;
}

.hero-content h1 {
    font-size: 5rem; /* Increased font size for hero section heading */
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #6366f1 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    animation: titleReveal 1s ease-out;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff 0%, #6366f1 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #4f46e5;
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #ec4899;
    animation: glitch-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% {
        clip-path: inset(20% 0 30% 0);
    }
    20% {
        clip-path: inset(65% 0 15% 0);
    }
    40% {
        clip-path: inset(5% 0 80% 0);
    }
    60% {
        clip-path: inset(40% 0 43% 0);
    }
    80% {
        clip-path: inset(80% 0 5% 0);
    }
    100% {
        clip-path: inset(10% 0 58% 0);
    }
}

@keyframes glitch-2 {
    0% {
        clip-path: inset(25% 0 35% 0);
    }
    20% {
        clip-path: inset(70% 0 20% 0);
    }
    40% {
        clip-path: inset(10% 0 85% 0);
    }
    60% {
        clip-path: inset(45% 0 48% 0);
    }
    80% {
        clip-path: inset(85% 0 10% 0);
    }
    100% {
        clip-path: inset(15% 0 63% 0);
    }
}

.hero-roles {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    min-height: 2.5rem;
}

.typewriter {
    display: inline-block;
    position: relative;
    color: var(--accent-color);
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -4px;
    width: 1px;
    height: 100%;
    background: var(--accent-color);
    animation: blink 0.75s step-end infinite;
}

.tech-stack {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 0.5rem;  /* Reduced margin */
    padding: 0;  /* Removed padding */
}

.tech-stack i {
    font-size: 2.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #fff;
}

.tech-stack i:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--accent-color);
}

.hero-cta {
    margin: 1rem 0;  /* Reduced margin */
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section::before {
    content: '';    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/grid.svg');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 5rem; /* Increased font size for hero section heading */
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleReveal 1s ease-out;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h2 {
    font-size: 2.5rem; /* Increased font size for hero section subheading */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.1em;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn.secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.section {
    padding: calc(var(--spacing) * 2);
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: var(--spacing);
}

.section-title {
    font-size: 3rem; /* Increased font size for section titles */
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1rem; /* Increased font size for skill tags */
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.project-links {
    list-style: none;
    margin-top: 1rem;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.project-links a:hover {
    text-decoration: underline;
}

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer {
    background: var(--section-bg);
    padding: var(--spacing);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile menu button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    position: relative;
    transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: transform 0.2s;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Mobile menu active states */
.menu-open .hamburger {
    background: transparent;
}

.menu-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Improved responsive design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .menu-open .nav-links {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: var(--spacing) 1rem;
    }

    .skills-grid, 
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-section {
        padding: 4rem 1rem 5rem;
    }

    .hero-content {
        min-height: calc(100vh - 9rem);
        gap: 1.5rem;
    }

    .hero-text-content {
        padding: 1rem 0;
        gap: 1rem;
    }

    .tech-stack {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tech-stack i {
        font-size: 2rem;
    }

    .hero-cta {
        margin: 2rem 0;
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-description {
        margin: 1.5rem 0;
        font-size: 1.1rem;
    }
}

/* Animation improvements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.skill-category,
.project-card {
    animation: fadeIn 0.5s ease-out;
}

/* Accessibility improvements */
.nav-links a:focus,
.btn:focus,
.social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f172a;
        --section-bg: #1e293b;
        --card-bg: #1e293b;
        --text-color: #e2e8f0;
        --light-text: #94a3b8;
    }

    .header {
        background: rgba(15, 23, 42, 0.8);
    }

    .glass-effect {
        background: rgba(30, 41, 59, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .skill-category, .project-card {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* New animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease-out forwards;
}

/* Remove animation - keep all elements visible */
.skill-category,
.project-card,
.service-card,
.education-item {
    opacity: 1;
    transform: translateY(0);
}

.visible {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New loading animation */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    animation: loadingAnimation 2s ease-out forwards;
}

@keyframes loadingAnimation {
    to {
        transform: scaleX(1);
    }
}

/* About section stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(var(--text-color), 0.1);
    border-bottom: 1px solid rgba(var(--text-color), 0.1);
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 1.5rem;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    animation: countUp 2s ease-out forwards;
}

.stat-label {
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Years of experience animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced About Section */
.about-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 2fr;
    gap: 4rem;
    align-items: start;
    position: relative;
}

.about-content {
    position: relative;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
}

.key-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(var(--primary-color), 0.05);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item::after {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .key-highlights {
        grid-template-columns: 1fr;
    }
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.service-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* Project cards enhancement */
.project-image {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    margin: -2rem -2rem 1rem -2rem;
}

.project-image img,
.project-image i {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img,
.project-card:hover .project-image i {
    transform: scale(1.05);
}

.project-description {
    color: var(--light-text);
    margin: 1rem 0;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 1rem; /* Increased font size for project tech tags */
    background: var(--section-bg);
    color: var(--primary-color);
}

/* Testimonials */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.testimonial-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

/* Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.contact-form {
    padding: 2rem;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1rem; /* Increased font size for form labels */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-text);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-color);
    transition: border-color 0.3s ease;
    font-size: 1rem; /* Increased font size for form inputs and textareas */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 2rem);
        margin-left: 2rem;
        transform: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .form-group input,
    .form-group textarea {
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--text-color);
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
    }

    .tech-tag {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Notification system */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background: #10B981;
    color: white;
}

.notification.error {
    background: #EF4444;
    color: white;
}

/* Dark mode support for notifications */
@media (prefers-color-scheme: dark) {
    .notification {
        background: var(--card-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Enhanced About Section */
.about-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 2fr;
    gap: 4rem;  /* Increased gap between image and content */
    align-items: start;
}

.profile-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.profile-image img,
.profile-image i {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image:hover img,
.profile-image:hover i {
    transform: scale(1.05);
}

.profile-image:hover .profile-overlay {
    opacity: 1;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.key-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;  /* Increased gap between highlights */
    margin: 2.5rem 0;  /* Increased vertical margin */
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;  /* Added vertical padding */
}

.highlight-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 24px;
}

.about-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 3rem;  /* Increased top margin */
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Responsive adjustments for about section */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .profile-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Dark mode adjustments for about section */
@media (prefers-color-scheme: dark) {
    .section-subtitle {
        color: var(--accent-color);
    }

    .contact-item a, 
    .contact-item span {
        color: var(--text-color);
    }

    .highlight-item i,
    .contact-item i {
        color: var(--accent-color);
    }
}

@media (max-height: 700px) {
    .hero-scroll-indicator {
        display: none;
    }
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.education-item {
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background: var(--card-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-item p {
    color: var(--light-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.education-item p:last-child {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
}

/* Upcoming Products Section */
#upcoming-products .project-card {
    text-align: center;
    padding: 3rem 2rem;
}

#upcoming-products .project-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

#upcoming-products .project-card:hover i {
    transform: scale(1.2);
}

#upcoming-products .project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

#upcoming-products .project-description {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

#upcoming-products .project-tech {
    justify-content: center;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    #upcoming-products .project-card i {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Add scroll margin to handle header overlap */
#about {
    scroll-margin-top: 80px;  /* Matches header height */
    padding-top: 4rem;  /* Increased top padding */
    padding-bottom: 6rem;  /* Added bottom padding */
}

/* Improve About section spacing */
.about-content {
    padding: 3rem;  /* Increased padding */
    margin-top: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    padding: 1rem 0;
}

/* Add smooth scrolling to improve navigation */
html {
    scroll-behavior: smooth;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    #about {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .about-stats {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
}

/* Enhanced Contact Section */
.contact-section {
    background: var(--section-bg);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/grid.svg');
    opacity: 0.05;
    z-index: 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.contact-info-container {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-info-heading {
    font-size: 1.75rem; /* Increased font size for contact info heading */
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background: rgba(var(--primary-color-rgb), 0.03);
}

.contact-info-item:hover {
    transform: translateX(10px);
    background: rgba(var(--primary-color-rgb), 0.05);
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-info-content {
    flex: 1;
}

.contact-label {
    font-size: 1rem; /* Increased font size for contact labels */
    color: var(--light-text);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    color: var(--text-color);
    font-size: 1.25rem; /* Increased font size for contact values */
    font-weight: 500;
}

.contact-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(var(--text-color-rgb), 0.1);
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-color);
    font-size: 1rem; /* Increased font size for form inputs and textareas */
    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(var(--primary-color-rgb), 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-text);
    opacity: 0.7;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-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: all 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

/* Social links in contact section */
.social-links-contact {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--text-color-rgb), 0.1);
}

.social-link-contact {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--text-color-rgb), 0.05);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-link-contact:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Success message animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: none;
    animation: slideIn 0.3s ease-out forwards;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: none;
    animation: slideIn 0.3s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info-container,
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-info-item {
        padding: 0.8rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-links-contact {
        justify-content: center;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .contact-info-item {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .contact-info-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .form-group input,
    .form-group textarea {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .social-link-contact {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .form-success {
        background: rgba(16, 185, 129, 0.2);
    }
    
    .form-error {
        background: rgba(239, 68, 68, 0.2);
    }
}

/* Project Category Styling */
.project-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.project-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-links li {
    margin-bottom: 0.5rem;
}

.project-links a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.project-links a:hover {
    background: var(--accent-color);
    color: var(--text-color-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .project-links {
        flex-direction: column;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}