/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --accent: #f0abfc;
    --text: #2d3748;
    --text-light: #4a5568;
    --text-dark: #1a202c;
    --bg: #fff;
    --bg-light: #f8fafc;
    --bg-dark: #1a1a1a;
    --shadow: 0 4px 6px rgba(124, 58, 237, 0.1);
    --shadow-lg: 0 10px 30px rgba(124, 58, 237, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

body.dark-theme {
    --text: #f8fafc;
    --text-light: #e2e8f0;
    --text-dark: #fff;
    --bg: #1a1a1a;
    --bg-light: #262626;
    --bg-dark: #111;
    --shadow: 0 4px 6px rgba(124, 58, 237, 0.2);
    --shadow-lg: 0 10px 30px rgba(124, 58, 237, 0.25);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    text-align: center;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    gap: 0.5rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: var(--bg-light);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    padding: 0 2rem;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-light);
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    transform: rotate(-45deg);
}

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

.hero-text {
    animation: fadeIn 1s ease;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 600px;
}

.hero-image {
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: var(--primary-light);
    opacity: 0.2;
    z-index: -1;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-links a {
    color: var(--text);
    font-size: 1.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    background-color: var(--bg-light);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--bg);
    position: relative;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

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

.highlight-item {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background-color: var(--bg-light);
    position: relative;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skills-category {
    background-color: var(--bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.skills-category h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

.skill-bar {
    height: 10px;
    background-color: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background-color: var(--bg);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

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

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tech {
    margin: 1rem 0;
    flex-grow: 1;
}

.project-tech span {
    padding: 0.5rem 1rem;
    background-color: rgba(124, 58, 237, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

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

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-light);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info {
    display: grid;
    gap: 3rem;
}

.contact-item {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
    background-color: rgba(124, 58, 237, 0.1);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.contact-form {
    background-color: var(--bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--primary);
}

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

.contact-form .submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form .submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Dark theme adjustments */
body.dark-theme .contact-form input,
body.dark-theme .contact-form textarea {
    background-color: var(--bg-light);
    border-color: var(--primary-light);
}

body.dark-theme .contact-form input:focus,
body.dark-theme .contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Footer */
.footer {
    background-color: var(--bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--bg-light);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .skills-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .key-highlights {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 3rem auto 0;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Form Status Messages */
.form-status {
    margin-top: 1rem;
    text-align: center;
}

.form-status .sending,
.form-status .success,
.form-status .error {
    padding: 1rem;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.form-status .sending {
    background-color: var(--bg-light);
    color: var(--text);
}

.form-status .success {
    background-color: #10B981;
    color: white;
}

.form-status .error {
    background-color: #EF4444;
    color: white;
}

/* Submit Button Enhancement */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Social Links Enhancement */
.social-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--bg-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: var(--primary);
    color: white;
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.2;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-links a:hover::before {
    transform: scale(1.2);
}

/* Loading States */
.project-image.loading {
    animation: shimmer 1.5s infinite;
    background: linear-gradient(
        90deg,
        var(--bg-light) 0%,
        var(--bg) 50%,
        var(--bg-light) 100%
    );
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
  