/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #0a0a16;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-solid: #8b5cf6;
    --accent-secondary: #3b82f6;
    --border-color: rgba(255, 255, 255, 0.08);
}

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

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

/* Background Gradients */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    bottom: -50px;
    right: -100px;
    border-radius: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

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

/* Header / Hero Section */
header {
    padding: 6rem 0 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
}

.hero-image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: 0 0 40px var(--accent-glow);
    animation: morph 8s ease-in-out infinite;
    border: 4px solid var(--border-color);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-role {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    color: var(--accent-solid);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-solid), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 20px -10px var(--accent-solid);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px var(--accent-solid);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-solid), transparent);
    border-radius: 2px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.3);
}

.summary-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.skill-category h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: var(--accent-solid);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

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

.skill-tag:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Timeline (Experience) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 4px solid var(--accent-solid);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content .company {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.timeline-content .duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
}

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

.timeline-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    header {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 4rem;
    }
    
    .contact-info {
        justify-content: center;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-dot {
        left: 1px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}

/* Certifications Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.cert-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 2px solid var(--border-color);
}

.cert-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.cert-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--accent-glow);
    border-color: var(--accent-solid);
}

.cert-card:hover img {
    transform: scale(1.05);
}

/* Navigation Menu */
.main-nav {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 22, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(to right, #fff, var(--accent-solid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-menu > li > a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active {
    color: var(--accent-solid);
}
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}
.dropdown-menu li a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
}

/* Tools UI */
.tool-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
.tool-textarea {
    width: 100%;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 1.5rem;
    font-family: monospace;
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}
.tool-textarea:focus {
    border-color: var(--accent-solid);
}
.tool-controls {
    display: flex;
    gap: 1rem;
}
.tool-output {
    width: 100%;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #a78bfa;
    padding: 1.5rem;
    font-family: monospace;
    font-size: 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
}
.tool-error {
    color: #ef4444 !important;
}
.tool-success {
    color: #10b981 !important;
}

.CodeMirror {
    height: 350px !important;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.4) !important;
    font-family: monospace;
    font-size: 1rem;
}
.CodeMirror-gutters {
    background: transparent !important;
    border-right: 1px solid var(--border-color) !important;
}
.CodeMirror-focused {
    border-color: var(--accent-solid) !important;
}
