/* Global Styles */
:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #38bdf8;
    --dark-color: #0f172a;
    --darker-color: #0a0f1d;
    --light-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
    --gradient-2: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --card-bg: #1e293b;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

/* Cursor Animation */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

/* Navigation */
.navbar {
    padding: 1.2rem 0;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    bottom: 5px;
    right: -12px;
}

/* Navbar toggler styling */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    color: white;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    color: var(--text-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Add navbar collapse styling for mobile */
.navbar-collapse {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: white !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse .nav-link {
        color: var(--dark-color) !important;
        padding: 12px 20px;
        border-radius: 5px;
        margin: 5px 0;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        background: var(--gradient-1);
        color: white !important;
    }

    .navbar-collapse .nav-link::after {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    height: 120vh;
    background: var(--darker-color);
    position: relative;
    overflow: hidden;
    padding-top: 76px;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 50px 0;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-subtitle .line {
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.hero-subtitle .subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: white;
}

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

.hero-title .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    bottom: 5px;
    left: 0;
}

.hero-title .typed-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-buttons .btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

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

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

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

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    display: flex;
    justify-content: center;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

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

.hero-blob {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
}

.hero-blob svg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.profile-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 2;
}

.profile-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 5px;
    background: var(--gradient-1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

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

.floating-card {
    position: absolute;
    padding: 12px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.floating-card i {
    font-size: 24px;
    color: var(--primary-color);
}

.floating-card span {
    color: var(--text-primary);
    font-size: 14px;
}

.card-1 {
    top: 15%;
    left: 5%;
}

.card-2 {
    top: 45%;
    right: 5%;
}

.card-3 {
    bottom: 25%;
    left: 10%;
}

.card-4 {
    top: 25%;
    right: 10%;
}

.card-5 {
    bottom: 15%;
    right: 15%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 991px) {
    .hero-blob {
        width: 400px;
        height: 400px;
    }

    .profile-container {
        width: 220px;
        height: 220px;
    }

    .floating-card {
        padding: 8px 15px;
    }

    .floating-card i {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-blob {
        width: 300px;
        height: 300px;
    }

    .profile-container {
        width: 180px;
        height: 180px;
    }

    .floating-card {
        padding: 6px 12px;
    }

    .floating-card i {
        font-size: 16px;
    }

    .floating-card span {
        font-size: 12px;
    }

    /* Center stat icons in about page */
    .stat-card {
        text-align: center;
    }

    .stat-icon {
        margin: 0 auto 15px;
        justify-content: center;
    }

    .stat-content {
        text-align: center;
    }

    .stat-content h3 {
        justify-content: center;
    }

    .quick-stats .stat-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 25px 15px;
    }

    .quick-stats .stat-icon {
        margin-bottom: 15px;
    }

    .quick-stats .stat-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Center skill icons */
    .skill-icon {
        margin: 0 auto 25px;
    }

    .skill-card {
        text-align: center;
    }

    .skill-info {
        justify-content: center;
    }

    /* Center contact info items */
    .contact-info-item {
        text-align: center;
        align-items: center;
    }

    .contact-info-item .icon-box {
        margin: 0 auto 20px;
    }

    .contact-link {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .contact-info .stat-icon {
        margin: 0 auto 15px;
        justify-content: center;
    }

    .contact-info .stat-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info .stat-content h3 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 5px;
    }

    .contact-info .stat-content p {
        text-align: center;
    }

    .contact-hero .contact-stats {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-hero .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .contact-hero .stat-icon {
        margin: 0 auto 15px;
        justify-content: center;
    }

    .contact-hero .stat-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-hero .stat-content h4 {
        text-align: center;
        margin-bottom: 5px;
    }

    .contact-hero .stat-content p {
        text-align: center;
    }
}

/* Section Styles */
.section-padding {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
    color: var(--text-primary);
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    font-weight: 800;
    opacity: 0.03;
    white-space: nowrap;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* About Section Styles */
.about-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-1);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleY(1);
}

.about-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.about-emoji {
    font-size: 2.5rem;
    animation: wave 2s infinite;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: var(--light-color);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--gradient-1);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.stat-item:hover i {
    color: white;
}

.stat-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.stat-info p {
    color: white;
}

.about-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.about-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeline-wrapper {
    position: relative;
    padding-left: 50px;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-icon {
    position: absolute;
    left: -65px;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.timeline-content {
    position: relative;
}

.timeline-content .date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Skills Section Styles */
.skill-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: var(--light-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    background: var(--gradient-1);
    transform: rotateY(180deg);
}

.skill-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon i {
    color: white;
    transform: rotateY(-180deg);
}

.skill-card h3 {
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 700;
}

.skill-progress {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-info span {
    color: var(--text-primary);
}

.progress {
    height: 8px;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-1);
    transition: width 1s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes wave {

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

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--card-bg);
    border: none;
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    transform: translateY(-3px);
    color: white;
}

/* Project Cards */
.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

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

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.project-preview {
    display: flex;
    gap: 20px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .project-preview {
    transform: translateY(0);
}

.project-preview a {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-preview a:hover {
    background: var(--dark-color);
    color: white;
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
    position: relative;
}

.project-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background: var(--gradient-1);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-tech {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 6px 15px;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Project Item Animation */
.project-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.project-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* View All Projects Button */
.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

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

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient-1);
}

.timeline-item {
    padding: 35px;
    background: var(--card-bg);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    position: relative;
    color: var(--text-primary);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-color);
}

.timeline-item:hover {
    transform: translateX(15px);
    box-shadow: var(--card-hover-shadow);
}

.timeline-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Contact Form */
#contact-form {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

#contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.form-control {
    background: var(--light-color);
    border: 2px solid var(--light-color);
    color: var(--text-primary);
    /* padding: 15px 20px; */
    border-radius: 15px;
    transition: all 0.3s ease;
    /* margin-bottom: 25px; */
}

.form-control:focus {
    background: var(--light-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

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

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

/* Footer */
footer {
    background: var(--darker-color);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.skill-card,
.project-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item {
    animation: slideInLeft 0.6s ease-out forwards;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section Styles */
#contact {
    position: relative;
    overflow: hidden;
}

.contact-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--card-hover-shadow);
}

.contact-info-item:hover::before {
    transform: scaleY(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.contact-info-item:hover .icon-box {
    transform: rotate(0deg);
}

.icon-box i {
    font-size: 1.5rem;
    color: white;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
}

.contact-info-item:hover .icon-box i {
    transform: rotate(0deg);
}

.contact-info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-info-item p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateX(5px);
}

.contact-link i {
    transition: transform 0.3s ease;
}

.contact-link:hover i {
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

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

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    z-index: 1;
}

.input-group-text {
    background: var(--light-color);
    border: none;
    color: var(--text-secondary);
    border-radius: 10px 0 0 10px;
    padding: 12px;
}

.form-control {
    flex: 1;
    border: 2px solid var(--light-color);
    /* border-radius: 0 10px 10px 0; */
    /* padding: 12px; */
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    text-align: right;
    position: relative;
    z-index: 2;
}

.form-submit button {
    padding: 12px 30px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    background: var(--gradient-1);
    border: none;
    color: white;
    border-radius: 10px;
}

.form-submit button:hover {
    transform: translateY(-2px);
}

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

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

.contact-shapes .shape {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
}

.shape-1 {
    top: 20%;
    left: -100px;
    width: 200px;
    height: 200px;
    background: var(--gradient-1);
}

.shape-2 {
    bottom: 20%;
    right: -100px;
    width: 200px;
    height: 200px;
    background: var(--gradient-2);
}

.shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(120px);
    opacity: 0.1;
}

@media (max-width: 991px) {
    .contact-info {
        margin-bottom: 40px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-header h3 {
        font-size: 1.8rem;
    }

    .contact-info-item {
        padding: 20px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }
}

/* Footer Styles */
.footer {
    background: var(--darker-color);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.footer-top {
    padding: 80px 0 40px;
    position: relative;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-info p {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

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

.footer-links h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-1);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links ul li a::before {
    content: '→';
    margin-right: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--text-primary);
    transform: translateX(10px);
}

.footer-newsletter h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-1);
}

.footer-newsletter p {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.newsletter-form .input-group {
    background: var(--light-color);
    padding: 5px;
    border-radius: 30px;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: white;
    /* padding: 10px 20px; */
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    padding: 10px 20px;
    border-radius: 25px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
}

.credits {
    color: rgba(255, 255, 255, 0.8);
}

.credits i {
    color: #ff4d6d;
    margin: 0 5px;
}

.credits a {
    color: white;
    text-decoration: none;
}

@media (max-width: 991px) {
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--darker-color) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--light-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Experience Section Styles */
.experience-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.experience-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.exp-tab {
    padding: 15px 30px;
    background: var(--card-bg);
    border: none;
    border-radius: 15px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exp-tab i {
    font-size: 1.2rem;
}

.exp-tab:hover,
.exp-tab.active {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

.experience-content {
    position: relative;
}

.exp-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.exp-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.exp-timeline {
    position: relative;
    padding-left: 50px;
}

.exp-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: var(--card-hover-shadow);
}

.timeline-marker {
    position: absolute;
    left: -65px;
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 5px var(--card-bg);
}

.timeline-header {
    margin-bottom: 20px;
}

.timeline-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.company {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--light-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.timeline-description p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.key-achievements {
    background: var(--light-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.key-achievements h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.key-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-achievements li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.key-achievements li i {
    color: var(--accent-color);
    margin-top: 5px;
}

.timeline-content .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack span {
    padding: 5px 15px;
    background: var(--light-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .experience-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .exp-tab {
        width: 100%;
        justify-content: center;
    }

    .timeline-item {
        margin-left: 20px;
    }

    .timeline-marker {
        left: -30px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

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

    .section-title::before {
        font-size: 5rem;
    }

    .floating-card {
        transform: scale(0.9);
    }
}

@media (max-width: 991px) {
    .hero-section {
        height: auto;
        padding: 120px 0;
    }

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

    .hero-content {
        text-align: center;
        margin-bottom: 50px;
    }

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

    .hero-scroll {
        display: none;
    }

    .section-padding {
        padding: 80px 0;
    }

    .about-card {
        margin-bottom: 30px;
    }

    .skill-card {
        margin-bottom: 30px;
    }

    .project-filters {
        padding: 0 20px;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

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

    .section-title::before {
        font-size: 4rem;
    }

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

    .about-actions {
        flex-direction: column;
    }

    .timeline-wrapper {
        padding-left: 30px;
    }

    .project-card {
        margin-bottom: 30px;
    }

    .contact-form-wrapper {
        margin-top: 30px;
    }
}

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

    .hero-subtitle .subtitle {
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .about-card,
    .skill-card,
    .project-card,
    .contact-form-wrapper {
        padding: 20px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .timeline-content h4 {
        font-size: 1.2rem;
    }

    .footer-top {
        padding: 60px 0 30px;
    }

    .footer-logo {
        font-size: 1.8rem;
    }

    .footer-links h4,
    .footer-newsletter h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

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

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

    .section-title::before {
        font-size: 3rem;
    }

    .project-preview a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .contact-info-item {
        padding: 15px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Additional Responsive Fixes */
@media (hover: none) {
    .project-overlay {
        opacity: 1;
        background: rgba(99, 102, 241, 0.8);
    }

    .project-preview {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fix for devices with notches */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}