/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0a;
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.tech-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.tech-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    color: rgba(64, 224, 208, 0.6);
    transform: scale(1.2);
}

/* Special styling for Vue icon */
.tech-icon .fa-vuejs {
    color: rgba(65, 184, 131, 0.7) !important;
    text-shadow: 0 0 10px rgba(65, 184, 131, 0.3);
}

.tech-icon:hover .fa-vuejs {
    color: rgba(65, 184, 131, 1) !important;
    text-shadow: 0 0 15px rgba(65, 184, 131, 0.6);
}

/* Special styling for other popular icons */
.tech-icon .fa-react {
    color: rgba(97, 218, 251, 0.4) !important;
}

.tech-icon:hover .fa-react {
    color: rgba(97, 218, 251, 0.8) !important;
}

.tech-icon:nth-child(odd) {
    animation-direction: reverse;
}

.tech-icon:nth-child(2n) {
    animation-delay: -2s;
}

.tech-icon:nth-child(3n) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-40px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #40e0d0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    background: linear-gradient(45deg, rgba(64, 224, 208, 0.1), rgba(0, 206, 209, 0.1));
    animation: pulse-glow 2s infinite alternate;
    display: flex;
    align-items: center;
    gap: 2px;
}

.brand-text {
    transition: all 0.3s ease;
}

.brand-cursor {
    font-weight: 300;
    animation: blink 1s infinite;
    opacity: 0.7;
}

.nav-brand:hover {
    transform: scale(1.1) rotate(-2deg);
    color: #00ced1;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.4);
    background: linear-gradient(45deg, rgba(64, 224, 208, 0.2), rgba(0, 206, 209, 0.2));
}

.nav-brand:hover .brand-cursor {
    color: #00ced1;
    animation: blink 0.5s infinite;
}

.nav-brand::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #40e0d0, #00ced1, #20b2aa, #48cae4);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate-border 3s linear infinite;
}

.nav-brand:hover::before {
    opacity: 0.7;
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 5px rgba(64, 224, 208, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(64, 224, 208, 0.6), 0 0 25px rgba(64, 224, 208, 0.3);
    }
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: #40e0d0;
    background: rgba(64, 224, 208, 0.1);
}

.nav-menu a.active {
    color: #40e0d0;
    background: rgba(64, 224, 208, 0.15);
    box-shadow: 0 0 10px rgba(64, 224, 208, 0.2);
}

.nav-menu a.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #40e0d0, #00ced1);
    border-radius: 1px;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    color: #fff;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: #40e0d0;
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #40e0d0, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #40e0d0, #00ced1);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(64, 224, 208, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #40e0d0;
    border-color: #40e0d0;
}

.btn-secondary:hover {
    background: #40e0d0;
    color: #0a0a0a;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #40e0d0, #00ced1);
}

/* About Section */
.about {
    background: rgba(255, 255, 255, 0.02);
}

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

.about-text h3 {
    color: #40e0d0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #aaa;
}

