:root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --accent: #38BDF8;
    --accent-hover: #0284c7;
    --success: #22C55E;
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Floating Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #818cf8 0%, transparent 70%);
    animation-delay: -10s;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}

.section-title:hover::after {
    width: 100%;
}

/* Glassmorphism Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Typography Helpers */
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-secondary { color: var(--text-secondary); }
.gradient-text {
    background: linear-gradient(135deg, var(--accent), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: var(--text-primary);
}

.success-border {
    border-color: var(--success);
    color: var(--success);
}
.success-border:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 4rem;
}

.profile-img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-secondary);
}

.hero-name {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-title {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.divider {
    color: var(--card-border);
    margin: 0 0.5rem;
}

.contact-info-hero {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.contact-info-hero a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-hero a:hover {
    color: var(--accent);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Summary Section */
.summary-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

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

.skill-category h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accent-icon {
    color: var(--accent);
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #818cf8);
    width: 0; /* Animated via JS */
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}

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

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    color: var(--text-secondary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Lists & Misc */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.styled-list {
    list-style: none;
}

.styled-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.styled-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

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

.language-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 2rem; }
    .grid-2-cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-name { font-size: 40px; }
    .stats-container { gap: 1.5rem; flex-wrap: wrap; }
    .contact-info-hero { flex-direction: column; align-items: center; gap: 0.75rem; }
}

@media (max-width: 375px) {
    .container { padding: 1rem; }
    .hero-name { font-size: 32px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* Print/PDF Mode */
@media print {
    :root {
        --bg-primary: #ffffff !important;
        --bg-secondary: #f8fafc !important;
        --card-bg: #ffffff !important;
        --card-border: #e2e8f0 !important;
        --text-primary: #0f172a !important;
        --text-secondary: #334155 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-shape { display: none !important; }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .hero-buttons { display: none !important; }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .progress-bar { width: 100% !important; background: #94a3b8 !important; }
    .progress-bar-bg { background: #e2e8f0 !important; }
    
    .section { margin-bottom: 2rem !important; }
    
    .container { padding: 0 !important; max-width: 100% !important; }
    
    a { text-decoration: none !important; color: black !important; }
    
    .project-img-wrapper { display: none !important; }
    .grid-2-cols { display: block !important; }
    
    .timeline::before { background: #cbd5e1 !important; }
    .timeline-dot { background: #0f172a !important; border-color: white !important; box-shadow: none !important; }
}
