/* Modern Portfolio Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --success-color: #10b981;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Tech Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Make sure content is above background */
header, nav, main, footer {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #4c1d95 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* DevOps Infrastructure Pattern Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Server Nodes */
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 25% 70%, rgba(59, 130, 246, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 75% 80%, rgba(59, 130, 246, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 90% 60%, rgba(139, 92, 246, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 10% 90%, rgba(139, 92, 246, 0.15) 2px, transparent 2px),
        /* Connection Lines */
        linear-gradient(45deg, transparent 48%, rgba(59, 130, 246, 0.08) 49%, rgba(59, 130, 246, 0.08) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(139, 92, 246, 0.08) 49%, rgba(139, 92, 246, 0.08) 51%, transparent 52%),
        /* Grid Pattern */
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size:
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        200px 200px,
        200px 200px,
        40px 40px,
        40px 40px;
    animation: networkFlow 20s linear infinite;
}

@keyframes networkFlow {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 200px 200px, -200px -200px, 40px 40px, 40px 40px;
    }
}

/* Cloud/Container Shapes */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Container boxes */
        linear-gradient(to right, rgba(59, 130, 246, 0.1) 0%, transparent 100%),
        linear-gradient(to left, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    background-size: 300px 150px, 300px 150px;
    background-position: -150px 20%, calc(100% + 150px) 60%;
    background-repeat: no-repeat;
    animation: containerSlide 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes containerSlide {
    0% {
        background-position: -150px 20%, calc(100% + 150px) 60%;
    }
    100% {
        background-position: 10% 20%, 90% 60%;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Profile Container with Tech Orbit */
.profile-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.tech-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.orbit-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: counterRotate 20s linear infinite;
}

.orbit-icon-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-icon-2 {
    top: 25%;
    right: 10%;
    animation-delay: -3.33s;
}

.orbit-icon-3 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: -6.66s;
}

.orbit-icon-4 {
    bottom: 25%;
    right: 10%;
    animation-delay: -10s;
}

.orbit-icon-5 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -13.33s;
}

.orbit-icon-6 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: -16.66s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes counterRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-experience {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Navigation Tabs */
.nav-tabs {
    background: var(--bg-card);
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 20px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

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

.highlight-item h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.highlight-item ul {
    list-style: none;
    padding: 0;
}

.highlight-item ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.highlight-item ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.highlight-item .year {
    color: var(--text-muted);
    font-style: italic;
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 35px;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
}

.timeline-header {
    margin-bottom: 15px;
}

.company-name {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.job-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.job-period {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-info {
    background: rgba(59, 130, 246, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 3px solid var(--accent-color);
}

.project-info p {
    margin: 5px 0;
    color: var(--text-secondary);
}

.project-info strong {
    color: var(--accent-color);
}

.responsibilities {
    margin: 15px 0;
}

.responsibilities ul {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.responsibilities li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.tech-stack {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.tech-stack strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 8px;
}

.tech-stack span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-category {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.skill-category p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-card h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-description {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 15px;
}

.project-highlights {
    margin: 15px 0;
}

.project-highlights ul {
    list-style: none;
    padding: 0;
}

.project-highlights li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.project-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.project-tech {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-tech strong {
    color: var(--accent-color);
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cert-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--success-color);
}

.cert-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    flex-grow: 1;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cert-id {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    background: rgba(59, 130, 246, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

/* Contact Section */
.contact-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 20px;
}

.contact-icon-link {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

.contact-icon-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-10px) scale(1.1);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--bg-card);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Animated Tech Background */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tech-particle {
    position: absolute;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.tech-particle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.tech-particle:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 20%;
    animation-duration: 20s;
    animation-delay: 2s;
}

.tech-particle:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 35%;
    animation-duration: 30s;
    animation-delay: 4s;
}

.tech-particle:nth-child(4) {
    width: 50px;
    height: 50px;
    left: 50%;
    animation-duration: 22s;
    animation-delay: 6s;
}

.tech-particle:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 65%;
    animation-duration: 28s;
    animation-delay: 8s;
}

.tech-particle:nth-child(6) {
    width: 90px;
    height: 90px;
    left: 75%;
    animation-duration: 26s;
    animation-delay: 3s;
}

.tech-particle:nth-child(7) {
    width: 55px;
    height: 55px;
    left: 85%;
    animation-duration: 24s;
    animation-delay: 5s;
}

.tech-particle:nth-child(8) {
    width: 75px;
    height: 75px;
    left: 15%;
    animation-duration: 23s;
    animation-delay: 7s;
    background: rgba(139, 92, 246, 0.1);
}

.tech-particle:nth-child(9) {
    width: 65px;
    height: 65px;
    left: 40%;
    animation-duration: 27s;
    animation-delay: 1s;
    background: rgba(139, 92, 246, 0.1);
}

.tech-particle:nth-child(10) {
    width: 85px;
    height: 85px;
    left: 90%;
    animation-duration: 29s;
    animation-delay: 9s;
    background: rgba(139, 92, 246, 0.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-10vh) rotate(180deg);
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        width: 160px;
        height: 160px;
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
    }

    .orbit-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .profile-container::before {
        width: 110px;
        height: 110px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-tabs {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .tab-button {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding: 20px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
