/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-red: #dc2626;
    --accent-red-hover: #ef4444;
    --text-primary: #f5f6f7;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-glass: rgba(31, 20, 46, 0.85);
    --bg-glass-hover: rgba(31, 20, 46, 0.95);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: linear-gradient(to right bottom, #051937, #171228, #190a1a, #12040d, #000000);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    background: rgba(5, 25, 55, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.nav.scrolled {
    padding: 0.75rem 5%;
    background: rgba(5, 25, 55, 0.95);
}

.name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.name img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-red);
    transition: var(--transition-smooth);
}

.name img:hover {
    transform: rotate(360deg) scale(1.1);
    border-color: var(--accent-red-hover);
}

.name h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

nav ul li a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

nav ul li a:hover::before {
    width: 80%;
}

nav ul li a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero_section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 10% 4rem;
    gap: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#hero_section.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4rem;
}

.left {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease;
}

.left p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.highlight {
    color: #fbbf24;
    font-weight: 700;
}

.btn {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn a:hover::before {
    width: 300px;
    height: 300px;
}

.hire {
    background: var(--accent-red);
    color: white;
    border: 2px solid var(--accent-red);
}

.hire:hover {
    background: transparent;
    color: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.Resume {
    background: transparent;
    color: white;
    border: 2px solid var(--accent-red);
}

.Resume:hover {
    background: var(--accent-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about_section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 10%;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#about_section.visible {
    opacity: 1;
    transform: translateY(0);
}

#about_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.about-text {
    max-width: 900px;
    padding: 3rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.about-text strong {
    color: #c084fc;
    font-weight: 700;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
#Skills_\&_Expertise h1 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.Skills_\&_Expertise {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.category-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.skill-category ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-category li {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border-left: 3px solid #667eea;
    transition: var(--transition-smooth);
    position: relative;
    padding-left: 3rem;
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 1.25rem;
    color: #667eea;
    font-weight: bold;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.skill-category li:hover {
    background: rgba(102, 126, 234, 0.15);
    border-left-color: #764ba2;
    padding-left: 3.5rem;
    transform: translateX(5px);
}

.skill-category li:hover::before {
    color: #764ba2;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services_section {
    padding: 6rem 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#services_section.visible {
    opacity: 1;
    transform: translateY(0);
}

#services_section h2 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
    border-color: var(--accent-red);
}

.service img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service:hover img {
    transform: scale(1.05);
}

.service h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1.5rem 1.5rem 1rem;
    color: var(--text-primary);
}

.service p {
    font-size: 1.0625rem;
    line-height: 1.8;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.service strong {
    color: var(--accent-red-hover);
    font-weight: 700;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
#testimonials_section {
    padding: 6rem 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#testimonials_section.visible {
    opacity: 1;
    transform: translateY(0);
}

#testimonials_section h2 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(118, 75, 162, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(102, 126, 234, 0.2);
    line-height: 1;
}

.testimonial:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #764ba2;
}

.testimonial h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.testimonial hr {
    border: none;
    border-top: 2px solid #764ba2;
    width: 60px;
    margin: 1rem 0 1.5rem;
}

.testimonial p {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact_section {
    padding: 6rem 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#contact_section.visible {
    opacity: 1;
    transform: translateY(0);
}

#contact_section h2 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-text {
    max-width: 700px;
    margin: 0 auto;
}

.contact-text > p {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-subtle);
    border-top: 3px solid var(--accent-red);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-smooth);
    outline: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #764ba2;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 180px;
}

button[type="submit"] {
    padding: 1.25rem 3rem;
    background: var(--accent-red);
    color: white;
    border: 2px solid var(--accent-red);
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    align-self: center;
    min-width: 200px;
}

button[type="submit"]:hover {
    background: transparent;
    color: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(180deg, transparent 0%, #0a0a0a 50%);
    padding: 4rem 10% 2rem;
    margin-top: 6rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-content > p:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.social-links a {
    padding: 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.footer-content > p:nth-child(3) {
    margin-top: 2.5rem;
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

.footer-content > p:nth-child(3) a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: var(--transition-smooth);
}

.footer-content > p:nth-child(3) a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.footer-content > p:nth-child(3) a:hover {
    color: #c4b5fd;
}

.footer-content > p:nth-child(3) a:hover::after {
    width: 100%;
}

.footer-content > p:last-child {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.9375rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .nav {
        padding: 1rem 5%;
    }
    
    #hero_section,
    #about_section,
    #services_section,
    #testimonials_section,
    #contact_section {
        padding: 4rem 5%;
    }
    
    .Skills_\&_Expertise {
        padding: 0 5%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    nav ul li a {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    #hero_section {
        padding-top: 10rem;
    }
    
    .hero_content {
        flex-direction: column;
        text-align: center;
    }
    
    .left {
        max-width: 100%;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .btn {
        flex-direction: column;
        align-items: center;
    }
    
    .btn a {
        width: 100%;
        max-width: 280px;
    }
    
    .about-text {
        padding: 2rem;
    }
    
    .about-text h2 {
        font-size: 2.25rem;
    }
    
    .Skills_\&_Expertise,
    .services,
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    form {
        padding: 0 1rem;
    }
    
    button[type="submit"] {
        width: 100%;
        max-width: 280px;
    }
    
    footer {
        padding: 3rem 5% 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-links a {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .about-text h2,
    #services_section h2,
    #testimonials_section h2,
    #contact_section h2 {
        font-size: 1.875rem;
    }
    
    .skill-category,
    .service,
    .testimonial {
        padding: 1.5rem;
    }
}