/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #818cf8;
    --dark-bg: #0a1628;
    --dark-bg-secondary: #0f1b2e;
    --dark-bg-tertiary: #1a2332;
    --light-bg: #1e2a3a;
    --text-dark: #e2e8f0;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --card-bg: rgba(15, 27, 46, 0.5);
    --card-bg-hover: rgba(26, 35, 50, 0.7);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    
    /* Colorful category colors with glow */
    --color-languages: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-webdev: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --color-backend: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --color-cs: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --color-tools: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --color-design: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --color-dev: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    
    /* Glow effects */
    --glow-purple: 0 0 20px rgba(102, 126, 234, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
    --glow-pink: 0 0 20px rgba(240, 147, 251, 0.5), 0 0 40px rgba(245, 87, 108, 0.3);
    --glow-blue: 0 0 20px rgba(79, 172, 254, 0.5), 0 0 40px rgba(0, 242, 254, 0.3);
    --glow-green: 0 0 20px rgba(67, 233, 123, 0.5), 0 0 40px rgba(56, 249, 215, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 30%, #1a2332 60%, #0f1b2e 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(147, 197, 253, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 11, 20, 0.95);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #cbd5e1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.nav-brand:hover {
    color: #93c5fd;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    transform: scale(1.05);
}

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

.nav-menu a {
    text-decoration: none;
    color: #a855f7;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 50%, #c084fc 100%);
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.nav-menu a:hover {
    color: #c084fc;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #cbd5e1;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hamburger:hover span {
    background: #93c5fd;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 25%, #1a2332 50%, #1e2a3a 75%, #0f1b2e 100%);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(96, 165, 250, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(147, 197, 253, 0.08) 0%, transparent 60%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(59,130,246,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 1;
    animation: moveGrid 20s linear infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

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

.highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    animation: glowText 3s ease-in-out infinite alternate;
}

@keyframes glowText {
    0% { filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hero-description span {
    display: block;
    text-align: justify;
    text-justify: inter-word;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #2563eb;
    padding: 0;
    box-shadow: 
        0 8px 32px 0 rgba(37, 99, 235, 0.4),
        0 0 40px rgba(37, 99, 235, 0.5);
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    transition: all 0.4s ease;
    overflow: hidden;
}

.image-placeholder:hover {
    transform: scale(1.1);
    box-shadow: 
        0 12px 50px 0 rgba(59, 130, 246, 0.5),
        inset 0 0 80px rgba(59, 130, 246, 0.3),
        0 0 60px rgba(59, 130, 246, 0.6);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-dark);
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Consistent paragraph alignment similar to About section */
section p {
    text-align: justify;
    text-justify: inter-word;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-text {
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.9;
    text-align: justify;
    text-justify: inter-word;
    max-width: 100%;
    word-spacing: 0.1em;
}

.about-text pre {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-family: inherit;
    white-space: pre-wrap;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 5px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    transition: all 0.3s ease;
}

.info-item:hover i {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
    transform: scale(1.2);
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-muted);
    margin: 0;
}

/* Skills Section */
.skills {
    background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 50%, #1a2332 100%);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.skill-category {
    background: rgba(15, 27, 46, 0.5);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-languages);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.skill-category:nth-child(1)::before { background: var(--color-languages); }
.skill-category:nth-child(2)::before { background: var(--color-webdev); }
.skill-category:nth-child(3)::before { background: var(--color-backend); }
.skill-category:nth-child(4)::before { background: var(--color-cs); }
.skill-category:nth-child(5)::before { background: var(--color-tools); }
.skill-category:nth-child(6)::before { background: var(--color-design); }
.skill-category:nth-child(7)::before { background: var(--color-dev); }

.skill-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 50px 0 rgba(0, 0, 0, 0.7),
        0 0 40px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(59, 130, 246, 0.2);
    background: rgba(26, 35, 50, 0.6);
    border-color: rgba(59, 130, 246, 0.4);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.skill-category:nth-child(1) h3 i { 
    background: var(--color-languages);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skill-category:nth-child(2) h3 i { 
    background: var(--color-webdev);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skill-category:nth-child(3) h3 i { 
    background: var(--color-backend);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skill-category:nth-child(4) h3 i { 
    background: var(--color-cs);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skill-category:nth-child(5) h3 i { 
    background: var(--color-tools);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skill-category:nth-child(6) h3 i { 
    background: var(--color-design);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skill-category:nth-child(7) h3 i { 
    background: var(--color-dev);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-category h3 i {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    transition: all 0.3s ease;
}

.skill-category:hover h3 i {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.9));
    transform: scale(1.1);
}

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

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.skill-bar {
    height: 10px;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease;
}

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

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(26, 35, 50, 0.5);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 
        0 6px 25px rgba(59, 130, 246, 0.6),
        0 0 20px rgba(59, 130, 246, 0.4);
    border-color: transparent;
}

.skill-tag:hover::before {
    left: 100%;
}

/* Colorful skill tags based on category */
.skill-category:nth-child(1) .skill-tag:hover {
    background: var(--color-languages);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 6px 25px rgba(102, 126, 234, 0.6),
        0 0 25px rgba(102, 126, 234, 0.5);
}

.skill-category:nth-child(2) .skill-tag:hover {
    background: var(--color-webdev);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 6px 25px rgba(240, 147, 251, 0.6),
        0 0 25px rgba(245, 87, 108, 0.5);
}

.skill-category:nth-child(3) .skill-tag:hover {
    background: var(--color-backend);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 6px 25px rgba(79, 172, 254, 0.6),
        0 0 25px rgba(0, 242, 254, 0.5);
}

.skill-category:nth-child(4) .skill-tag:hover {
    background: var(--color-cs);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 6px 25px rgba(67, 233, 123, 0.6),
        0 0 25px rgba(56, 249, 215, 0.5);
}

.skill-category:nth-child(5) .skill-tag:hover {
    background: var(--color-tools);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 6px 25px rgba(250, 112, 154, 0.6),
        0 0 25px rgba(254, 225, 64, 0.5);
}

.skill-category:nth-child(6) .skill-tag:hover {
    background: var(--color-design);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 6px 25px rgba(168, 237, 234, 0.6),
        0 0 25px rgba(254, 214, 227, 0.5);
}

.skill-category:nth-child(7) .skill-tag:hover {
    background: var(--color-dev);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 6px 25px rgba(255, 154, 158, 0.6),
        0 0 25px rgba(254, 207, 239, 0.5);
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 50%, #1a2332 100%);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Education Section */
.education {
    background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 100%);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

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

.timeline-icon {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.4),
        0 0 30px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 
        0 12px 35px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(59, 130, 246, 0.5);
}

.timeline-content {
    background: rgba(15, 27, 46, 0.5);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.timeline-content:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 
        0 20px 50px 0 rgba(0, 0, 0, 0.7),
        0 0 40px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(59, 130, 246, 0.2);
    background: rgba(26, 35, 50, 0.6);
    border-color: rgba(59, 130, 246, 0.4);
}

.timeline-content:hover::before {
    transform: scaleY(1);
}

.timeline-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-light);
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 0.8rem;
    text-align: justify;
    text-justify: inter-word;
}

.timeline-content p strong {
    color: #60a5fa;
    font-weight: 600;
    margin-right: 0.5rem;
}

.timeline-content h4 {
    color: #60a5fa;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-date {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.certificate-card {
    background: rgba(15, 27, 46, 0.5);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(59, 130, 246, 0.1);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.certificate-card h3,
.certificate-card p,
.certificate-card a {
    width: 100%;
    text-align: left;
}

.certificate-card p,
.certificate-card span {
    text-align: justify;
    text-align-last: left;
    word-spacing: normal;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.certificate-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 20px 50px 0 rgba(0, 0, 0, 0.7),
        0 0 40px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(59, 130, 246, 0.2);
    background: rgba(26, 35, 50, 0.6);
    border-color: rgba(59, 130, 246, 0.4);
}

.certificate-card:hover::before {
    transform: scaleX(1);
}

.certificate-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
}

.certificate-card:hover .certificate-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.9));
}

.certificate-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.certificate-issuer {
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.certificate-date {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.certificate-description {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}

.certificate-description span {
    display: block;
    margin-bottom: 0.4rem;
    text-align: justify;
}

.certificate-description span:last-child {
    margin-bottom: 0;
}

.aligned-list span {
    display: block;
    width: 100%;
    text-align: justify;
    text-justify: inter-word;
}

.certificate-link {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.certificate-link:hover {
    color: #fb923c;
}

/* Project Link Styling */
.project-link {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 140, 66, 0.2);
    transition: all 0.3s ease;
}

.certificate-card:hover .project-link {
    color: #ffb366;
    gap: 0.8rem;
}

.project-link i {
    transition: transform 0.3s ease;
}

.certificate-card:hover .project-link i {
    transform: translateX(3px);
}

/* Participations Section */
.participations {
    background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 50%, #1a2332 100%);
    position: relative;
}

.participations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Courses/Internships Section */
.courses {
    background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 50%, #1a2332 100%);
    position: relative;
}

.courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Status Section */
.status {
    background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 100%);
}

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

.status-card {
    background: rgba(15, 27, 46, 0.5);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(59, 130, 246, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-card > * {
    width: 100%;
    text-align: left;
}

.status-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.status-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 50px 0 rgba(0, 0, 0, 0.7),
        0 0 40px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(59, 130, 246, 0.2);
    background: rgba(26, 35, 50, 0.6);
    border-color: rgba(59, 130, 246, 0.4);
}

.status-card:hover::after {
    opacity: 1;
}

.status-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
}

.status-card:hover .status-icon {
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.9));
}

.status-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.status-card p {
    color: var(--text-light);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-badge.available {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.status-badge.unavailable {
    background: #ef4444;
    color: var(--white);
}

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

.contact-info h3,
.contact-form h3 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-item h4 {
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-muted);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.contact-item > div,
.contact-item h4,
.contact-item p,
.contact-item a {
    width: 100%;
    text-align: left;
}

.contact-item i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 5px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    transition: all 0.3s ease;
}

.contact-item:hover i {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
    transform: scale(1.2);
}


.contact-item a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #93c5fd;
}


.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(51, 65, 85, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.8);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.contact-form {
    background: rgba(15, 27, 46, 0.5);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

.contact-form p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: left;
}

.contact-form p:last-child {
    margin-bottom: 0;
}

.contact-form a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.contact-form a:hover {
    color: #93c5fd;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(51, 65, 85, 0.8);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    background: rgba(26, 35, 50, 0.8);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a1628 0%, #0f1b2e 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, #93c5fd, transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

.footer i {
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 22, 40, 0.95);
        backdrop-filter: blur(30px) saturate(150%);
        -webkit-backdrop-filter: blur(30px) saturate(150%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
        padding: 2rem 0;
        border-top: 1px solid rgba(59, 130, 246, 0.3);
    }
    
    .nav-menu li {
        padding: 0.75rem 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        display: block;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-image {
        order: -1;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
    }

    .image-placeholder i {
        font-size: 5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

    .status-content {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-icon {
        left: -1.5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}


#ai-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  color: white;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
}

#ai-chat {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  height: 400px;
  background: white;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
