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

:root {
    --navy: #0a192f;
    --navy-light: #112240;
    --navy-shadow: rgba(2, 12, 27, 0.7);
    --slate: #8892b0;
    --slate-light: #a8b2d1;
    --white: #e6f1ff;
    --teal: #64ffda;
    --teal-dark: #4ad3b3;
    --gradient-1: linear-gradient(120deg, var(--teal) 0%, #4facfe 100%);
    --gradient-2: linear-gradient(-60deg, #00f2fe 0%, #4facfe 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    /* background-image: url('../images/Untitled.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgb(0, 0, 29);
    color: var(--slate);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    cursor: default;
    margin: 0;
    background-blend-mode: multiply;
}

/* Glass effect overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    padding: 0;
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .container {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Enhanced social icons */
.social-icon {
    position: relative;
    transition: all 0.3s ease;
    color: var(--slate-light);
}

.social-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.social-icon:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

/* Enhanced cards */
.card {
    position: relative;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(17, 34, 64, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--teal);
    box-shadow: 0 20px 40px -15px var(--navy-shadow);
}

.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    padding: 1px;
    background: var(--gradient-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 1;
}

/* Enhanced section headings */
h1,
h2,
h3 {
    color: var(--white);
    font-weight: 600;
    line-height: 1.1;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

h1::after,
h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

h1:hover::after,
h2:hover::after {
    width: 100%;
}

/* Enhanced nav links */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 0;
    left: -20px;
    top: 50%;
    background-color: var(--teal);
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

.nav-link:hover::before {
    height: 20px;
}

.nav-link:hover {
    color: #4facfe;
}

.nav-link.active {
    color: #4facfe;
}

.nav-indicator {
    width: 2rem;
    height: 1px;
    background-color: var(--slate);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    width: 4rem;
    background-color: var(--teal);
}

.nav-text {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4facfe;
}

.nav-link:hover .nav-text {
    color: #4facfe;
}

.nav-link.active .nav-text {
    color: #4facfe;
}

/* Enhanced tech tags */
.tech-tag {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #0b3d60;
    color: #a1d2ff;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-light);
}

::-webkit-scrollbar-thumb {
    background: var(--slate);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-light);
}

/* Project image hover effect */
.project-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: rgba(11, 61, 96, 0.1);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(161, 210, 255, 0.1);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.project-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image:hover img {
    transform: scale(1.02);
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(100, 255, 218, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover::after {
    opacity: 1;
}

/* Enhanced text animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced link hover effects */
.text-link {
    position: relative;
    display: inline-block;
    color: var(--teal);
    transition: color 0.3s ease;
}

.text-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--teal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Layout */
.layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .layout {
        flex-direction: row;
        justify-content: space-between;
        gap: 3rem;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 0;
    max-height: 100vh;
    max-width: 600px;
}

.header-content {
    display: flex;
    gap: 3rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-icon {
    color: var(--slate);
    transition: all 0.3s ease;
}

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

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Header Text */
.header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .name {
        font-size: 3.75rem;
    }
}

.title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-light);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .title {
        font-size: 1.875rem;
    }
}

.description {
    font-size: 1.125rem;
    color: var(--slate);
    max-width: 28rem;
    line-height: 1.75;
}

/* Navigation */
.nav {
    margin-top: 2rem;
    /* max-width: 600px; */
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #4facfe;
}

.nav-link.active {
    color: #4facfe;
}

.nav-indicator {
    width: 2rem;
    height: 1px;
    background-color: var(--slate);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    width: 4rem;
    background-color: var(--teal);
}

.nav-text {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4facfe;
}

.nav-link:hover .nav-text {
    color: #4facfe;
}

.nav-link.active .nav-text {
    color: #4facfe;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    width: 700px;
}

@media (min-width: 1024px) {
    .main-content {
        padding: 3rem 0;
    }
}

/* Sections */
.section {
    margin-bottom: 5rem;
    scroll-margin-top: 4rem;
}

@media (min-width: 768px) {
    .section {
        margin-bottom: 7rem;
    }
}

@media (min-width: 1024px) {
    .section {
        margin-bottom: 10rem;
        scroll-margin-top: 6rem;
    }
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate);
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-content p {
    margin-bottom: 1rem;
}

/* Cards */
.card {
    position: relative;
    border-radius: 0.5rem;
    border: 1px solid var(--slate);
    background-color: rgba(17, 34, 64, 0.6);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
}

.card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -15px var(--navy-shadow);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skills-card {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.skill-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--teal);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Experience */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.experience-card {
    display: grid;
    gap: 1.5rem;

    background-color: rgba(11, 61, 96, 0.1);
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .experience-card {
        grid-template-columns: repeat(8, 1fr);
        gap: 2rem;
    }
}

.experience-header {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    /* color: var(--slate); */
}

@media (min-width: 640px) {
    .experience-header {
        grid-column: span 2;
    }
}

.experience-content {
    grid-column: span 6;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.experience-link {
    color: var(--white);
    transition: color 0.3s ease;
}

.experience-link:hover {
    color: var(--teal);
}

.experience-description {
    font-size: 0.875rem;
    color: var(--slate);
    margin-bottom: 1rem;
    line-height: 1.75;
}

/* Projects Section */
.projects-container {
    margin-top: 2rem;
    padding: 1rem 0;
    width: 100%;
    position: relative;
}

.projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-item {
    margin-bottom: 3rem;
}

.project-card {
    position: relative;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(11, 61, 96, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(161, 210, 255, 0.3);
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--teal);
    box-shadow: 0 20px 40px -15px var(--navy-shadow);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    padding: 1px;
    background: var(--gradient-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.project-image {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-content {
    flex: 1;
    z-index: 10;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: var(--teal);
}

.project-description {
    color: var(--slate);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.tech-item {
    margin-right: 0.375rem;
    margin-top: 0.5rem;
}

.tech-tag {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #0b3d60;
    color: #a1d2ff;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* Group hover effect */
.projects-list:hover .project-card {
    opacity: 0.5;
}

.projects-list .project-card:hover {
    opacity: 1 !important;
}

/* Contact */
.contact-card {
    padding: 1.5rem;
}

.contact-text {
    color: var(--slate);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.contact-link {
    color: var(--teal);
    transition: color 0.3s ease;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Highlight */
.highlight {
    font-weight: 600;
    color: #ffffff;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Spotlight */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 170, 255, 0.868),
            transparent 40%);
}

/* Enhanced Contact Section Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(29, 78, 216, 0.15) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-container:hover::before {
    opacity: 1;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.contact-text {
    color: var(--slate);
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid #1d4ed8;
    transition: all 0.3s ease;
}

.contact-text:hover {
    color: #60a5fa;
    padding-left: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(29, 78, 216, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 12px;
    color: var(--slate-light);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-method:hover::before {
    transform: translateX(100%);
}

.contact-method:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #60a5fa;
    background: rgba(29, 78, 216, 0.1);
    box-shadow: 0 10px 30px -15px rgba(29, 78, 216, 0.2);
}

.contact-method svg {
    width: 24px;
    height: 24px;
    color: #60a5fa;
    transition: transform 0.3s ease;
}

.contact-method:hover svg {
    transform: scale(1.2);
    color: #3b82f6;
}

.contact-method:hover span {
    color: #60a5fa;
}

/* Enhanced Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    background: rgba(29, 78, 216, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(96, 165, 250, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-form:hover::before {
    transform: translateX(100%);
}

.contact-form:hover {
    border-color: #60a5fa;
    box-shadow: 0 15px 40px -15px rgba(29, 78, 216, 0.2);
    transform: translateY(-5px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.form-group label {
    color: var(--slate-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding-left: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.25rem;
    background: rgba(29, 78, 216, 0.05);
    border: 2px solid rgba(96, 165, 250, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus+label,
.form-group textarea:focus+label {
    color: #60a5fa;
    transform: translateY(-2px);
}

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

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(120deg, #3b82f6, #60a5fa);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    background: linear-gradient(120deg, #2563eb, #3b82f6);
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.submit-btn:hover svg {
    transform: translateX(6px) scale(1.1);
}

/* Enhanced Form Validation Styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ff4d4d;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translateX(-1px);
    }

    20%,
    80% {
        transform: translateX(2px);
    }

    30%,
    50%,
    70% {
        transform: translateX(-4px);
    }

    40%,
    60% {
        transform: translateX(4px);
    }
}

.form-group input:invalid:focus,
.form-group textarea:invalid:focus {
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.1);
}

/* Success Message Animation */
.form-success {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Result Styles */
.form-result {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.form-result.loading {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid #60a5fa;
    opacity: 1;
    transform: translateY(0);
}

.form-result.success {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid #60a5fa;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.5s ease forwards;
}

.form-result.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    opacity: 1;
    transform: translateY(0);
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

















/* Mobile Responsive Styles */

/* Base mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .layout {
        flex-direction: column;
    }

    .header {
        position: relative;
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
        flex-grow: 1;
    }

    .social-icons {
        margin-bottom: 0;
        margin-right: 1rem;
        justify-content: flex-start;
    }

    .header-text {
        text-align: left;
    }

    .name {
        font-size: 2.4rem;
        margin-bottom: 0.4rem;
    }

    .title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .description {
        font-size: 1.1rem;
        padding: 0;
    }

    /* Mobile Navigation */
    .nav {
        /* Keep navigation hidden on mobile if no hamburger menu */
        display: none;
    }

    .nav.active {
        /* This rule is no longer needed without the active class toggling */
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }

    .nav-link {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem;
        width: 100%;
    }

    .nav-indicator {
        display: block;
        width: 1.5rem;
    }

    .nav-text {
        font-size: 1rem;
    }

    /* Hamburger Menu - Removed */
    /* Overlay - Removed */

    /* Main content */
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .section {
        padding: 1.5rem 0;
    }

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

    /* Skills grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skills-card {
        padding: 1rem;
    }

    /* Projects */
    .projects-list {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin-bottom: 1.5rem;
    }

    .project-image {
        height: 200px;
    }

    /* Contact section */
    .contact-container {
        padding: 1rem;
    }

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

    .contact-method {
        padding: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

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

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 2rem;
    }

    .layout {
        flex-direction: column;
        /* Stack layout elements */
    }

    .header {
        position: relative;
        /* Remove sticky position */
        padding: 1rem 2rem;
        /* Adjust padding */
        display: flex;
        /* Keep header items in a row */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        /* Header takes full width */
    }

    .header-content {
        flex-direction: row;
        /* Social icons and text in a row */
        align-items: center;
        text-align: left;
        flex-grow: 1;
    }

    .social-icons {
        margin-bottom: 0;
        /* Remove bottom margin */
        margin-right: 1.5rem;
        /* Adjust spacing */
        justify-content: flex-start;
    }

    .header-text {
        text-align: left;
    }

    .name {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .description {
        font-size: 1.2rem;
        padding: 0;
    }

    .nav {
        display: none;
        /* Hide navigation in this range */
    }

    .nav-list {
        flex-direction: row;
        /* Arrange nav items in a row */
        justify-content: center;
        /* Center nav items */
        gap: 2rem;
        /* Adjust spacing */
    }

    .nav-link {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem;
        width: auto;
        /* Allow nav links to take natural width */
    }

    .nav-indicator {
        display: block;
        width: 1.5rem;
        margin-right: 0.5rem;
    }

    .nav-text {
        font-size: 1rem;
    }

    .main-content {
        margin-left: 0;
        /* Remove left margin */
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
    }

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

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

    .skills-card {
        padding: 1.5rem;
    }

    .projects-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .project-card {
        margin-bottom: 0;
        /* Remove bottom margin */
    }

    .project-image {
        height: 250px;
        /* Adjust image height */
    }

    .contact-container {
        padding: 2rem;
    }

    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-method {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

/* Desktop and larger tablets */
@media (min-width: 1025px) and (max-width: 1277px) {
    .container {
        padding: 0 4rem;
        /* Slightly increased padding for this range */
        max-width: 1300px;
    }

    .layout {
        flex-direction: column;
        /* Stack header and main content vertically */
        gap: 2rem;
        /* Add gap between header and main content */
        /* padding-left: 2rem
        padding-right: 2rem; */
    }

    .header {
        position: relative;
        /* Make header non-sticky */
        top: auto;
        /* Remove top positioning */
        align-self: auto;
        /* Remove align-self */
        padding: 2rem 0;
        /* Adjust padding */
        width: 100%;
        /* Header takes full width */
        flex-shrink: 0;
        display: flex;
        /* Use flexbox for header content alignment */
        justify-content: center;
        /* Center header content */
        align-items: center;
        /* Vertically align header content */
    }

    .header-content {
        flex-direction: row;
        /* Arrange social icons and text in a row */
        align-items: center;
        /* Vertically align items within header-content */
        text-align: left;
        flex-grow: 0;
    }

    .social-icons {
        margin-bottom: 0;
        /* Remove bottom margin */
        margin-right: 2rem;
        /* Add space between icons and text */
        justify-content: center;
        /* Center social icons */
    }

    .header-text {
        text-align: left;
    }

    .name {
        font-size: 2.8rem;
        margin-bottom: 0.5rem;
    }

    .title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .description {
        font-size: 1.1rem;
        padding: 0;
    }

    .nav {
        display: none;
        /* Keep nav hidden in this range */
    }

    .nav-list {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .nav-link {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 0;
        width: auto;
    }

    .nav-indicator {
        display: block;
        width: 1.5rem;
        margin-right: 0.5rem;
    }

    .nav-text {
        font-size: 1rem;
    }

    .main-content {
        margin-left: 0;
        padding: 4rem 0;
        flex-grow: 1;
    }

    .section {
        padding: 2rem 0;
    }

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

    .skills-grid,
    .projects-list,
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .skills-card,
    .project-card,
    .contact-method,
    .contact-form {
        padding: 1.5rem;
    }

    .project-image {
        height: 200px;
    }

    .contact-container {
        padding: 2rem;
    }

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

/* Small mobile devices */
@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .description {
        font-size: 1rem;
    }

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

    .card-title {
        font-size: 1.1rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }
}

/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 0.5rem 0;
    }

    .nav {
        padding: 0.3rem;
    }

    .nav-text {
        font-size: 0.7rem;
    }

    .main-content {
        margin-bottom: 3rem;
    }
}

/* High-DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .card {
        border-width: 0.5px;
    }
}

/* Print styles */
@media print {

    .nav,
    .social-icons,
    .contact-form {
        display: none;
    }

    .container {
        padding: 0;
    }

    .main-content {
        margin: 0;
    }
}