/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --accent-color: #dbeafe;
    --gray-light: #f3f4f6;
    --gray-medium: #9ca3af;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('../assets/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar.scroll-down {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar.scroll-up {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a237e;
    font-family: cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.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: width 0.3s ease-out;
}

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

/* Main Content */
main {
    margin-top: 5rem;
    padding: 2rem;
    min-height: calc(100vh - 8rem);
}

/* Add a semi-transparent overlay to improve text readability */
main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: -1;
}

/* Hero Section */
.hero {
    padding-top: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 8rem);
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #1a237e;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.2rem;
    color: #37474f;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Add these styles in the Hero Section part */
.profile-image {
    width: 200px;
    height: 200px;
    margin: -2rem auto 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px dotted var(--primary-color);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
    animation: profileFadeIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.profile-image:hover img {
    transform: scale(1.1);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn.primary {
    background-color: #1a237e;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* .btn.secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
} */

.btn:hover {
    background-color: #283593;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* About Section */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.about-section h1,
.skills-section h2,
.projects-section h1,
.contact-section h1 {
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    padding-left: 2rem;
}

.about-text p {
    color: #37474f;
    font-weight: 500;
    margin-bottom: 1rem;
}

.skills-section {
    margin-top: 3rem;
}

.skill-category h3 {
    color: #448AFF; /* Bright blue color for headings */
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.skill-category li {
    color: rgba(255, 255, 255, 0.95); /* Slightly off-white for better visual */
    font-weight: 400;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.skill-category {
    background-color: #2C3E50;
    padding: 1.5rem;
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.animate-in .skill-category {
    opacity: 1;
    transform: translateX(0);
}

.skill-category:nth-child(2) {
    transition-delay: 0.2s;
}

.skill-category:nth-child(3) {
    transition-delay: 0.4s;
}

.skill-category ul {
    list-style: none;
    margin-top: 1rem;
}

.skill-category li::before {
    content: "•";
    color: #448AFF; /* Matching blue bullet points */
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Add hover effect */
.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Update skills section heading */
.skills-section h2 {
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

/* Projects Section */
.projects-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #2C3E50;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.animate-in .project-card {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(2) {
    transition-delay: 0.2s;
}

.project-card:nth-child(3) {
    transition-delay: 0.4s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #448AFF;  /* Same blue as skill section headings */
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.project-content p {
    color: rgba(255, 255, 255, 0.95);  /* Slightly off-white for better visual */
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-stack span {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    opacity: 0.9;
}

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

.btn-link i {
    color: #ffffff;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background-color: var(--gray-light);
    padding: 2rem;
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in .contact-info {
    opacity: 1;
    transform: translateY(0);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.copy-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.social-link i {
    width: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in .contact-form {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-medium);
    border-radius: 0.5rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--gray-light);
    padding: 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
    opacity: 0.9;
}

.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-2px);
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero.animate-in .animate-text {
    opacity: 1;
    transform: translateY(0);
}

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

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

.delay-3 {
    transition-delay: 0.6s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        margin: -1rem auto 2.5rem;
    }
}

/* Dark Mode (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f3f4f6;
        --bg-color: #1f2937;
        --accent-color: #1e40af;
        --gray-light: #374151;
        --gray-medium: #9ca3af;
    }

    .project-card,
    .contact-info,
    .contact-form {
        background-color: var(--gray-light);
    }
}

/* Add these styles after the main content styles */
.section {
    min-height: 100vh;
    padding: 4rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Add animation for scroll reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Active link styles */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Add these styles at the beginning of the file */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem; /* Account for fixed navbar */
    overflow-x: hidden; /* Prevent horizontal scroll during animations */
}

.projects-section h1 {
    margin-bottom: 2rem;
} 