/* ====== GENERAL STYLES ====== */
:root {
    --primary-color: #ffffff;
    --secondary-color: #cccccc;
    --accent-color: #00b4d8;
    --background: #121212;
    --surface: #1e1e1e;
    --surface-lighter: #2a2a2a;
    --text: #ffffff;
    --text-secondary: #cccccc;
    --gray-color: #aaaaaa;
    --border-color: #333333;
    --hover-color: #2d2d2d;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    background-image: linear-gradient(to bottom, #121212, #141414);
    overflow-x: hidden;
}

/* Added to prevent form zoom on mobile */
input, textarea, select, button {
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-align: center;
}

.primary-btn {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2);
}

.primary-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
    filter: brightness(1.1);
}

.secondary-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--accent-color);
}

.secondary-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
}

section {
    padding: 8rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.underline {
    display: none;
}

/* Global Mobile Adjustments */
@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    section {
        padding: 5rem 0;
        width: 92%;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 4rem 0;
        width: 94%;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
}

/* Fix for Cursor Position on Mobile */
@media screen and (max-width: 768px) {
    .cursor {
        height: 35px;
        top: 5px;
        margin-left: 5px;
        width: 3px;
    }
}

@media screen and (max-width: 480px) {
    .cursor {
        height: 25px;
        top: 3px;
        margin-left: 4px;
        width: 2px;
    }
}

/* ====== NAVBAR ====== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.97);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    opacity: 0;
}

.logo:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 6px;
    transition: var(--transition);
}

/* ====== HERO SECTION ====== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background-color: var(--background);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease forwards;
}

.image-container {
    width: 360px;
    height: 360px;
    border-radius: 5px;
    overflow: visible;
    position: relative;
    padding: 0;
    background: none;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

/* Adding a subtle gradient background effect */
.image-container::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: radial-gradient(
        circle at center,
        rgba(0, 180, 216, 0.15) 0%,
        rgba(0, 140, 180, 0.1) 40%,
        rgba(18, 18, 18, 0.05) 70%,
        rgba(18, 18, 18, 0) 100%
    );
    border-radius: 15px;
    z-index: -1;
    filter: blur(10px);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

/* Dark overlay layer with accent color hint */
.image-container::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(
        135deg,
        transparent 20%,
        rgba(0, 180, 216, 0.05) 50%,
        transparent 80%
    );
    border-radius: 10px;
    z-index: -1;
    opacity: 0.8;
    animation: rotateSlow 15s linear infinite;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes rotateSlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 2px;
    transition: transform 0.5s ease;
    display: block;
    /* A very slight zoom effect on the image */
    animation: breathe 4s ease-in-out infinite alternate;
}

@keyframes breathe {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.03);
    }
}

