/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f6fa; /* Change this to any color you prefer */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #374151;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Portfolio logo/title effect */
.nav-logo h2 {
    color: #3b82f6;
    letter-spacing: 2px;
    font-weight: 700;
    transition: color 0.3s, transform 0.3s;
}

.nav-logo h2:hover {
    color: #6366F1;
    transform: translateY(-3px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #E5E7EB;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #6366F1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #6366F1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #E5E7EB;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    padding-top: 70px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text {
    color: #E5E7EB;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInRight 1s ease-out;
}

.highlight {
    color: #6366F1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: slideInRight 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
    animation: slideInRight 1s ease-out 0.4s both;
}

.resume-btn {
    background: linear-gradient(45deg, #6366F1, #8B5CF6);
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    animation: slideInRight 1s ease-out 0.6s both;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    color: #FFFFFF;
    text-decoration: none;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #E5E7EB;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #6366F1, #8B5CF6);
    border-radius: 2px;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: #1F2937;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #374151;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #4B5563;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #6366F1;
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #E5E7EB;
}

.project-content p {
    color: #D1D5DB;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: #6366F1;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Custom bullet points for project details */
.project-details {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.project-details li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.7rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.project-details li::before {
    content: "\f005"; /* Font Awesome star icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #f59e42; /* orange/gold for interest */
    font-size: 1.1rem;
    transition: color 0.3s;
}

.project-details li:hover::before {
    color: #6366F1; /* highlight on hover */
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: #111827;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #E5E7EB;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #374151;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #4B5563;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: #6366F1;
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    border-color: #6366F1;
}

.skill-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.1);
}

.skill-item span {
    font-weight: 500;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: #E5E7EB;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: #6366F1;
}

.contact-form {
    background: rgba(55, 65, 81, 0.5);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid #4B5563;
}

/* Contact form hover and focus effects */
.contact-form input,
.contact-form textarea {
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.contact-form input:hover,
.contact-form input:focus,
.contact-form textarea:hover,
.contact-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
    transform: scale(1.03);
    outline: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #4B5563;
    border-radius: 10px;
    background: #374151;
    color: #E5E7EB;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #6366F1, #8B5CF6);
    color: #FFFFFF;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Submit button hover animation */
.submit-btn {
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 16px #3b82f6;
    transform: scale(1.05) rotate(-2deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1F2937;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        border-top: 1px solid #374151;
    }

    /* CSS-only mobile menu using focus */
    .hamburger:focus + .nav-menu,
    .nav-menu:hover {
        left: 0;
    }

    /* Alternative: Show menu on hamburger click using :target */
    .hamburger:target + .nav-menu {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .resume-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .resume-content {
        padding: 1.5rem;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.resume-btn:focus,
.submit-btn:focus,
.skill-item:focus,
.hamburger:focus {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
}

/* Smooth animations for all interactive elements */
.project-card,
.skill-item,
.resume-btn,
.submit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced mobile menu accessibility */
@media (max-width: 768px) {
    .nav-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .hamburger:focus + .nav-menu,
    .nav-menu:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        left: 0;
    }

    /* Make hamburger more accessible */
    .hamburger {
        padding: 10px;
        border-radius: 5px;
    }

    .hamburger:focus {
        background: rgba(99, 102, 241, 0.1);
    }
}

/* Form Message Styles */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10B981;
    color: #10B981;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #EF4444;
}

.success-message,
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-message i,
.error-message i {
    font-size: 1.2rem;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;

}

.footer {
    background: #18181b;
    color: #e5e7eb;
    text-align: center;
    padding: 18px 0;
    border-top: 1px solid #23232a;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.footer p {
    margin: 0;
    color: #e5e7eb;
    opacity: 0.85;
}
