@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-deep: #020617;
    --bg-card: rgba(15, 23, 42, 0.4);
    --accent-blue: #00d2ff;
    --accent-purple: #9d50bb;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 15px rgba(0, 210, 255, 0.4);
}

body.loading {
    overflow: hidden;
}

/* Luxury Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.preloader-content {
    text-align: center;
    width: 300px;
}

.loader-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.loader-bar-container {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.loader-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-blue);
    letter-spacing: 3px;
    opacity: 0.8;
}

/* Custom Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent-blue);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    top: -20px;
    left: -20px;
    pointer-events: none;
    z-index: 9998;
}

.custom-cursor.active {
    transform: scale(3) !important;
    background: transparent !important;
    border: 1px solid var(--accent-blue) !important;
}

.cursor-follower.active {
    width: 60px !important;
    height: 60px !important;
    background: rgba(0, 210, 255, 0.1) !important;
    border-color: var(--accent-blue) !important;
}

.magnetic-wrap {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.ambient-light {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(157, 80, 187, 0.1) 0%, transparent 70%);
    top: -300px;
    right: -300px;
    z-index: -1;
    pointer-events: none;
    animation: aurora-shift 20s infinite alternate ease-in-out;
}

.ambient-light-2 {
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    z-index: -1;
    pointer-events: none;
    animation: aurora-shift 25s infinite alternate-reverse ease-in-out;
}

@keyframes aurora-shift {
    from { transform: translate(-10%, -10%) rotate(0deg); }
    to { transform: translate(10%, 10%) rotate(10deg); }
}

/* Navigation */
.pro-nav {
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pro-nav .logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-nav .logo span {
    color: var(--accent-blue);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.btn-hire {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-hire:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.4);
}

/* Sections */
section {
    padding: 6rem 10%;
}

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero .badge {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInSlide 1s ease-out 0.4s both;
}

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

.hero h1 {
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }
    to { text-shadow: 0 0 30px rgba(0, 210, 255, 0.4); }
}

/* Grid & Cards */
.section-title {
    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: var(--accent-blue);
    border-radius: 2px;
}

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

.pro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.pro-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 210, 255, 0.3);
}

.pro-card i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.pro-card h3 {
    margin-bottom: 1rem;
}

.pro-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pro-card .date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.8;
}

/* Custom Bullets & Education */
.description-list {
    list-style: none;
    margin-top: 1rem;
}

.description-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.description-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
}

.see-more-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.see-more-btn:hover {
    opacity: 0.8;
}

.expandable-content {
    max-height: 4.5rem; /* Show about 3 lines */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5rem;
    background: linear-gradient(transparent, var(--bg-deep));
    opacity: 1;
    transition: opacity 0.3s;
}

.expandable-content.active {
    max-height: 1000px;
}

.expandable-content.active::after {
    opacity: 0;
    pointer-events: none;
}

/* Timeline / Education */
.education-timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
}

.edu-item {
    position: relative;
    margin-bottom: 3rem;
}

.edu-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Skill Pills */
.skill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-pill:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
    opacity: 0.3;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, var(--bg-dark));
}

.tag-list {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-list span {
    font-size: 0.7rem;
    background: rgba(0, 210, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Footer */
footer {
    padding: 4rem 10%;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .pro-nav { padding: 1rem 5%; }
    section { padding: 5rem 5%; }
}

@media (max-width: 768px) {
    .hero { min-height: 70vh; align-items: center; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { max-width: 100%; font-size: 1.1rem; }
    
    .nav-links { display: none; } /* Consider adding a mobile menu if needed, but for now just hide for simplicity on standard mobile */
    
    .pro-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pro-grid-2 { grid-template-columns: 1fr; }
    
    .about-card { padding: 2rem; }
    .edu-pro-card { padding-left: 1.5rem; padding-top: 4.5rem; }
    .edu-pro-card i.edu-icon { left: 1.5rem; top: 1.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .badge { font-size: 0.7rem; }
    .btn-hire { width: 100%; text-align: center; }
    
    section { padding: 4rem 1.2rem; }
    .section-title { font-size: 2rem; }
}

/* Custom Enhancements */
.pro-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.edu-pro-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(157, 80, 187, 0.3);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 4.5rem;
}

.edu-pro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(157, 80, 187, 0.2);
    border-color: rgba(157, 80, 187, 0.6);
}

.edu-pro-card i.edu-icon {
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    color: var(--accent-purple);
    font-size: 1.8rem;
}
