/* 
    JANITHA PRASAD - Portfolio Stylesheet
    Theme: Middle-range Professional Gradient 
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Middle Range Palette */
    --gradient-start: #2c3e50; /* Deep Slate Blue */
    --gradient-end: #4ca1af;   /* Muted Teal */
    --bg-light: #f4f7f6;
    --text-dark: #232f3e;
    --text-muted: #5a6c7d;
    --white: #ffffff;
    --accent: #3498db;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: auto; /* JS මගින් Smooth Scroll පාලනය කරයි */
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; width: 100%;
    padding: 1.2rem 0; background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px); z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 2rem;
}

.nav-logo { font-size: 1.4rem; font-weight: 800; color: var(--gradient-start); text-decoration: none; }
.nav-logo span { color: var(--gradient-end); font-weight: 400; }

.nav-links a {
    text-decoration: none; color: var(--text-dark);
    margin: 0 1.5rem; font-size: 0.95rem; font-weight: 500; transition: 0.3s;
}

.nav-links a:hover { color: var(--accent); }

.nav-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white); padding: 0.7rem 1.6rem; border-radius: 50px;
    text-decoration: none; font-size: 0.9rem; font-weight: 600;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

/* --- Hero Section with Background Image --- */
.hero {
    height: 100vh; display: flex; align-items: center;
    position: relative;
    background: url('homee.png') no-repeat center center/cover;
    padding: 0 2rem; overflow: hidden;
}

/* Overlay to ensure text readability */
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.705), rgba(76, 162, 175, 0.568));
    z-index: 1;
}

.hero-content { 
    max-width: 1200px; margin: 0 auto; width: 100%; 
    position: relative; z-index: 2; 
}

.status-pill {
    display: inline-block; padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white); border-radius: 50px; font-size: 0.8rem;
    font-weight: 600; margin-bottom: 2rem;
}

.hero-title { font-size: 4.2rem; font-weight: 800; color: var(--white); line-height: 1.1; }
.hero-title span { 
    background: linear-gradient(135deg, #ffffff, #a8e6cf);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-desc { font-size: 1.25rem; color: rgba(255, 255, 255, 0.8); max-width: 650px; margin: 2.5rem 0; }

.hero-btns { display: flex; gap: 1.2rem; }

.btn-primary {
    background: var(--white); color: var(--gradient-start);
    padding: 1rem 2.5rem; border-radius: 12px;
    text-decoration: none; font-weight: 700; transition: var(--transition);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.5); color: var(--white);
    padding: 1rem 2.5rem; border-radius: 12px;
    text-decoration: none; font-weight: 700; transition: var(--transition);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* --- Shared Section Styles --- */
.container { max-width: 1200px; margin: 0 auto; }
.section-label { color: var(--gradient-end); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1rem; display: block; letter-spacing: 1px; }
.section-main-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 3.5rem; color: var(--text-dark); }

/* --- Apps Showcase --- */
.apps-section { padding: 120px 2rem; background: var(--white); }

.app-card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; }

.app-card {
    background: var(--bg-light); padding: 3rem; border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.03); transition: var(--transition);
}

.app-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.1);
    border-color: var(--gradient-end);
}

.app-visual-box {
    width: 80px; height: 80px; border-radius: 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; color: var(--white); margin-bottom: 1.8rem;
}

.category-tag { font-size: 0.75rem; font-weight: 700; color: var(--gradient-end); text-transform: uppercase; }
.app-card h3 { font-size: 1.8rem; margin: 0.6rem 0; color: var(--text-dark); }
.app-card p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }

.store-link { 
    text-decoration: none; color: var(--gradient-start); 
    font-weight: 700; display: flex; align-items: center; gap: 8px; 
    transition: 0.3s;
}
.store-link:hover { gap: 12px; color: var(--accent); }

/* --- About Section --- */
.about-section { padding: 120px 2rem; background: var(--bg-light); }
.about-content h2 { font-size: 2.8rem; margin-bottom: 2.5rem; }
.about-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.8rem; max-width: 850px; }

/* --- Expertise Section --- */
.expertise-section { padding: 120px 2rem; background: var(--white); }

.skills-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; 
}

.skill-item {
    background: var(--bg-light); padding: 2.5rem; border-radius: 20px;
    transition: var(--transition); border-bottom: 4px solid transparent;
}

.skill-item:hover {
    transform: translateY(-8px);
    border-bottom: 4px solid var(--gradient-end);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.skill-icon { font-size: 3rem; color: var(--gradient-start); margin-bottom: 1.5rem; }
.skill-item h4 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--text-dark); }
.skill-item p { color: var(--text-muted); }

/* --- Footer --- */
.footer { padding: 5rem 2rem 2rem; background: var(--text-dark); color: var(--white); }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.footer-logo { font-size: 1.6rem; font-weight: 800; }
.footer-logo span { color: var(--gradient-end); }
.footer-socials a { 
    color: var(--white); font-size: 1.8rem; margin-left: 1.5rem; 
    opacity: 0.7; transition: 0.3s; 
}
.footer-socials a:hover { opacity: 1; color: var(--gradient-end); transform: translateY(-3px); }

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2.5rem; 
    text-align: center; 
}
.copyright { font-size: 0.9rem; color: rgba(255,255,255,0.4); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title { font-size: 3.2rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.6rem; }
    .nav-links { display: none; } /* Mobile menu logic can be added later */
    .section-main-title { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .btn-primary, .btn-outline { text-align: center; }
}