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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #0f172a;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #1d4ed8;
}

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

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.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, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
}

.btn-tertiary {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid #2563eb;
    cursor: pointer;
    font-size: 1rem;
    background: #2563eb; /* Blue background */
    color: white;
}

.btn-tertiary:hover {
    background: #1d4ed8; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #fbbf24;
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 400px;           /* Adjust size as needed */
    height: 400px;
    border-radius: 45%;      /* Makes it circular */
    object-fit: cover;      /* Ensures image fills the circle */
    border: 3px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Adds depth */
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);  /* Slight zoom on hover */
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #f8fafc;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #fbbf24);
    border-radius: 2px;
}

/* About Section */
.about {
    background: #1e293b;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #334155;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #334155;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #f8fafc;
}

.project-description {
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #475569;
    color: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.project-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1d4ed8;
}

/* Skills Section */
.skills {
    background: #1e293b;
}

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

.skill-category {
    background: #334155;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #475569;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #64748b;
    transform: translateY(-3px);
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2563eb;
}

.skill-item span {
    font-weight: 500;
    color: #e2e8f0;
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.contact-info p {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.contact-item i {
    color: #2563eb;
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links .social-link {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links .social-link:hover {
    color: #2563eb;
    transform: translateY(-3px);
}

/* Enhanced Contact Form Styles */
.contact-form {
    background: #334155;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #475569;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #1e293b;
    color: #e5e7eb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.3s ease;
    background: #1e293b;
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #3b82f6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.validation-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.success {
    background: #10b981;
    color: white;
}

.error {
    background: #ef4444;
    color: white;
}

/* Footer */
.footer {
    background: #020617;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
}

/* ===================================
   Mobile View Fixes
   =================================== */
@media (max-width: 768px) {
    
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Navbar - less height & more spacing */
    .navbar {
        padding: 0.5rem 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
    }
    .nav-logo a {
        display: None;
    }
    .nav-menu {
        display: flex;
        gap: 1rem;
        margin-right: 1rem;
        margin-left: 1rem;
        padding: 0;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0;
        color: #64748b;
    }
    .hamburger .bar {
        background-color: #1f2937;
    }

    /* Hero section adjustments */
    .hero {
        padding-top: 90px; /* so text isn't covered by navbar */
    }
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        max-width: 500px;
    }
    .hero-image {
        order: -1; /* move image to the top */
        display: flex;
        justify-content: center;
    }
    .hero-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .btn {
        font-size: 0.85rem;
        padding: 8px 14px;
        border-radius: 6px;
    }
    .profile-image {
        width: 180px;
        height: 180px;
        border-radius: 45%;
        object-fit: cover;
        margin-bottom: 1rem;
    }

    /* About section - remove image & fix overflow */
    .about-content {
        display: block;
        padding: 0 1rem;
    }
    .about-image {
        display: none; /* Hide image completely */
    }
    .about-text p {
        font-size: 0.9rem;
        color: #cbd5e1;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .stat {
        background: #f3f4f6;
        color: #111827;
    }

    /* Projects */
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Skills */
    .skills-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Contact */
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}
/**/

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
} 