@media (hover: none) {
    .nav-link,
    .btn,
    .social-link,
    .floating-tech-icon {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem;
    }
}
/* Portfolio Color Variables */
:root {
    --primary: #6d28d9; /* Deep purple */
    --accent: #38bdf8;  /* Sky blue */
    --navbar-bg: #18181b;
    --navbar-link: #e0e7ef;
    --navbar-link-hover: #38bdf8;
}

:root {
    --primary: rgba(147, 51, 234, 0.9);    /* Purple */
    --secondary: rgba(96, 165, 250, 0.9);  /* Light Blue */
    --accent: rgba(236, 72, 153, 0.9);     /* Pink */
    --background: rgba(17, 24, 39, 0.95);  /* Dark background */
    --text: rgba(255, 255, 255, 0.9);      /* White text */
    --card-bg: rgba(31, 41, 55, 0.7);      /* Dark card background */
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --light-blue: rgba(191, 219, 254, 0.9); /* Very Light Blue */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(147, 51, 234, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(236, 72, 153, 0.1);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 80%;
}


/* Hamburger/Menu Toggle Icon for Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 1002;
    margin-left: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95));
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 3;
    padding: 2rem;
    max-width: 800px;
    background: rgba(17, 24, 39, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(147, 51, 234, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Achievement Badges */
.achievement-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Skill Groups */
.skills-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.skill-group h3 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.skill-tags {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Project Metrics */
.project-metrics {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.metric {
    background: rgba(96, 165, 250, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
}
.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Social Links */
.social-links {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 3;
}

.social-link {
    color: var(--text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Floating Tech Icons */
.floating-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-tech-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

/* Position each icon with new coordinates */
.floating-tech-icon.python {
    top: 10%;
    left: 5%;
    animation: float1 8s ease-in-out infinite;
}

.floating-tech-icon.tensorflow {
    top: 15%;
    right: 5%;
    animation: float2 9s ease-in-out infinite;
}

.floating-tech-icon.ml {
    top: 45%;
    left: 5%;
    animation: float3 7s ease-in-out infinite;
}

.floating-tech-icon.data {
    top: 30%;
    right: 5%;
    animation: float4 10s ease-in-out infinite;
}

.floating-tech-icon.flask {
    top: 60%;
    right: 5%;
    animation: float5 8s ease-in-out infinite;
}

.floating-tech-icon.nlp {
    top: 75%;
    left: 5%;
    animation: float6 9s ease-in-out infinite;
}

.floating-tech-icon:hover {
    opacity: 1;
    transform: scale(1.2);
    background: var(--gradient);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Update floating animations with larger movements */
@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-35px) rotate(-5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-45px) rotate(3deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-38px) rotate(-3deg); }
}

@keyframes float5 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-42px) rotate(4deg); }
}

@keyframes float6 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-37px) rotate(-4deg); }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Typing Effect */
.typing-effect {
    border-right: 2px solid var(--accent);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Floating social icons */
.floating-social {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 1;
}

.floating-social:hover {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

.floating-social.linkedin {
    top: 20%;
    left: 10%;
    animation: floatLinkedIn 8s ease-in-out infinite;
}

.floating-social.github {
    top: 60%;
    right: 15%;
    animation: floatGitHub 10s ease-in-out infinite;
}

.floating-social.kaggle {
    bottom: 20%;
    left: 20%;
    animation: floatKaggle 9s ease-in-out infinite;
}

@keyframes floatLinkedIn {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(0, -40px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes floatGitHub {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
    50% {
        transform: translate(0, 40px) rotate(0deg);
    }
    75% {
        transform: translate(20px, 20px) rotate(5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes floatKaggle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -10px) rotate(5deg);
    }
    50% {
        transform: translate(0, -30px) rotate(0deg);
    }
    75% {
        transform: translate(-30px, -10px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--light-blue));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--light-blue));
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(147, 51, 234, 0.3);
}

/* About Section */
.about {
    position: relative;
    padding: 6rem 2rem;
    background: var(--background);
    z-index: 1;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.about-image {
    text-align: center;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    object-fit: cover;
    border: 5px solid var(--gradient);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.about-text p {
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* Skills Section */
.skills {
    padding: 6rem 2rem;
    background: var(--background);
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.skill-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Skill Icons */
.skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.skill-icon:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-icon i {
    font-size: 1.5rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.skill-icon:hover i {
    color: var(--text);
    transform: scale(1.1);
}

.skill-icon .unicode-icon,
.skill-icon .icon-text {
    font-size: 1.5rem;
}

.skill-icon .icon-text {
    font-weight: bold;
    color: var(--text);
}

/* Success Page Styles */
.success-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--background);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
/* Tooltip */
.skill-icon[data-tooltip] {
    position: relative;
}

.skill-icon[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--background);
    color: var(--text);
    font-size: 0.9rem;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-icon[data-tooltip]:after {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--background) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.skill-icon[data-tooltip]:hover:before,
.skill-icon[data-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Skill Bar */
.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-item {
        padding: 1.5rem;
    }

    .skill-icons {
        gap: 0.8rem;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
    }

    .skill-icon .unicode-icon,
    .skill-icon .icon-text {
        font-size: 1.2rem;
    }
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: rgba(17, 24, 39, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.project-image:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.project-image:hover img {
    transform: scale(1.1);
}

.project-image::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.project-image:hover::after {
    bottom: 10px;
    opacity: 1;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-overlay span {
    transform: translateY(0);
}

.project-card:hover .project-image i {
    transform: scale(1.2);
    color: var(--accent);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.8rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--primary), var(--light-blue));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: justify;
}

.project-tech {
    margin: 1rem 0;
}

.tech-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 20px;
    margin: 0.3rem;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(96, 165, 250, 0.25);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.github-link {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.github-link i {
    font-size: 1.5rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.github-link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.github-link:hover i {
    color: white;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--gradient);
    border: 1px solid var(--gradient);
}

.project-link:hover {
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: rgba(31, 41, 55, 0.5);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--light-blue));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--light-blue);
}

.contact-item span {
    color: var(--text);
    font-size: 1.1rem;
}

.contact .social-links {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    transform: none;
    left: auto;
    bottom: auto;
}

.contact .social-link {
    color: var(--text);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact .social-link:hover {
    color: var(--accent);
    transform: translateY(-5px);
    background: var(--gradient);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--light-blue));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

/* Footer */
footer {
    background: rgba(17, 24, 39, 0.9);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

.click-tooltip {
    position: fixed;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 1000;
    animation: fadeInUp 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skill-icon.active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.skill-icon.active i {
    color: white;
}


/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.ai-node {
    width: 100px;
    height: 100px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.data-cube {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    transform: rotate(45deg);
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.neural-circle {
    width: 120px;
    height: 120px;
    border: 4px solid var(--accent);
    border-radius: 50%;
    top: 30%;
    right: 25%;
    animation-delay: -10s;
}

.floating-icons .floating-icon {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, color 0.3s ease;
}

.floating-icons .floating-icon:hover {
    transform: scale(1.2);
    color: var(--primary);
}

.floating-icons .floating-icon i {
    font-size: 2rem;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-icons-container {
        gap: 2rem;
        transform: scale(0.9);
    }

    .floating-tech-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .skill-icons {
        gap: 1rem;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 992px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-info {
        margin-bottom: 2rem;
    }

    .floating-icons-container {
        gap: 1.5rem;
        transform: scale(0.8);
    }

    .floating-tech-icon {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
    }

    .skill-icons {
        gap: 0.8rem;
    }

    .skill-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .floating-shapes .shape {
        width: 100px;
        height: 100px;
    }

    .floating-icons-container {
        gap: 1rem;
        transform: scale(0.7);
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90%;
        margin: 0 auto;
    }

    .floating-tech-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .skill-icons {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .skill-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .skill-item h3 {
        font-size: 1.2rem;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .contact-info-item {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Add smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Improve touch targets for mobile */
@media (hover: none) {
    .nav-link,
    .btn,
    .social-link,
    .floating-tech-icon {
        padding: 0.5rem;
        min-height: 44px;
        min-width: 44px;
    }
}

/* Add menu toggle button styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Improve form elements on mobile */
@media screen and (max-width: 768px) {
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Improve icon hover effects for touch devices */
@media (hover: none) {
    .floating-tech-icon:active,
    .skill-icon:active,
    .social-link:active {
        transform: scale(0.95);
    }
}

/* Adjust icon tooltips for mobile */
@media screen and (max-width: 768px) {
    .skill-icon[data-tooltip]:hover::after {
        display: none;
    }

    .skill-icon[data-tooltip]:active::after {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary);
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 14px;
        white-space: nowrap;
        z-index: 1000;
    }
}

/* Improve icon accessibility */
.floating-tech-icon,
.skill-icon,
.social-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Add subtle animation for icon interactions */
@media (hover: hover) {
    .floating-tech-icon:hover,
    .skill-icon:hover,
    .social-link:hover {
        transform: translateY(-3px);
        transition: transform 0.2s ease;
    }
}

/* Thank You Page Styles */
.thank-you-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.thank-you-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.thank-you-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.thank-you-container .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.thank-you-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
