/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--body-font);
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: capitalize;
    transition: color 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 100px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

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

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5% 2rem 5%;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -5%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
    z-index: 0;
}

.hero-content {
    max-width: 60%;
    text-align: left;
    z-index: 1;
    animation: fadeIn 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    position: relative;
}

.hero-image {
    position: relative;
    right: auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-top: 2rem;
}

.highlight {
    display: block;
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0.2rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-family: var(--body-font);
    font-style: normal;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin: 1rem auto;
    max-width: 600px;
    line-height: 1.7;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.typed-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0.8rem auto 1.2rem;
    font-weight: 500;
    height: 1.5em;
    display: block;
    position: relative;
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.typed-text span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    white-space: nowrap;
    width: auto;
    transition: all 0.3s ease;
}

.typed-text span.active {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.typed-text span:nth-child(2) {
    animation-delay: 4s;
}

.typed-text span:nth-child(3) {
    animation-delay: 8s;
}

@keyframes rotateWords {
    0%, 100% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(2px);
    }
    5%, 30% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    35%, 95% {
        opacity: 0;
        transform: translateY(-10px);
        filter: blur(2px);
    }
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0 1rem 0;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.6s;
    justify-content: center;
    width: 100%;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.8s;
    border: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

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

/* Section Styles */
section {
    padding: 5rem 5%;
}

section:nth-child(even) {
    background-color: var(--section-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

.about-text {
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Stack Section */
.skills {
    padding: 6rem 5%;
    background: var(--section-bg);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
}

.skill-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.skill-content p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.skill-list {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 6rem 5%;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.project-content {
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

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

.project-links a {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
}

.project-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.project-links a i {
    font-size: 1.1rem;
}

/* Remove image-related styles */
.project-image {
    display: none;
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    background: var(--section-bg);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-text {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-text p {
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn.loading {
    cursor: wait;
    opacity: 0.8;
}

.submit-btn.loading span {
    opacity: 0;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.contact-alternative {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
}

.contact-alternative p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.contact-email {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--secondary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--section-bg);
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        top: 0.5rem;
        padding: 0.6rem 1.5rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem;
        width: 100%;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1000;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-color);
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 5rem 5% 2rem 5%;
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        padding-top: 0;
        order: 2;
    }

    .hero-image {
        width: 220px;
        height: 220px;
        margin: 1rem auto 2.5rem;
        order: 1;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-top: 0;
    }

    .highlight {
        font-size: 3.5rem;
    }

    .typed-text {
        font-size: 1.1rem;
    }

    .social-links {
        margin: 1.2rem 0 0.8rem 0;
    }

    .cta-button {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills {
        padding: 4rem 5%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .projects {
        padding: 4rem 5%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .social-links a {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.2rem;
    }

    .hero::before,
    .hero::after {
        width: 200px;
        height: 200px;
    }

    .typed-text {
        font-size: 1.1rem;
    }

    .social-links {
        margin: 1rem 0 0.8rem 0;
    }

    .cta-button {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-image {
        width: 240px;
        height: 240px;
        margin-top: 1rem;
    }

    .contact {
        padding: 4rem 5%;
    }

    .contact-text h2 {
        font-size: 2rem;
    }

    .contact-text p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 0.9rem;
    }
}

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

.hero-content,
.about-content,
.skills-grid,
.projects-grid,
.contact-content {
    animation: fadeIn 1s ease-out;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Update X icon */
.fa-x-twitter:before {
    content: "\f099";  /* This is the Twitter bird icon code */
} 