:root {
    --primary: #ffffff;
    --secondary: #94a3b8;
    --accent: #6366f1;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --accent-light: rgba(99, 102, 241, 0.15);
    --background: #050505;
    --surface: rgba(17, 17, 17, 0.8);
    --surface-light: rgba(26, 26, 26, 0.9);
    --text: #f8fafc;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.6);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-radius: 20px;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Animated Colorful Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: bgMove 20s ease-in-out infinite alternate;
}

@keyframes bgMove {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(2%, 2%); }
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 600;
}

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

/* Global Overrides for Bootstrap Classes */
.bg-white, .bg-light {
    background-color: var(--background) !important;
}

.bg-white.rounded-4, .bg-white.shadow-sm {
    background-color: var(--surface) !important;
    border: 1px solid var(--glass-border);
}

.text-secondary, .text-muted {
    color: var(--secondary) !important;
}

.text-dark {
    color: var(--primary) !important;
}

.border-top, .border-bottom {
    border-color: var(--glass-border) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.75) !important;
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border) !important;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.nav-item {
    list-style: none !important;
}

.nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
}

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

.logo {
    font-size: 1.6rem;
    text-decoration: none;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

/* Page Header */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(180deg, rgba(30, 27, 75, 0.4) 0%, rgba(5, 5, 5, 0) 100%);
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section (Home Only) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 80% 20%, #1e1b4b 0%, #050505 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: 0;
}

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

.hero h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.btn-dark {
    background: white !important;
    color: black !important;
}

.btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: white !important;
}

.btn-secondary {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Portfolio Grid */
.portfolio-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    position: relative;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    background: var(--glass);
    color: var(--secondary);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn.main {
    font-size: 1.1rem;
    padding: 0.8rem 2.5rem;
    border-color: var(--accent);
}

.filter-btn.sub {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Branching visual effect */
.filter-group-categories {
    position: relative;
    padding-top: 1rem;
}

.filter-group-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1rem;
    background: var(--glass-border);
}

.filter-group-sub {
    position: relative;
    padding-top: 1rem;
}

.filter-group-sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1rem;
    background: var(--glass-border);
}

.graphics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.graphic-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.graphic-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.graphic-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.graphic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.graphic-card:hover .graphic-overlay {
    transform: translateY(0);
}

.graphic-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
}

/* About Section Enhancements */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: flex-start;
}

.about-img-container {
    position: relative;
}

.about-img-container img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.about-img-container::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    right: 20px;
    bottom: -20px;
    border: 2px solid var(--accent);
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    background: var(--surface-light);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.contact-card h4 {
    margin-bottom: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.contact-card p, .contact-card a {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--surface);
    margin-top: 100px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

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

.footer-nav a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Admin Dashboard */
.admin-container {
    padding: 140px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.admin-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #edf2f7;
}

.admin-card.full {
    grid-column: span 2;
}

.admin-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.admin-list {
    margin-top: 1.5rem;
    list-style: none;
}

.admin-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        padding-top: 120px;
        min-height: auto;
    }
    .hero-grid, .about-content, .contact-grid, .admin-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
    .hero p { margin: 0 auto 2.5rem; }
    .about-img-container::after { display: none; }
    .contact-grid { gap: 1.5rem; }
    
    .navbar-nav {
        flex-direction: column !important;
        align-items: center;
        gap: 1rem;
    }
    
    .navbar-collapse {
        background: var(--surface-light);
        margin-top: 1rem;
        padding: 2rem;
        border-radius: var(--border-radius);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .btn-primary.rounded-pill {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .section { padding: 60px 0; }
    .page-header { padding: 140px 0 60px; }
    .graphics-grid {
        grid-template-columns: 1fr;
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Ensure sections have some spacing */
section {
    padding: 100px 0;
}
.portfolio-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: #f1f2f6;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents text from breaking */
}

.filter-btn.active {
    background: #1a1a1a;
    color: white;
}

/* සෙක්ෂන් එකේ සහ Footer එකේ තියෙන අමතර හිස් ඉඩවල් අයින් කරන්න */
section.section, footer.footer {
    background-color: #000000 !important; /* කළු පාටම දාන්න */
    margin: 0 !important;
    padding-bottom: 50px; /* මේක ඔයාට ඕන ගාණට වෙනස් කරගන්න */
    padding-top: 50px;
}

/* බොඩි එකේ පසුබිම කළු කිරීමෙන් සුදු පටි පෙනීම වළක්වන්න පුළුවන් */
body {
    background-color: #000000;
}
