/* Base Styles */
:root {
    --primary-color: #ff004f;
    --secondary-color: #6c63ff;
    --dark-bg: #0a0a0a;
    --card-bg: #111111;
    --text-light: #ffffff;
    --text-gray: #9e9e9e;
    --gradient-primary: linear-gradient(135deg, #ff004f, #6c63ff);
    --gradient-scroll: linear-gradient(90deg, #6c63ff, #ff004f);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(108, 99, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 79, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section {
    position: relative;
    z-index: 1;
}

.section-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.section-title h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title-bar {
    display: block;
    width: 70px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.secondary-btn {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.secondary-btn:hover {
    background: var(--text-light);
    color: var(--dark-bg);
}

/* Scroll Progress Bar */
.scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.scroll-bar {
    height: 100%;
    background: var(--gradient-scroll);
    width: 0;
    transition: width 0.1s ease;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

nav.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.98);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

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

/* Hero Section */
#header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 100px 0 50px;
}

.hero-content {
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    padding-right: 20px;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.typed-text {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 20px;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    max-width: 500px;
}

.location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow);
}

.profile-img::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.7;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

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

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-5px);
}

/* About Section */
#about {
    background: var(--card-bg);
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
}

.about-text p strong {
    color: var(--text-light);
    font-weight: 500;
}

.skills-container {
    margin-top: 60px;
    margin-bottom: 40px;
}

.skills-container h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-light);
}

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

.skill-category {
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(255, 0, 79, 0.15);
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-tags span:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Education Section */
#education {
    padding: 80px 0;
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    width: calc(50% - 40px);
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    right: -40px;
    top: 20px;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 20px;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-type: none;
    padding-left: 0;
}

.timeline-content ul li {
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.timeline-content ul li strong {
    color: var(--text-light);
}

.timeline-item.current .timeline-content {
    border-color: var(--primary-color);
}

/* Certifications Section */
.certifications-section {
    margin-top: 50px;
}

.certifications-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.cert-card {
    background: var(--dark-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 79, 0.2);
}

.cert-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cert-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-light);
    line-height: 1.4;
}

.cert-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Languages Section */
.languages-container {
    margin-top: 50px;
}

.languages-container h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.languages-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.language-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 0, 79, 0.1));
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.language-badge:hover {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(255, 0, 79, 0.2));
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* Projects Section - Slider */
#projects {
    background: var(--card-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#projects .section-title {
    margin-bottom: 60px;
    text-align: center;
}

#projects .section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

#projects .section-title h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#projects .title-bar {
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 3px;
    box-shadow: 0 3px 15px rgba(108, 99, 255, 0.4);
}

.projects-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    overflow: hidden;
}

.projects-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
    width: 100%;
}

.project-card {
    flex: 0 0 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
    background: transparent;
    border-radius: 20px;
    overflow: visible;
    transition: transform 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    perspective: 1000px;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card.flipped .project-card-inner {
    transform: rotateY(180deg);
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 580px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card-front,
.project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.project-card-front {
    z-index: 2;
}

.project-card-back {
    transform: rotateY(180deg);
    z-index: 1;
    overflow-y: auto;
}

.project-card-front:hover {
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.3);
    border-color: rgba(108, 99, 255, 0.3);
}

.project-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.project-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.project-number {
    background: var(--gradient-primary);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.project-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-light);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags span {
    background: rgba(108, 99, 255, 0.2);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(108, 99, 255, 0.3);
    transition: var(--transition);
}

.project-tags span:hover {
    background: rgba(108, 99, 255, 0.3);
    transform: translateY(-2px);
}

.project-info p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.project-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 79, 0.4);
}

.project-btn i {
    font-size: 0.9rem;
}

.click-hint {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 500;
}

.click-hint i {
    animation: pulse-hint 2s infinite;
}

@keyframes pulse-hint {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.back-hint {
    text-align: center;
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 500;
    flex-shrink: 0;
}

.project-info-detailed {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.project-info-detailed::-webkit-scrollbar {
    width: 6px;
}

.project-info-detailed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.project-info-detailed::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.project-info-detailed::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.project-info-detailed h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
    flex-shrink: 0;
}

.project-info-detailed p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: justify;
    flex-shrink: 0;
}

.project-info-detailed .project-tags {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.project-info-detailed .project-links {
    margin-top: 15px;
    flex-shrink: 0;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    color: var(--text-light);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary-color);
    border-color: var(--secondary-color);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--secondary-color);
}

/* Contact Section */
#contact {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.contact-details {
    margin-bottom: 30px;
}

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

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 16px;
}

.contact-item span {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-social {
    margin-top: 30px;
    justify-content: flex-start;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 16px;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: var(--text-light);
    width: 100%;
    border: none;
    font-weight: 500;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

#msg {
    color: #4CAF50;
    font-size: 16px;
    margin-top: 15px;
    text-align: center;
}

/* Footer */
footer {
    background: var(--dark-bg);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-gray);
}

.footer-content p {
    margin-bottom: 10px;
}

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

/* Media Queries */
@media screen and (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text {
        padding-right: 0;
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .bio {
        margin: 0 auto 20px;
    }
    
    .location {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .typed-text {
        font-size: 1.3rem;
    }
    
    .education-timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -30px;
        width: 30px;
    }
    
    .projects-slider-container {
        padding: 0 55px;
    }
    
    .project-card {
        flex: 0 0 calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
    
    .project-card-inner {
        min-height: 520px;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        padding: 10px 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .typed-text {
        font-size: 1.1rem;
    }
    
    .profile-img {
        width: 220px;
        height: 220px;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .project-card-inner {
        min-height: 500px;
    }
    
    .projects-slider-container {
        padding: 0 50px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .project-img {
        height: 200px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
    }
    
    .languages-list {
        gap: 10px;
    }
    
    .language-badge {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 25px;
    }
}