/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    position: relative;
    overflow-x: hidden;
    /* Remove this line: cursor: url('cursor.png'), auto; */
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #2d3e50;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(78, 84, 200, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.primary-btn {
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.4);
}

.secondary-btn {
    background: transparent;
    color: #4e54c8;
    border: 2px solid #4e54c8;
    position: relative;
    z-index: 1;
}

.secondary-btn:hover {
    background: rgba(78, 84, 200, 0.1);
    transform: translateY(-3px);
    color: #3a40a0;
}

.small-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(78, 84, 200, 0.2);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #4e54c8;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(78, 84, 200, 0.1), rgba(143, 148, 251, 0.1));
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(78, 84, 200, 0.05), rgba(143, 148, 251, 0.05));
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #2d3e50;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-image-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

.about-content p {
    margin-bottom: 20px;
}

/* Projects Section */
.projects {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(78, 84, 200, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(78, 84, 200, 0.1);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-image {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 15px 15px 0;
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2d3e50;
}

.project-info p {
    color: #666;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags span {
    background-color: rgba(78, 84, 200, 0.1);
    color: #4e54c8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 84, 200, 0.1);
}

.project-tags span:hover {
    background-color: rgba(78, 84, 200, 0.2);
    transform: translateY(-2px);
}

/* Skills Section */
.skills {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 90%, rgba(78, 84, 200, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skills-category h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #2d3e50;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    background-color: #f8f9fa;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    pointer-events: auto;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(78, 84, 200, 0.1);
    background-color: white;
}

.skill-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.1);
}

.skill-item span {
    font-weight: 500;
    color: #555;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 90%, rgba(78, 84, 200, 0.05) 0%, transparent 60%);
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4e54c8;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(78, 84, 200, 0.1);
    border-radius: 50%;
}

.contact-item span {
    font-size: 1.1rem;
    color: #555;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4e54c8;
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    cursor: pointer;
    pointer-events: auto;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(78, 84, 200, 0.4);
}

.contact::before {
    z-index: 0;
    pointer-events: none;
}

.contact-form-container {
    background-color: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) inset;
    background-color: white;
    position: relative;
    z-index: 2;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4e54c8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

#formStatus {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
}

.checkContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    border-radius: 50px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    transition: all 0.3s ease;
}

.checkContainer button {
    margin: 0 5px;
    border-radius: 20px;
    width: max-content;
    height: max-content;
    padding: 10px;
    border: none;
    background-color: white;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Footer */
footer {
    background-color: #2d3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1000;
    }
    
    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .contact-form-container {
        padding: 25px 20px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .profile-image-container {
        width: 220px;
        height: 220px;
    }
    
    .project-card {
        min-width: 100%;
    }
    
    .project-image img {
        height: auto;
        max-height: 200px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .about-content {
        font-size: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .contact-item span {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .profile-image-container {
        width: 180px;
        height: 180px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
    }
    
    .contact-item i {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .contact-container {
        width: 100%;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

a {
    text-decoration: none;
}