/* Global Styles */
:root {
    --primary-color: #2a9d8f;
    --secondary-color: #264653;
    --accent-color: #e9c46a;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.toggle-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.toggle-active span:nth-child(2) {
    opacity: 0;
}

.toggle-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        z-index: 1000;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.3s ease;
    }

    .nav-active {
        right: 0;
    }

    .nav-active a {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.3s;
    }

    /* Add overlay */
    .nav-active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
}

#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.highlight {
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom right, rgba(42, 157, 143, 0.05), rgba(233, 196, 106, 0.05));
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

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

.intro {
    font-size: 1.1rem;
    font-weight: 500;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.philosophy {
    font-style: italic;
    color: var(--secondary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.about-cta {
    display: flex;
    margin-top: 2rem;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image:hover img {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(42, 157, 143, 0.2);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    padding: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    -webkit-mask-clip: content-box;
    mask-clip: content-box;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.about-image:hover::before {
    opacity: 0.7;
    transform: translateY(-5px);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        padding-right: 0;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .experience-badge {
        right: 20px;
    }
}

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

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Projects Section */
.projects {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom right, rgba(42, 157, 143, 0.05), rgba(233, 196, 106, 0.05));
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.project-card {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: perspective(1000px) translateZ(0);
    opacity: 0;
    transform: translateY(50px);
    will-change: transform;
    backface-visibility: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(42, 157, 143, 0.1),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
    pointer-events: none;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(233, 196, 106, 0.4),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
    pointer-events: none;
}

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 15px 15px 0 0;
    padding: 0.5rem 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.project-card:hover .project-image {
    transform: translateZ(20px);
}

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

.project-content {
    position: relative;
    z-index: 5;
    pointer-events: auto;
    padding: 1.5rem;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-content {
    transform: translateZ(30px);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.tech-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-radius: 20px;
    background: rgba(42, 157, 143, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(42, 157, 143, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.tech-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        45deg,
        rgba(42, 157, 143, 0.5),
        rgba(233, 196, 106, 0.5)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    -webkit-mask-clip: content-box;
    mask-clip: content-box;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.tech-tag:hover {
    transform: translateY(-2px);
    background: rgba(42, 157, 143, 0.25);
    box-shadow: 0 4px 8px rgba(42, 157, 143, 0.2);
    color: #238477;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tech-tag {
        background: rgba(42, 157, 143, 0.2);
        color: #4fd1c5;
        border-color: rgba(42, 157, 143, 0.4);
    }
    
    .tech-tag:hover {
        background: rgba(42, 157, 143, 0.3);
        color: #68e5d5;
    }
}

/* Ensure tech tags are visible on mobile */
@media (max-width: 768px) {
    .project-tech {
        gap: 0.6rem;
        margin: 1rem 0;
    }
    
    .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Remove floating animation for better mobile experience */
@media (max-width: 768px) {
    .tech-tag {
        animation: none;
    }
}

.project-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.project-content p {
    color: var(--text-color);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-links {
    position: relative;
    z-index: 20;
    pointer-events: auto;
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.project-link {
    position: relative;
    z-index: 20;
    pointer-events: auto !important;
    cursor: pointer !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    transform-style: flat;
    perspective: none;
}

.project-link.live-demo {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 100;
}

.project-link.github {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.1);
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 100;
}

.project-link:hover {
    transform: translateY(-3px) !important;
}

.project-link.live-demo:hover {
    background: #238477;
    box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
}

.project-link.github:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(42, 157, 143, 0.3);
}

.project-link:active {
    transform: translateY(-1px) !important;
}

.project-link i {
    font-size: 1.2rem;
    pointer-events: none;
}

/* Make sure links are clickable on mobile */
@media (max-width: 768px) {
    .project-links {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .project-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
        width: auto;
        justify-content: center;
    }
}

/* Ensure links work with 3D transforms */
.project-card {
    transform-style: preserve-3d;
}

.project-content {
    transform-style: preserve-3d;
}

.project-links {
    transform-style: preserve-3d;
    transform: translateZ(1px);
}

/* Shimmer effect for project cards */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.project-card::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite linear;
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    z-index: 1;
    pointer-events: none;
}

/* Floating animation for tech tags */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.tech-tag {
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(var(--tag-index) * 0.1s);
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 3rem 1rem;
    }
    
    .project-image {
        height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* Profile Image */
.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(42, 157, 143, 0.3);
    animation: fadeInUp 0.6s ease forwards;
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(42, 157, 143, 0.5);
}

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

/* Tech Stack Section */
.tech-stack {
    padding: 5rem 2rem;
    background-color: var(--bg-color);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tech-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
}

.tech-category h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.tech-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.tech-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1);
}

.tech-item span {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-stack {
        padding: 4rem 1rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .tech-item {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }

    .tech-item i {
        margin-bottom: 0.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: white;
}

.contact h2 {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 3rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(42, 157, 143, 0.2);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(42, 157, 143, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.info-content h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #666;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    padding: 0 0.5rem;
    color: #666;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.1);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    background: white;
    padding: 0 0.5rem;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.2);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Update mobile styles for form */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.95rem;
        top: 1rem;
    }

    .form-group input:focus + label,
    .form-group textarea:focus + label,
    .form-group input:not(:placeholder-shown) + label,
    .form-group textarea:not(:placeholder-shown) + label {
        font-size: 0.8rem;
    }

    .submit-btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
        top: 0.9rem;
    }

    .submit-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* Map Container */
.map-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(42, 157, 143, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    display: block;
    border-radius: 15px;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 4rem 1.5rem;
    }

    .contact h2 {
        font-size: 1.8rem;
    }

    .contact-item {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .contact-item i {
        font-size: 1.5rem;
        padding: 0.8rem;
    }

    .info-content h3 {
        font-size: 1.1rem;
    }

    .info-content p {
        font-size: 0.95rem;
    }

    .map-container iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 3rem 1rem;
    }

    .contact h2 {
        font-size: 1.6rem;
    }

    .contact-container {
        gap: 2rem;
    }

    .contact-item {
        padding: 1rem;
        gap: 1rem;
    }

    .contact-item i {
        font-size: 1.3rem;
        padding: 0.7rem;
    }

    .info-content h3 {
        font-size: 1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }

    .map-container {
        margin: 0.5rem 0;
    }

    .map-container iframe {
        height: 200px;
    }
}

/* Skills Section */
.skills {
    padding: 5rem 2rem;
    background: white;
}

.skills h2 {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 3rem;
}

.skills h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.skill-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(42, 157, 143, 0.05));
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(42, 157, 143, 0.2);
}

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

.skill-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.skill-card:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.skill-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills {
        padding: 4rem 1rem;
    }

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

    .skill-card {
        padding: 2rem 1rem;
    }

    .skill-card i {
        font-size: 3rem;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: white;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
}

.map-container iframe {
    border-radius: 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 1rem;
    }

    .contact-container {
        gap: 1.5rem;
    }

    .contact-item {
        padding: 0.8rem;
    }

    .contact-item i {
        font-size: 1.2rem;
    }

    .info-content h3 {
        font-size: 1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }

    .map-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 2rem 1rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .contact-item i {
        margin-bottom: 0.5rem;
    }

    .map-container {
        height: 200px;
    }
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-center h3,
.footer-right h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-center h3::after,
.footer-right h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    padding: 0.3rem 0;
}

.footer-nav a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-email i {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom i {
    color: #ff6b6b;
    margin: 0 0.2rem;
}

/* Responsive Footer */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-left {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-left img {
        margin: 0 auto;
    }

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

    .footer-email {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-center h3::after,
    .footer-right h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-nav {
        align-items: center;
    }

    .footer-nav a {
        text-align: center;
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .hero p {
        font-size: 1.2rem;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

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

.animate-text {
    animation: fadeInUp 0.6s ease forwards;
}

h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
}

/* Map Container */
.map-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(42, 157, 143, 0.2);
}

.map-container iframe {
    display: block;
    border-radius: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-container {
        margin: 0.5rem 0;
    }
    
    .map-container iframe {
        height: 200px;
    }
}