/* Scroll down arrow - redesigned layout */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-down a {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    background-color: rgba(18, 18, 18, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-down a:hover {
    background-color: var(--accent-color);
    color: var(--background);
    transform: translateY(-3px);
}

/* Mobile specific positioning */
@media screen and (max-width: 768px) {
    .scroll-down {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }
    
    .scroll-down a {
        background-color: rgba(18, 18, 18, 0.8);
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
}

/* Stats section below hero */
.stats-container {
    display: flex;
    justify-content: flex-start;
    gap: 4rem;
    margin-top: 3rem;
    width: 100%;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Hero Styles */
@media screen and (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 100%;
    }
    
    .image-container {
        width: 280px;
        height: 280px;
        max-width: 90vw;
        margin: 0 auto;
    }
    
    .profile-image {
        object-fit: cover;
        max-width: 100%;
        max-height: 100%;
        border-radius: 2px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .cursor {
        height: 40px;
        top: 5px;
    }
    
    .scroll-down {
        position: absolute;
        top: 100%;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
        margin-top: 10px;
    }
    
    .scroll-down a {
        background-color: rgba(18, 18, 18, 0.8);
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.1rem;
    }
    
    .image-container {
        width: 240px;
        height: 240px;
        border-radius: 20px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* ====== ABOUT SECTION ====== */
.about {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    animation: fadeSimple 1s ease forwards;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.detail {
    background-color: var(--surface);
    border-radius: 0;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    text-align: left;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.detail:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--accent-color);
}

.detail i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

.detail h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.detail p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Mobile About Styles */
@media screen and (max-width: 768px) {
    .about {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .about-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .detail {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .detail i {
        font-size: 1.2rem;
    }
    
    .detail h3 {
        font-size: 1.1rem;
    }
    
    .detail p {
        font-size: 0.9rem;
    }
}

/* ====== EXPERIENCE SECTION ====== */
.experience {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--background);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 1px;
    background-color: #333;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

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

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

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

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

.timeline-content {
    padding: 2rem;
    background: var(--surface);
    position: relative;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--accent-color);
}

/* Clickable timeline items styling */
.clickable-timeline {
    transition: all 0.3s ease;
}

.clickable-timeline .timeline-content {
    cursor: pointer;
}

.clickable-timeline .timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.2);
    border-color: var(--accent-color);
}

.clickable-timeline .timeline-content:hover .company-name {
    color: var(--accent-color);
}

.clickable-timeline .timeline-content:active {
    transform: translateY(-3px);
}

.timeline-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
}

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

.timeline-content ul {
    margin: 1rem 0;
}

.timeline-content ul li {
    margin-bottom: 0.7rem;
    color: var(--text-secondary);
    position: relative;
    line-height: 1.6;
    font-size: 0.9rem;
}

.timeline-item:nth-child(odd) .timeline-content ul li {
    padding-right: 20px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content ul li {
    padding-left: 20px;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--background);
    border: 1px solid var(--accent-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    display: block;
}

.company-name {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
    display: block;
}

/* Mobile Experience Styles - Improved */
@media screen and (max-width: 768px) {
    .experience {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }
    
    .timeline-item::after {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-date {
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(odd) .timeline-content ul li {
        padding-right: 0;
        padding-left: 20px;
        text-align: left;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content ul li {
        font-size: 0.85rem;
    }
    
    .job-title {
        font-size: 1rem;
    }
    
    .company-name {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-content ul li {
        font-size: 0.8rem;
    }
    
    .job-title {
        font-size: 0.95rem;
    }
}

/* ====== PROJECTS SECTION ====== */
.projects {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--background);
}

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

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

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--accent-color);
}

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

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

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

.project-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-tech {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.project-date {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-weight: 400;
}

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

.project-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-content ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0;
    background-color: var(--surface-lighter);
    border: 1px solid var(--border-color);
}

.project-link:hover {
    background-color: var(--accent-color);
    color: var(--background);
    border-color: var(--accent-color);
}

/* Mobile Projects Styles */
@media screen and (max-width: 768px) {
    .projects {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-link {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .project-content h3 {
        font-size: 1rem;
    }
    
    .project-content ul li {
        font-size: 0.85rem;
    }
}

/* ====== SKILLS SECTION ====== */
.skills {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--background);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background-color: var(--surface);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--accent-color);
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border-radius: 0;
    background-color: var(--surface-lighter);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.skill-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Mobile Skills Styles */
@media screen and (max-width: 768px) {
    .skills {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1rem;
    }
    
    .skill-item {
        padding: 0.75rem;
    }
    
    .skill-item i {
        font-size: 1.5rem;
    }
    
    .skill-item span {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

/* ====== CONTACT SECTION ====== */
.contact {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--background);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    background-color: var(--surface);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

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

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

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

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

.contact-item i {
    width: 36px;
    height: 36px;
    background-color: var(--surface-lighter);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin-right: 1rem;
}

.contact-item span {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: var(--surface-lighter);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.3s ease;
}

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

.contact-form {
    background-color: var(--surface);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background-color: var(--surface-lighter);
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

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

.contact-form button {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.9rem;
}

/* Mobile Contact Styles */
@media screen and (max-width: 768px) {
    .contact {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info, 
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item span {
        font-size: 0.85rem;
        word-break: break-word;
    }
}

/* ====== FOOTER ====== */
footer {
    background-color: #0a0a0a;
    color: var(--text);
    padding: 4rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    margin-bottom: 3rem;
}

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

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

.footer-links a {
    color: var(--gray-color);
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: var(--surface-lighter);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    color: var(--background);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Mobile Footer Styles */
@media screen and (max-width: 768px) {
    footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--surface-lighter);
    color: var(--accent-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--accent-color);
    color: var(--background);
    border-color: var(--accent-color);
}

/* Mobile Back to Top */
@media screen and (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
    }
}

/* Burger menu animation */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: #121212;
        border-left: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        padding: 2rem 0;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .burger {
        display: block;
        z-index: 1001;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    /* Navigation Items Styling - Enhanced visibility */
    .nav-links li {
        opacity: 0;
        width: 90%;
        text-align: center;
        margin: 0.5rem 0;
        background-color: #1e1e1e;
        border-radius: 4px;
    }
    
    .nav-links li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
        color: #ffffff !important; /* Force white text */
        border-radius: 4px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    /* Make link background darker for contrast */
    .nav-active .nav-links li {
        opacity: 1;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    /* Add highlight for better visibility */
    .nav-links li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.03);
        z-index: -1;
    }
    
    /* Style navigation items with better contrast */
    .nav-links li a::before {
        content: '';
        position: absolute;
        left: 0;
        width: 4px;
        height: 100%;
        background-color: transparent;
        transition: all 0.3s ease;
    }
    
    .nav-links li a:hover::before,
    .nav-links li a.active::before {
        background-color: var(--accent-color);
    }
    
    .nav-links li a:hover,
    .nav-links li a.active {
        padding-left: 1rem;
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--accent-color) !important;
    }
    
    /* Animation Timing */
    .nav-active .nav-links li:nth-child(1) { animation: navLinkFade 0.5s ease forwards 0.1s; }
    .nav-active .nav-links li:nth-child(2) { animation: navLinkFade 0.5s ease forwards 0.2s; }
    .nav-active .nav-links li:nth-child(3) { animation: navLinkFade 0.5s ease forwards 0.3s; }
    .nav-active .nav-links li:nth-child(4) { animation: navLinkFade 0.5s ease forwards 0.4s; }
    .nav-active .nav-links li:nth-child(5) { animation: navLinkFade 0.5s ease forwards 0.5s; }
    .nav-active .nav-links li:nth-child(6) { animation: navLinkFade 0.5s ease forwards 0.6s; }

    /* Restore other mobile styles */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .stats-container {
        justify-content: center;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .project-link {
        width: 100%;
        justify-content: center;
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Cursor styling - slower blinking */
.cursor {
    display: inline-block;
    width: 3px;
    height: 50px;
    background-color: var(--accent-color);
    margin-left: 6px;
    position: relative;
    top: 10px;
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0; 
    }
}

/* Animation for glowing border */
@keyframes borderGlow {
    0% {
        box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(0, 180, 216, 0.4);
    }
    100% {
        box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
    }
}

@keyframes borderRotate {
    0% {
        border-image-source: linear-gradient(0deg, transparent 50%, var(--accent-color) 50%);
    }
    25% {
        border-image-source: linear-gradient(90deg, transparent 50%, var(--accent-color) 50%);
    }
    50% {
        border-image-source: linear-gradient(180deg, transparent 50%, var(--accent-color) 50%);
    }
    75% {
        border-image-source: linear-gradient(270deg, transparent 50%, var(--accent-color) 50%);
    }
    100% {
        border-image-source: linear-gradient(360deg, transparent 50%, var(--accent-color) 50%);
    }
}

/* Animation for experimental profile image border */
@keyframes rotateHue {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes glitchBorder {
    0%, 100% {
        clip-path: inset(0 0 0 0);
    }
    20% {
        clip-path: inset(0 0 0 3px);
    }
    40% {
        clip-path: inset(3px 0 0 0);
    }
    60% {
        clip-path: inset(0 3px 0 0);
    }
    80% {
        clip-path: inset(0 0 3px 0);
    }
}

/* ====== RESUME SECTION ====== */
.resume {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--background);
}

.resume-content {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.resume-text {
    text-align: center;
    animation: fadeSimple 1s ease forwards;
    width: 100%;
}

.resume-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.resume-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
}

.resume-preview {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.resume-preview:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.resume-preview-img {
    width: 100%;
    height: 450px;
    display: block;
    transition: filter 0.3s ease;
    border: none;
    background-color: white;
}

.resume-preview:hover .resume-preview-img {
    filter: blur(2px) brightness(0.8);
}

.resume-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--primary-color);
}

.resume-preview:hover .resume-preview-overlay {
    opacity: 1;
}

.resume-preview-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.resume-preview-overlay span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Mobile Resume Styles */
@media screen and (max-width: 768px) {
    .resume {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .resume-text p {
        font-size: 1rem;
    }
    
    .resume-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-btn, 
    .resume-actions .secondary-btn {
        width: 100%;
        justify-content: center;
    }
    
    .resume-preview-overlay i {
        font-size: 2.5rem;
    }
    
    .resume-preview-overlay span {
        font-size: 1rem;
    }
}

/* Featured Project Carousel */
.featured-projects-container {
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.featured-heading {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.all-projects-heading {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.project-carousel {
    position: relative;
    margin-bottom: 2rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background-color: var(--surface);
    border: 1px solid var(--border-color);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.featured-project {
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

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

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    box-sizing: border-box;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background-color: rgba(0, 180, 216, 0.8);
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.featured-project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.featured-project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: var(--accent-color);
}

.carousel-button:focus {
    outline: none;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--accent-color);
}

@media screen and (max-width: 768px) {
    .featured-project {
        flex-direction: column;
    }
    
    .featured-project-image {
        height: 200px;
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
    }
    
    .featured-project-content h3 {
        font-size: 1.2rem;
    }
    
    .tech-tags span {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .featured-heading, 
    .all-projects-heading {
        font-size: 1.4rem;
    }
    
    .featured-project-image {
        height: 180px;
    }
    
    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}