:root {
    --primary-color: #3b82f6; /* Electric Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary-color: #06b6d4; /* Cyan */
    --accent-color: #8b5cf6; /* Violet/Purple */
    --bg-dark: #020617; /* Midnight Blue base */
    --bg-card: #0f172a; /* Navy Blue card */
    --bg-light: #1e293b; /* Slate Blue section */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-mesh: radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
                    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
                    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
                    radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
}

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

::selection {
    background: var(--primary-color);
    color: white;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

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

.section {
    padding: 10rem 0;
    position: relative;
    z-index: 1;
}

.bg-light {
    background-color: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(5px);
}

/* Background Decorations */
.bg-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: saturate(180%) blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    transition: var(--transition);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

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

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

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

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

.btn-nav {
    background: var(--gradient-primary);
    padding: 0.7rem 1.8rem;
    border-radius: 12px;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-nav::after { display: none !important; }

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.5);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
}

.name {
    font-size: 5rem;
    margin-bottom: 1rem;
    line-height: 1;
    font-weight: 900;
    color: var(--text-main);
}

.typewriter {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.btn-primary {
    background: var(--gradient-primary);
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 15px 35px -10px rgba(59, 130, 246, 0.5);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    background: var(--glass-bg);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.6);
}

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

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

.social-links a {
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    padding: 15px;
    background: var(--gradient-primary);
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
}

.hero-image img {
    width: 100%;
    display: block;
    border-radius: 20px;
    background: var(--bg-dark);
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.5;
}

/* About Section */
.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.about-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.8;
}

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

.skill-category {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.skill-category:hover::before {
    opacity: 0.03;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.8rem;
    border-radius: 12px;
}

.skill-category h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 700;
}

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

.tags span {
    background: rgba(15, 23, 42, 0.6);
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.tags span i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.tags span:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

.tags span:hover i {
    transform: rotate(10deg);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
}

.project-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(2, 6, 23, 0.8));
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.project-info {
    padding: 2.5rem;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.project-tags {
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1.2rem;
}

.project-tags span {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.link-btn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Education Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 4rem;
}

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

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

.timeline-dot {
    position: absolute;
    left: -4.4rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-date {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

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

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.info-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

.social-links-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}

.social-links-large a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.social-links-large a:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.btn-submit {
    background: var(--gradient-primary);
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.5);
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.6);
}

/* Footer */
.footer {
    padding: 6rem 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Animations */
.cursor {
    animation: blink 0.9s infinite;
    color: var(--secondary-color);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Sticky Navbar Shrink */
#navbar.scrolled {
    padding: 0.2rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .hero .container { gap: 2rem; }
    .name { font-size: 4rem; }
    .contact-container { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    .section { padding: 6rem 0; }
    .hero .container { grid-template-columns: 1fr; text-align: center; padding-top: 4rem; }
    .name { font-size: 3.2rem; }
    .typewriter { font-size: 1.6rem; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; flex-direction: column; }
    .social-links { justify-content: center; }
    .hero-image { display: none; }
    .nav-links { display: none; }
    .section-title { font-size: 2.5rem; }
    .project-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 2.5rem; }
    .social-links-large { grid-template-columns: 1fr; }
}
