* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --light: #f8f9ff;
    --dark: #0f0f1e;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --success: #48bb78;
    --warning: #ed8936;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* =============================================
   HEADER AND NAVIGATION
   ============================================= */

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-link:hover:after {
    width: 100%;
}

/* =============================================
   INTRO SECTION
   ============================================= */

.intro-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    color: white;
    padding: 8rem 2rem 6rem;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.intro-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.intro-text {
    flex: 1;
    min-width: 300px;
    z-index: 1;
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.intro-greeting {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.intro-name {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-title {
    font-size: 2.2rem;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.intro-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.intro-image {
    flex: 1;
    min-width: 200px;
    text-align: center;
    z-index: 1;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05) rotateZ(5deg);
}

/* =============================================
   SECTION STYLING
   ============================================= */

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* =============================================
   ABOUT SECTION
   ============================================= */

.about-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* =============================================
   SKILLS SECTION
   ============================================= */

.skills-section {
    background: white;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.skill-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-header i {
    font-size: 1.8rem;
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    font-weight: 500;
    padding: 0.8rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.skill-item i {
    color: var(--primary);
    width: 24px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* =============================================
   EXPERIENCE SECTION
   ============================================= */

.experience-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.experience-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.experience-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.experience-tab {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.experience-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.experience-tab:hover {
    border-color: var(--primary);
    background-color: #f8f9ff;
    transform: translateX(5px);
}

.experience-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.experience-tab.active::before {
    transform: scaleY(1);
}

.company-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.job-title {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.85;
}

.job-date {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.experience-content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.experience-details {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.experience-details.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.experience-details h3 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.8rem;
    font-weight: 700;
}

.experience-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.experience-list li {
    padding-left: 2rem;
    position: relative;
    color: var(--text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.experience-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
}

b {
    color: var(--primary);
    font-weight: 600;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    color: white;
    border-radius: 16px;
    text-align: center;
    margin: 3rem auto;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-section .section-title {
    color: white;
    position: relative;
    z-index: 1;
}

.contact-section .section-title::after {
    background: linear-gradient(90deg, var(--accent) 0%, #ffffff 100%);
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-label {
    text-align: left;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.form-input,
.form-textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.form-button:active {
    transform: translateY(-1px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.social-link {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    transform: scale(1.2) rotateZ(10deg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--accent);
    color: white;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
}

.footer-text {
    margin: 0;
}

/* =============================================
   SCROLL TO TOP BUTTON
   ============================================= */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* =============================================
   RESPONSIVE DESIGN - TABLET (1024px)
   ============================================= */

@media (max-width: 1024px) {
    .experience-container {
        grid-template-columns: 1fr;
    }

    .experience-sidebar {
        flex-direction: row;
        overflow-x: auto;
    }

    .experience-tab {
        flex: 0 0 200px;
    }
}

/* =============================================
   RESPONSIVE DESIGN - MOBILE (768px)
   ============================================= */

@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
        padding: 6rem 1rem 4rem;
        min-height: auto;
    }

    .intro-name {
        font-size: 3rem;
    }

    .intro-title {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-links {
        gap: 1.2rem;
        font-size: 0.9rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .experience-sidebar {
        gap: 0.8rem;
    }

    .experience-tab {
        flex: 0 0 150px;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .experience-content {
        padding: 1.5rem;
    }

    .intro-cta {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .contact-form {
        padding: 0 1rem;
    }
}

/* =============================================
   RESPONSIVE DESIGN - SMALL MOBILE (480px)
   ============================================= */

@media (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }

    .intro-section {
        margin-top: 50px;
        padding: 4rem 1rem 2rem;
        gap: 2rem;
    }

    .intro-name {
        font-size: 2rem;
    }

    .intro-title {
        font-size: 1.2rem;
    }

    .intro-greeting {
        font-size: 1rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .navbar {
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-links {
        gap: 0.8rem;
        font-size: 0.8rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .skill-header {
        padding: 1rem;
    }

    .skill-title {
        font-size: 1.1rem;
    }

    .skill-item {
        font-size: 0.95rem;
        padding: 0.6rem;
    }

    .experience-list li {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
        font-size: 0.9rem;
    }

    .form-input,
    .form-textarea {
        font-size: 16px;
    }

    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .experience-details h3 {
        font-size: 1.4rem;
    }
}
