:root {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --secondary: #a855f7;
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(15, 15, 20, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.w-full { width: 100%; }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

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

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

/* Animations */
body.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
    will-change: opacity, transform;
}

body.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

/* Navigation */
#main-nav {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

#main-nav.scrolled {
    background: var(--bg-glass);
    height: 70px;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span { color: var(--primary); }

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-cta {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-cta:hover {
    background: var(--primary);
    color: white !important;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

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

.hero-subtitle {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.hero-subtitle-main {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

/* Visual Card in Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 380px;
    height: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    pointer-events: none;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

/* About Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.image-container {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    overflow: hidden;
    background-image: url('assets/images/profile-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: contrast(1.1) brightness(0.95) saturate(1.05) sepia(0.1);
    mix-blend-mode: luminosity; /* Blends with the background for a premium look */
    opacity: 0.9;
}

.image-container:hover .profile-img {
    transform: scale(1.05);
    mix-blend-mode: normal;
    opacity: 1;
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent);
    pointer-events: none;
}

.placeholder-img {
    color: var(--text-muted);
    opacity: 0.3;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

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

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

.skill-category {
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

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

.skill-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
    width: 40px;
    height: 40px;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-badges span {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.project-card {
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.project-img {
    height: 200px;
    background: #111;
    overflow: hidden;
}

.placeholder-project-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e24, #0f0f12);
    position: relative;
}

.placeholder-project-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
}

.p1 { background: linear-gradient(135deg, #1e3a8a, #111); }
.p2 { background: linear-gradient(135deg, #581c87, #111); }
.p3 { background: linear-gradient(135deg, #3730a3, #111); }

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    height: 60px;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

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

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

.project-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-links a:hover { color: var(--primary); }

/* Timeline (Experience) */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

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

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

.timeline-dot {
    position: absolute;
    left: -3.4rem;
    top: 2.5rem;
    width: 12px;
    height: 12px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 5;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.company {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.timeline-details {
    padding-left: 1.2rem;
    list-style: circle;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-details li {
    margin-bottom: 0.5rem;
}

.education-desc {
    color: var(--text-muted);
}

/* Why Hire Me */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.perk-item {
    text-align: center;
}

.perk-item i {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin: 0 auto 1.5rem;
}

.perk-item h3 { margin-bottom: 1rem; }
.perk-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-list {
    margin: 3rem 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-link i { color: var(--primary); }
.contact-link:hover { color: var(--text-main); }

.whatsapp { color: #25d366 !important; }
.whatsapp i { color: #25d366 !important; }

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

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.social-links a i,
.social-links a svg,
.footer-social a i,
.footer-social a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2px;
    fill: none;
    display: block;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo span { color: var(--primary); }

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

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-links li {
    margin: 2rem 0;
}

.mobile-nav-links a {
    font-size: 2rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .grid-2, .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .about-visual { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 2.5rem; }
    .hero-btns { justify-content: center; }
    .hero-visual { display: none; }
    .section-padding { padding: 60px 0; }
    .footer-content { 
        flex-direction: column; 
        gap: 1.5rem; 
        text-align: center;
    }
    .footer-social { order: 2; }
    .footer-links { order: 3; }
    .footer p { order: 1; }
    .footer-logo { order: 0; }
}
