/* Netflix-Enhanced Portfolio Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --secondary-color: #221f1f;
    --accent-color: #f5f5f1;
    --text-primary: #ffffff;
    --text-secondary: #757575;
    --bg-dark: #000000;
    --bg-section: #141414;
    --gradient-primary: linear-gradient(135deg, #e50914 0%, #831010 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #434343 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Netflix-style Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-color);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

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

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

.nav-logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(229, 9, 20, 0.5);
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}
.hero-container {
    padding: 0 0.5rem;
}

.hero-name {
    font-size: 1.5rem;
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow-wrap: break-word;
    margin-top: 2rem;
}

/* Netflix-Style Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    color: white;
    overflow: hidden;
    will-change: transform;
    filter: blur(0px);
    transition: filter 0.6s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(229, 9, 20, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(229, 9, 20, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><defs><pattern id=\"grid\" width=\"10\" height=\"10\" patternUnits=\"userSpaceOnUse\"><path d=\"M 10 0 L 0 0 0 10\" fill=\"none\" stroke=\"rgba(255,255,255,0.05)\" stroke-width=\"0.5\"/></pattern></defs><rect width=\"100\" height=\"100\" fill=\"url(%23grid)\"/></svg>');
    opacity: 0.8;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.hero-name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #e50914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--accent-color);
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(229, 9, 20, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: var(--accent-color);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    background: #b8070f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Enhanced Cloud Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    position: absolute;
    right: -80px;
    top: -50px;
    z-index: 10;
    cursor: move;
    user-select: none;
}

.profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
    transition: all 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.8);
}

.profile-image.dragging {
    z-index: 50;
    transform: scale(1.02);
}

.cloud-animation {
    position: relative;
    width: 450px;
    height: 450px;
}

.cloud-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: netflixFloat 8s ease-in-out infinite;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cloud-icon:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.5);
}

.cloud-icon.aws {
    background: rgba(255, 153, 0, 0.2);
    top: 8%;
    left: 8%;
    animation-delay: 0s;
    color: #ff9900;
}

.cloud-icon.azure {
    background: rgba(0, 120, 215, 0.2);
    top: 18%;
    right: 30%;
    animation-delay: 1s;
    color: #0078d4;
}

.cloud-icon.k8s {
    background: rgba(50, 150, 250, 0.2);
    top: 45%;
    left: 3%;
    animation-delay: 2s;
    color: #326ce5;
}

.cloud-icon.terraform {
    background: rgba(98, 77, 227, 0.2);
    bottom: 38%;
    left: 18%;
    animation-delay: 3s;
    color: #623ce4;
}

.cloud-icon.jenkins {
    background: rgba(217, 74, 74, 0.2);
    bottom: 8%;
    right: 8%;
    animation-delay: 4s;
    color: #d94a4a;
}

.cloud-icon.git {
    background: rgba(240, 80, 50, 0.2);
    top: 58%;
    right: 18%;
    animation-delay: 8s;
    color: #f05032;
}

.cloud-icon.actions {
    background: rgba(44, 62, 80, 0.2);
    bottom: 28%;
    right: 28%;
    animation-delay: 9s;
    color: #2c3e50;
}

.cloud-icon.grafana {
    background: rgba(242, 73, 92, 0.2);
    top: 78%;
    left: 42%;
    animation-delay: 10s;
    color: #f2495c;
}

.cloud-icon.prometheus {
    background: rgba(230, 126, 34, 0.2);
    top: 28%;
    left: 38%;
    animation-delay: 5s;
    color: #e67e22;
}

.cloud-icon.python {
    background: rgba(52, 152, 219, 0.2);
    bottom: 42%;
    right: 3%;
    animation-delay: 6s;
    color: #3498db;
}

.cloud-icon.github {
    background: rgba(108, 117, 125, 0.2);
    top: 28%;
    right: 38%;
    animation-delay: 7s;
    color: #6c757d;
}

.cloud-icon.docker {
    background: rgba(0, 180, 240, 0.2);
    bottom: 8%;
    left: 38%;
    animation-delay: 1.5s;
    color: #00b4f0;
}

.cloud-icon.linux {
    background: rgba(255, 193, 7, 0.2);
    top: 68%;
    left: 22%;
    animation-delay: 2.5s;
    color: #ffc107;
}

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

/* Netflix-Style Sections */
section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    will-change: transform, opacity;
    transform-origin: center center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.section-container {
    width: 100%;
    transform: translateZ(0);
    will-change: transform;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Enhanced Section Transitions */
.section-reveal {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Zoom Section Effects */
.zoom-section {
    transform: scale(0.9) translateY(50px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zoom-section.in-view {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* About Section */
.about {
    background: var(--bg-section);
}

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

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(229, 9, 20, 0.2);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(229, 9, 20, 0.2);
    transform: translateY(-5px);
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.experience-card {
    background: var(--bg-section);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(20px);
    opacity: 0;
}

.experience-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.experience-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.experience-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.experience-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills Section */
.skills {
    background: var(--bg-section);
}

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

.skill-category {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-category.visible {
    transform: translateY(0);
    opacity: 1;
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-tag.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

/* Blog Section */
.blogs {
    background: var(--bg-section);
}

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

.blog-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

.blog-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.blog-platform {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(20px);
    opacity: 0;
}

.blog-platform.visible {
    transform: translateY(0);
    opacity: 1;
}

.blog-platform:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-platform h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-platform p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.platform-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-link:hover {
    background: #b8070f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-section);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(20px);
    opacity: 0;
}

.contact-link.visible {
    transform: translateY(0);
    opacity: 1;
}

.contact-link:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
    color: var(--primary-color);
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .blog-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-platforms {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
    
    .cloud-animation {
        width: 300px;
        height: 300px;
    }
    
    .cloud-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Prevent sections from clipping content on small screens */
    section {
        min-height: auto;
        padding: 2.5rem 0;
        overflow: visible;
    }

    /* Tweak About section for narrow viewports */
    .about {
        padding: 0.5rem 0 1.5rem 0;
    }

    .about-content {
        align-items: flex-start;
        gap: 1.25rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.6;
        padding-right: 0;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }

    .about-stats .stat {
        padding: 1rem;
    }

    .about-stats .stat-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce About section text on very small screens to avoid clipping */
    .about-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .lead {
        font-size: 1rem;
    }

    .about-stats .stat-number {
        font-size: 1.4rem;
    }
}
