/* ===================================
   Portfolio Website Styles
   Author: Vineet Patel
   =================================== */

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

:root {
    --primary-color: #0077B5;
    --secondary-color: #FF6B6B;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --accent-1: #4CAF50;
    --accent-2: #673AB7;
    --dark-bg: #1a1a1a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-top: 80px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ===================================
   Navigation Bar
   =================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

nav .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav .logo span {
    color: var(--secondary-color);
}

nav .nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav .nav-links a:hover {
    color: var(--secondary-color);
}

nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

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

/* ===================================
   Hero Section
   =================================== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--dark-bg);
    animation: fadeInDown 1s ease;
}

.hero h2 {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.2s both;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.4s both;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-github {
    background: #181717;
}

.btn-github:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-linkedin {
    background: var(--primary-color);
}

.btn-linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.btn-resume {
    background: var(--secondary-color);
}

.btn-resume:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* ===================================
   Section Styling
   =================================== */
.section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease;
}

.section h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: var(--dark-bg);
    border-bottom: 3px solid var(--accent-2);
    padding-bottom: 10px;
}

.section h3 {
    font-size: 1.5em;
    margin: 20px 0 15px;
    color: var(--accent-2);
}

/* ===================================
   About Section
   =================================== */
.about-content {
    font-size: 1.1em;
    line-height: 1.8;
}

.about-content ul {
    list-style: none;
    padding: 20px 0;
}

.about-content li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.about-content li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-size: 1.2em;
}

/* ===================================
   Skills Section
   =================================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 15px;
    color: white;
}

.skill-category h4 {
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ===================================
   Projects Section
   =================================== */
.projects-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent-2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.project-section {
    margin: 20px 0;
}

.project-section h4 {
    color: var(--accent-2);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.project-section ul {
    list-style: none;
    padding-left: 20px;
}

.project-section li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.project-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tech-badge {
    background: var(--accent-2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.project-link:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* ===================================
   Current Focus Section
   =================================== */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.focus-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.focus-item:hover {
    transform: scale(1.05);
}

.focus-item span {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

/* ===================================
   Contact Section
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.contact-card a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}

.contact-card span {
    display: block;
    font-size: 2em;
    margin-bottom: 15px;
}

/* ===================================
   Contact Form
   =================================== */
.contact-form-container {
    max-width: 700px;
    margin: 40px auto 0;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-bg);
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-bg);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* ===================================
   Footer
   =================================== */
footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-top: 40px;
}

footer p {
    font-style: italic;
    color: #666;
    margin: 20px 0;
    font-size: 1.2em;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    nav .nav-links {
        position: fixed;
        top: 65px;
        left: -100%;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.98);
        width: 100%;
        padding: 20px;
        gap: 15px;
        transition: left 0.3s ease;
    }

    nav .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero h2 {
        font-size: 1.2em;
    }

    .section {
        padding: 25px;
    }

    .section h2 {
        font-size: 1.8em;
    }

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

    .contact-form-container {
        padding: 25px;
    }
}
