/* Core Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --accent-color: #6366f1;
    --text-color: #334155;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-align: center; /* Default center alignment for all elements */
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
}

/* Container adjustments */
.container {
    max-width: 1000px; /* Reduced from 1200px */
    margin: 0 auto;
    padding: 40px 20px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1000px; /* Reduced container width */
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px; /* Adjust this value to match your desired logo size */
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1); /* Optional: adds a slight zoom effect on hover */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

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

/* Header Section - More Compact */
.header {
    min-height: 35vh; /* Reduced from 100vh */
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    color: white;
    padding: 120px 20px 80px; /* Reduced padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    animation: gradient 15s ease infinite;
}

.header-content {
    max-width: 700px; /* Even smaller container for header content */
    margin: 0 auto;
}

.header h1 {
    font-size: 3.5rem; /* Reduced from 4rem */
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    max-width: 700px; /* Reduced width */
    margin: 0 auto;
    padding: 0 20px;
}

.about h2 {
    font-size: 2.2rem; /* Slightly smaller */
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Skills Section */
.skills-section {
    padding: 80px 0; /* Kept the same */
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.skills-section h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem; /* Increased from default */
    margin-top: -20px; /* This will move the "Skills" text up */
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Rest of the skills styling remains the same */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

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

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.skill-card ul {
    list-style: none;
    text-align: center;
}

.skill-card li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.skill-card li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 900px; /* Reduced width */
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    color: white;
}

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

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.contact-item a:hover {
    opacity: 1;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    text-align: left; /* Override center alignment for form inputs */
}

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

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: auto; /* Changed from 100% */
    min-width: 200px;
    margin: 0 auto;
    display: block;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
}

/* Animations */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .header h1 {
        font-size: 2.2rem;
    }

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

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
    }

    .container {
        padding: 20px;
    }

    .header {
        min-height: 50vh;
        padding: 100px 20px 60px;
    }
}

@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .about h2,
    .skills-section h2,
    .contact h2 {
        font-size: 1.8rem;
    }
}

/* Add this in your HTML head */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');