/* ===== CSS Variables & Setup ===== */
:root {
    --bg-main: #0f172a; /* Slate 900 */
    --bg-darker: #020617; /* Slate 950 */
    --bg-card: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
    
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    --accent-primary: #0ea5e9; /* Sky 500 */
    --accent-secondary: #8b5cf6; /* Violet 500 */
    --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs for Modern Vibe */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* ===== Typography & Utilities ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

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

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.1);
}

.w-100 { width: 100%; }

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    text-decoration: none;
    color: var(--text-main);
}

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

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

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

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

.btn-nav {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px !important;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav:hover {
    background: var(--gradient-accent) !important;
    color: white !important;
    border-color: transparent;
}

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

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

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.greeting {
    color: var(--accent-primary);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.name {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

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

.title {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 500;
}

.typing-text {
    color: var(--text-main);
    border-right: 3px solid var(--accent-primary);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}

.description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    border: var(--glass-border);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient-accent);
    transform: translateY(-5px);
}

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

.img-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.2));
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: rotate(3deg);
    transition: var(--transition);
}

.img-wrapper:hover {
    transform: rotate(0deg) translateY(-10px);
}

.avatar-placeholder {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--text-main);
}

.personal-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 15px;
    border: var(--glass-border);
}

.info-item {
    display: flex;
}

.info-label {
    width: 80px;
    color: var(--accent-primary);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 20px;
    border: var(--glass-border);
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-10px);
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(30, 41, 59, 0.9);
}

.stat-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-primary);
}

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

.stat-box:first-child {
    grid-column: 1 / -1; /* Make first item full width */
}

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

/* ===== Project Cards (Minimalist) ===== */
.project-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-img {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.2); /* Darker background so 'contain' images look integrated */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px; /* Padding to prevent touching edges */
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevent cropping */
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.project-content .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.btn-demo,
.btn-action-desc,
.btn-action-pdf {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 10;
}

.btn-demo:hover,
.btn-action-pdf:hover {
    background: var(--accent-secondary);
}

.btn-action-desc {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
}

.btn-action-desc:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.skill-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: var(--glass-border);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.8);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    background: rgba(14, 165, 233, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

/* ===== Experience Timeline ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

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

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    border: 4px solid var(--bg-main);
}

.timeline-date {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: var(--glass-border);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Achievements Section ===== */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: -30px auto 50px;
    font-size: 1.05rem;
    font-style: italic;
}

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

.achieve-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.achieve-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(14, 165, 233, 0.4);
}

.achieve-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.achieve-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.achieve-card:hover .achieve-img img {
    transform: scale(1.1);
}

.achieve-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.achieve-content h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.achieve-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.btn-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.btn-link:hover {
    color: var(--accent-secondary);
}

.btn-link:hover::after {
    transform: translateX(5px);
}

/* ===== Contact Section ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 30px;
    border: var(--glass-border);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item a, .contact-item p {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-primary);
}

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

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-group textarea {
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.4);
}

/* ===== Footer ===== */
footer {
    padding: 30px 0;
    border-top: var(--glass-border);
    background: var(--bg-darker);
    text-align: center;
}

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

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

/* ===== Animations (Scroll Reveal) ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-left.active {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-right.active {
    transform: translateX(0);
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }
    
    .name { font-size: 3.5rem; }
    .title { font-size: 1.5rem; }
    .description { margin: 0 auto 30px; }
    
    .hero-btns {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .img-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px 0;
        gap: 20px;
        border-top: var(--glass-border);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .hamburger {
        display: block;
    }
    
    .name { font-size: 2.8rem; }
    .section { padding: 70px 0; }
    
    .timeline::before {
        left: 0;
    }
    .timeline-item {
        padding-left: 30px;
    }
    .timeline-dot {
        left: -9px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}
