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

/* Color Variables & Design Tokens */
:root {
    --bg-primary: #050508;
    --bg-secondary: #0c0d14;
    --bg-card: rgba(17, 18, 28, 0.45);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-dark: linear-gradient(180deg, rgba(20, 21, 33, 0.6) 0%, rgba(10, 11, 18, 0.8) 100%);
    
    /* Accents */
    --color-primary: #6366f1;
    --color-secondary: #06b6d4;
    --color-accent: #a855f7;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    /* Text */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px -5px rgba(99, 102, 241, 0.2);
    --shadow-glow-cyan: 0 0 25px -5px rgba(6, 182, 212, 0.2);
    
    /* Fonts */
    --font-heading: 'Space Grotesk', 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global resets & scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    /* Track mouse movement gradient */
    background-image: 
        radial-gradient(circle 800px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.08), transparent 80%),
        radial-gradient(circle 600px at 80% 20%, rgba(6, 182, 212, 0.05), transparent 70%),
        linear-gradient(to bottom, #050508, #0a0b12);
    background-attachment: fixed;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1e1b4b;
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Section styling helpers */
section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.container {
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Header & Glass Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 24px;
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 12px 24px;
    background: rgba(5, 5, 8, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#sizeLogo{
    font-size: 25px;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-main);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.5rem;
}

/* Glassmorphism utility card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 140px;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    position: relative;
    z-index: 3;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    width: fit-content;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 4.8rem);
    line-height: 1.1;
    font-weight: 800;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--text-muted);
    font-weight: 400;
    max-width: 700px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 35px -2px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.error-message {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.5;
    display: none;
    align-items: center;
    gap: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-3px) scale(1.05);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Background grid overlay styling */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(circle 600px at center, black, transparent);
    -webkit-mask-image: radial-gradient(circle 600px at center, black, transparent);
}

/* Section Header Style */
.section-header {
    max-width: 700px;
    margin-bottom: 56px;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
}

/* About / Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-val {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

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

/* Technical Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.skill-category {
    height: 100%;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.skill-category-header svg {
    color: var(--color-secondary);
    width: 24px;
    height: 24px;
}

.skill-category-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.skill-badge:hover {
    color: var(--text-main);
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.15);
}

/* Projects Section */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .project-card {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.project-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-main);
}

.project-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.project-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.project-bullets li {
    position: relative;
    padding-left: 28px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-secondary);
    font-weight: 700;
}

.project-highlights {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.highlight-badge svg {
    width: 14px;
    height: 14px;
}

/* Project Visual/Preview Panel */
.project-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.project-card:hover .project-visual {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: var(--shadow-glow);
}

.project-card.viver-card:hover .project-visual {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: var(--shadow-glow-cyan);
}

/* Custom Visual Displays representing the tech (cloudStore and Viver) */
.cloud-visual-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    cursor: pointer;
    background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.15), transparent 60%);
    opacity: 0.8;
}
#project-viver{
    cursor: pointer;
}
#project-cloudstore{
    cursor: pointer;
}

.cloud-display-inner, .viver-display-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 40px;
}

.visual-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.project-card:hover .visual-icon-wrap {
    transform: scale(1.1) rotate(5deg);
    color: var(--text-main);
    background: var(--gradient-primary);
    border-color: transparent;
}

.viver-card .visual-icon-wrap {
    color: var(--color-secondary);
}

.viver-card:hover .visual-icon-wrap {
    background: var(--gradient-cyan);
}

.visual-icon-wrap svg {
    width: 32px;
    height: 32px;
}

.visual-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.visual-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.visual-stats-bar {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.visual-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.v-stat-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.v-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Education Timeline styling */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    margin-bottom: 40px;
}

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

.timeline-marker {
    position: absolute;
    left: 10px;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--color-primary);
    z-index: 2;
    transition: var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-marker {
    border-color: var(--color-secondary);
}

.timeline-item:hover .timeline-marker {
    background: var(--text-main);
    transform: scale(1.2);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
    display: block;
}

.timeline-item:nth-child(even) .timeline-date {
    color: var(--color-secondary);
}

.timeline-card {
    padding: 24px;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-details {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Achievements Section */
.achievement-card {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-icon svg {
    width: 28px;
    height: 28px;
}

.achievement-content h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.achievement-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Contact Section & Form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-detail-item:nth-child(2) .contact-detail-icon {
    color: var(--color-secondary);
}

.contact-detail-item:nth-child(3) .contact-detail-icon {
    color: var(--color-accent);
}

.contact-detail-icon svg {
    width: 20px;
    height: 20px;
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
}

.contact-detail-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

.contact-detail-value {
    font-size: 1rem;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

a.contact-detail-value:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* Premium Form Elements */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    background: #030305;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-text a {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Mobile responsive menu */
@media (max-width: 768px) {
    header {
        padding: 16px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 11, 18, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-normal);
        z-index: 99;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-btn {
        display: block;
        z-index: 100;
    }
    
    section {
        padding: 60px 16px;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    .timeline-item {
        padding-left: 36px;
    }
    
    .timeline-marker {
        left: 2px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Spinner Animation */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}
