/* Main Variables and Theme Colors */
:root {
    /* Color palette from the image with lighter backgrounds */
    --primary: #0e9a77;
    /* Engineering orange */
    --primary-light: #292727;
    /* Lighter version of engineering orange */
    --secondary: #83a1e2;
    /* Air Force blue */
    --secondary-light: #7aa8c1;
    /* Lighter Air Force blue */
    --accent: #9DD1F1;
    /* Baby blue */
    --dark: #031927;
    /* Rich black - now used for text instead of background */
    --darker: #021019;
    /* Even darker rich black - now used for text */
    --light: #F5FAFF;
    /* Near white with a slight blue tint - main background */
    --light-alt: #E4F1FF;
    /* Slightly darker than light - secondary background */
    --gray: #7a8a98;
    /* Mid-tone between the blues */
    --gray-light: #C8E0F4;
    /* Columbia blue as light gray */

    /* RGB values for gradients and transparencies */
    --primary-rgb: 186, 18, 0;
    /* BA1200 */
    --primary-light-rgb: 229, 75, 46;
    /* Lighter engineering orange */
    --secondary-rgb: 80, 138, 168;
    /* 508AA8 */
    --accent-rgb: 157, 209, 241;
    /* 9DD1F1 */
    --dark-rgb: 3, 25, 39;
    /* 031927 */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--dark);
}

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text span {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
}

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

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

.nav-link.active {
    color: var(--primary);
}

.contact-btn {
    margin-left: 2rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

/* Mobile navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

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

    .mobile-menu {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 8rem 0 5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 50%, rgba(var(--primary-rgb), 0.05), transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(var(--secondary-rgb), 0.05), transparent 40%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -60px;
    width: 50px;
    height: 1px;
    background: var(--primary);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-title .gradient-text {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    padding: 1rem 2rem;
    background-color: transparent;
    color: var(--dark);
    border: 1px solid rgba(var(--dark-rgb), 0.2);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: rgba(var(--dark-rgb), 0.05);
    border-color: rgba(var(--dark-rgb), 0.3);
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    gap: 1.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link i {
    margin-right: 0.5rem;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.profile-image-container {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.profile-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1;
    animation: morphing 10s ease-in-out infinite;
    z-index: 0;
}

.profile-image {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 1;
    border: 4px solid rgba(var(--secondary-rgb), 0.3);
    filter: saturate(1.1) contrast(1.05);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Background floating elements */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0.03;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 5%;
    left: -150px;
    animation: float 15s linear infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -100px;
    animation: float 18s linear infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 20%;
    animation: float 12s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Section Common Styles */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-light {
    background-color: var(--light);
}

.section-light-alt {
    background-color: var(--light-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.section-title span {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray);
    line-height: 1.6;
}

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

.about-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

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

.stat-item {
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(var(--secondary-rgb), 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: var(--dark);
}

.education-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--secondary-rgb), 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.education-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

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

.education-item:last-child {
    margin-bottom: 0;
}

.education-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.education-item p {
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.education-item .date {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.certifications {
    margin-top: 2.5rem;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.cert-icon {
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.cert-info h5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.cert-info p {
    font-size: 0.95rem;
    color: var(--gray);
}

/* Experience Section */
.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(var(--secondary-rgb), 0.2) 0%,
            rgba(var(--secondary-rgb), 0.6) 50%,
            rgba(var(--secondary-rgb), 0.2) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
    width: 100%;
    display: flex;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 4rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 4rem;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid white;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(var(--secondary-rgb), 0.2);
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.timeline-company {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 20px;
    border-width: 15px 0 15px 15px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 20px;
    border-width: 15px 15px 15px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.07);
    border-color: rgba(var(--secondary-rgb), 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.project-content {
    padding: 2rem;
}

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

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary);
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--secondary);
}

.project-link:hover i {
    transform: translateX(3px);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.skills-category {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(var(--secondary-rgb), 0.2);
}

.category-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    background: var(--light);
    color: var(--dark);
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

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

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--dark);
}

.contact-info p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-text {
    color: var(--dark);
}

.contact-text a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-socials {
    display: flex;
    gap: 1.25rem;
}

.social-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--light);
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.contact-form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--light);
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    border-radius: 8px;
    color: var(--dark);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.1);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    background-color: var(--light-alt);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(var(--secondary-rgb), 0.3) 50%,
            transparent 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--gray);
    line-height: 1.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.footer-socials a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--secondary-rgb), 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .profile-image-container {
        height: 450px;
    }

    .profile-shape {
        width: 350px;
        height: 350px;
    }

    .profile-image {
        width: 330px;
        height: 330px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
        margin: 0 auto;
    }

    .profile-image-container {
        order: 1;
        height: 400px;
        margin-bottom: 2rem;
    }

    .hero-subtitle::after {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .timeline-item {
        flex-direction: column;
        align-items: center;
    }

    .timeline-content {
        text-align: center !important;
        margin: 0 !important;
        margin-top: 2rem !important;
    }

    .timeline-dot {
        position: relative;
        transform: none;
        left: auto;
    }

    .timeline-line {
        left: auto;
        right: auto;
        width: 2px;
        height: 100%;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        display: none;
    }
}

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

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-right {
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .profile-image-container {
        height: 300px;
    }

    .profile-shape {
        width: 250px;
        height: 250px;
    }

    .profile-image {
        width: 230px;
        height: 230px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

/* Additional Animations and Effects */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.timeline-dot {
    animation: pulse 2s infinite;
}