.contact-item i {
    color: #40e0d0;
    width: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(64, 224, 208, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: #40e0d0;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #40e0d0, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    text-align: right;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    text-align: left;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: #40e0d0;
    border-radius: 50%;
    border: 3px solid #0a0a0a;
    z-index: 1;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.timeline-content h3 {
    color: #40e0d0;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

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

.timeline-content li {
    color: #ccc;
    margin-bottom: 0.5rem;
    list-style-position: inside;
}

/* Mobile Horizontal Timeline */
.horizontal-timeline {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.horizontal-timeline-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #40e0d0, rgba(64, 224, 208, 0.3), #40e0d0);
    z-index: 1;
}

.horizontal-timeline-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.horizontal-timeline-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.horizontal-timeline-track.touching {
    transition: none;
}

.timeline-card {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    padding: 0 1rem;
    box-sizing: border-box;
}

.timeline-card-marker {
    position: relative;
    width: 15px;
    height: 15px;
    background: #40e0d0;
    border-radius: 50%;
    border: 3px solid #0a0a0a;
    margin: 0 auto 2rem auto;
    z-index: 2;
    top: 33px;
}

.timeline-card-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    margin-top: 2rem;
}

.timeline-card-content h3 {
    color: #40e0d0;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-card-content h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-card .timeline-date {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

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

.timeline-card-content li {
    color: #ccc;
    margin-bottom: 0.4rem;
    list-style-position: inside;
    font-size: 0.9rem;
}

/* Desktop/Mobile Timeline Toggle */
.desktop-timeline {
    display: block;
}

.mobile-timeline {
    display: none;
}

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

.tech-tag {
    background: rgba(64, 224, 208, 0.2);
    color: #40e0d0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(64, 224, 208, 0.3);
}

/* Skills Section */
.skills {
    background: rgba(255, 255, 255, 0.02);
}

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

/* Carousel Structure */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Disable transition during touch for smoother experience */
.carousel-track.touching {
    transition: none;
}

.carousel-slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Mobile carousel functionality */
@media (max-width: 768px) {
    .skills-grid {
        display: none;
    }
    
    .carousel-container {
        display: block;
    }
}

@media (min-width: 769px) {
    .carousel-container {
        display: none;
    }
    
    .skills-grid {
        display: grid;
    }
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

/* Mobile carousel functionality for skill categories */
@media (max-width: 768px) {
    .skill-category.carousel-slide {
        padding: 1.5rem;
        margin: 0;
    }
    
    .skill-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .skill-category.carousel-slide {
        padding: 1.5rem;
    }
    
    .skill-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

.skill-category h3 {
    color: #40e0d0;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(64, 224, 208, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Mobile optimization for skill items */
@media (max-width: 768px) {
    .skill-item {
        padding: 0.8rem;
        min-height: 100px;
        justify-content: center;
    }
    
    .skill-item i {
        font-size: 1.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .skill-item span {
        font-size: 0.8rem !important;
        text-align: center;
    }
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(64, 224, 208, 0.2);
}

.skill-item i {
    font-size: 2rem;
    color: #40e0d0;
    margin-bottom: 0.5rem;
}

.skill-item span {
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
}

/* Integrations Section */
.integrations {
    background: rgba(255, 255, 255, 0.02);
    padding: 5rem 0;
    min-height: auto;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
    grid-auto-rows: auto;
}

/* Mobile carousel for integrations */
@media (max-width: 768px) {
    .integrations-grid {
        display: none;
    }
    
    .integrations .carousel-container {
        display: block;
    }
    
    .integrations .carousel-wrapper {
        min-height: auto;
        height: auto;
    }
    
    .integrations .carousel-slide {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 70vh;
    }
}

@media (min-width: 769px) {
    .integrations .carousel-container {
        display: none;
    }
    
    .integrations-grid {
        display: grid;
    }
}

.integration-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: auto;
    height: auto;
}

/* Mobile carousel functionality for integration categories */
@media (max-width: 768px) {
    .integration-category.carousel-slide {
        padding: 1.5rem;
        margin: 0;
        max-width: 100%;
        overflow: visible;
        box-sizing: border-box;
        height: auto;
        min-height: 70vh;
    }
    
    .integration-items {
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
        width: 100%;
        flex: 1;
    }
    
    .integration-item {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }
    
    .integration-info h4 {
        font-size: 0.9rem;
    }
    
    .integration-info p {
        font-size: 0.8rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .integration-logo {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .integration-logo i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .integration-category.carousel-slide {
        padding: 1rem;
        max-width: 100%;
        overflow: visible;
        box-sizing: border-box;
        height: auto;
        min-height: 70vh;
    }
    
    .integration-header h3 {
        font-size: 1.1rem;
    }
    
    .integration-items {
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
        width: 100%;
    }
    
    .integration-item {
        padding: 0.75rem;
        margin-bottom: 0.6rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .integration-info h4 {
        font-size: 0.85rem;
    }
    
    .integration-info p {
        font-size: 0.75rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .integration-logo {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }
    
    .integration-logo i {
        font-size: 0.9rem;
    }
}
    
    .integration-icon {
        width: 40px;
        height: 40px;
    }
    
    .integration-icon i {
        font-size: 1.2rem;
    }
    
    .integration-items {
        max-height: 55vh;
    }
    
    .integration-item {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .integration-info h4 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .integration-info p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .integration-logo {
        width: 30px;
        height: 30px;
    }
    
    .integration-logo i {
        font-size: 0.9rem;
    }
}

.integration-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(64, 224, 208, 0.1);
}

.integration-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
}

.integration-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #40e0d0, #00ced1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.integration-header h3 {
    color: #40e0d0;
    font-size: 1.4rem;
    margin: 0;
}

.integration-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: visible;
    flex: 1;
    padding-right: 10px;
}

/* Mobile specific adjustments for integration content */
@media (max-width: 768px) {
    .integration-items {
        gap: 1rem;
        flex: 1;
        overflow-y: visible;
        padding-right: 5px;
        max-height: none;
    }
    
    .integration-items::-webkit-scrollbar {
        width: 3px;
    }
    
    .integration-items::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    .integration-items::-webkit-scrollbar-thumb {
        background: #40e0d0;
        border-radius: 2px;
    }
}

/* Desktop scrollbar styles for integration items */
@media (min-width: 769px) {
    .integration-category {
        height: auto;
        min-height: 400px;
    }
    
    .integration-items {
        overflow-y: visible;
        max-height: none;
    }
    
    .integration-items::-webkit-scrollbar {
        width: 6px;
    }
    
    .integration-items::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }
    
    .integration-items::-webkit-scrollbar-thumb {
        background: #40e0d0;
        border-radius: 3px;
    }
    
    .integration-items::-webkit-scrollbar-thumb:hover {
        background: #00ced1;
    }
}

.integration-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(64, 224, 208, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(64, 224, 208, 0.1);
    transition: all 0.3s ease;
    min-height: 0;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.integration-item:hover {
    background: rgba(64, 224, 208, 0.1);
    border-color: rgba(64, 224, 208, 0.3);
}

.integration-logo {
    width: 40px;
    height: 40px;
    background: rgba(64, 224, 208, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.integration-logo i {
    font-size: 1.2rem;
    color: #40e0d0;
}

.integration-info {
    flex: 1;
    min-width: 0;
}

.integration-info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.integration-info p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Mobile carousel for projects */
@media (max-width: 768px) {
    .projects-grid {
        display: none;
    }
    
    .projects .carousel-container {
        display: block;
    }
}

@media (min-width: 769px) {
    .projects .carousel-container {
        display: none;
    }
    
    .projects-grid {
        display: grid;
    }
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

/* Mobile carousel functionality for project cards */
@media (max-width: 768px) {
    .project-card.carousel-slide {
        padding: 1.5rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .project-card.carousel-slide {
        padding: 1.5rem;
    }
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(64, 224, 208, 0.1);
}

.project-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, #40e0d0, #00ced1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.project-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* Contact Section */
.contact {
    background: rgba(255, 255, 255, 0.02);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-section h3 {
    color: #40e0d0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ccc;
    text-decoration: none;
    padding: 1rem;
    background: rgba(64, 224, 208, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(64, 224, 208, 0.2);
    color: #40e0d0;
}

.contact-method i {
    color: #40e0d0;
    width: 20px;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #40e0d0;
    box-shadow: 0 0 0 2px rgba(64, 224, 208, 0.2);
}

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

.form-group input.error,
.form-group textarea.error {
    border-color: #ff6b6b;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

.submit-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.submit-message.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.submit-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(64, 224, 208, 0.2);
}

.footer p {
    color: #aaa;
}

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

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
    position: relative;
}

.carousel-btn {
    background: transparent;
    border: none;
    color: #40e0d0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-50%) scale(1.2);
    text-shadow: 0 4px 8px rgba(64, 224, 208, 0.4);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%);
    color: #40e0d0;
}

/* Position carousel buttons in the middle of the carousel wrapper */
@media (max-width: 768px) {
    .carousel-wrapper {
        position: relative;
    }
    
    .carousel-controls {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        pointer-events: none;
        z-index: 5;
    }
    
    .carousel-btn {
        pointer-events: all;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .carousel-btn.prev {
        left: 15px;
    }
    
    .carousel-btn.next {
        right: 15px;
    }
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(64, 224, 208, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: #40e0d0;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(64, 224, 208, 0.6);
}

/* Mobile-only elements */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .name {
        font-size: 2.5rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .timeline::before {
        display: none;
    }
    
    .desktop-timeline {
        display: none;
    }
    
    .mobile-timeline {
        display: block;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        padding-left: 3rem;
        padding-right: 1rem;
    }

    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional Mobile Overflow Prevention */
@media (max-width: 768px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .carousel-wrapper {
        max-width: 100vw;
        width: 100%;
    }
    
    .skill-category, 
    .integration-category, 
    .project-card {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .integration-info h4,
    .integration-info p {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
