/* --- Custom Font Setup: VONCA --- */
@font-face {
    font-family: 'VONCA';
    /* font file එක folder එකේ තිබිය යුතුයි */
    src: url('Vonca.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

/* --- General Reset & Fonts --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* සියලුම තැන් වලට VONCA font එක යොදයි */
    font-family: 'VONCA', serif; 
}

body {
    background-color: #ffffff;
    color: #111;
    overflow-x: hidden;
}

/* --- Main Container Blur Effect --- */
#main-content {
    transition: filter 0.4s ease;
    width: 100%;
    min-height: 100vh;
}

body.panel-active #main-content {
    filter: blur(8px);
    cursor: pointer;
}

/* --- Navbar --- */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 100;
    /* සුදු පාට Shade එක ඉවත් කර සම්පූර්ණයෙන්ම Transparent කළා */
    background: transparent; 
}

.nav-left span {
    font-size: 0.9rem;
    font-weight: normal;
    color: #ffffff; /* අකුරු සුදු පාට කළා */
    letter-spacing: 1px;
}

/* Logo Image Styling */
.nav-center .logo-img {
    height: 40px; 
    width: auto;
    object-fit: contain;
    /* Logo එක dark නම් එය සුදු කරගැනීමට අවශ්‍ය නම් පමණක් පහත filter එක දාන්න */
    /* filter: brightness(0) invert(1); */
}

.nav-right a {
    text-decoration: none;
    color: #ffffff; /* Link අකුරු සුදු පාට කළා */
    font-size: 1rem;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.nav-right a:hover {
    border-bottom: 1px solid #ffffff; /* Hover රේඛාව සුදු පාට කළා */
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url('/hero.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.2); 
}

/* --- Services Grid --- */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    background-color: #fff;
}

@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

.service-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    overflow: hidden;
    background-color: #eee;
}

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

.service-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    text-align: center;
    z-index: 2;
}

.service-info h3 {
    color: #fff;
    letter-spacing: 1px;
    font-size: 1.4rem;
}

.service-box:hover img {
    transform: scale(1.1);
}

/* --- Side Panel --- */
/* --- Side Panel (Glass Effect) --- */
.side-panel {
    position: fixed;
    top: 0;
    right: -600px;
    width: 500px;
    height: 100vh;
    
    /* --- වෙනස් කළ කොටස (Transparent Blur) --- */
    background: rgba(255, 255, 255, 0.7); /* 70% ක් පෙනෙන සුදු පාට */
    backdrop-filter: blur(20px); /* පසුබිම බොඳ කිරීම */
    -webkit-backdrop-filter: blur(20px); /* Safari browser සදහා */
    border-left: 1px solid rgba(255, 255, 255, 0.5); /* ලාවට සුදු ඉරක් මායිමේ */
    /* -------------------------------------- */

    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

/* Mobile Screen එකට */
@media (max-width: 600px) { 
    .side-panel { 
        width: 100%; 
        right: -100%; 
    } 
}

.side-panel.open {
    right: 0;
}

.panel-header {
    padding: 40px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
    line-height: 1;
}

.panel-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #000;
}

.panel-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.panel-content::-webkit-scrollbar { width: 6px; }
.panel-content::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%);
    transition: 0.3s;
}
/* --- Mobile Responsive Navbar Styles --- */

/* මුලින් Hamburger සහ Mobile Menu එක සඟවන්න (Desktop එකට) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu {
    display: none; /* මුලින් සඟවා ඇත */
    position: absolute;
    top: 70px; /* Navbar එකට පහලින් */
    right: 20px;
    width: 250px;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    
    /* Blured Transparent Box Effect */
    background: rgba(255, 255, 255, 0.15); /* විනිවිද පෙනෙන සුදු */
    backdrop-filter: blur(15px); /* බොඳ කිරීම */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 150;
    
    /* Animation */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Menu එක Active වූ විට පෙනෙන විදිය */
.mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu p {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
}

.mobile-menu hr {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin: 5px 0;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

/* --- Media Queries (Mobile Screen Only) --- */
@media (max-width: 768px) {
    /* 1. Hide Desktop Elements */
    .desktop-only {
        display: none !important;
    }

    /* 2. Show Hamburger */
    .hamburger {
        display: flex;
    }

    /* 3. Adjust Navbar layout for Mobile */
    .navbar {
        padding: 15px 20px; /* Padding එක අඩු කරන්න */
    }

    /* Logo එක Center කරන්න අවශ්‍ය නම් */
    .nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}
.mobile-menu {
    display: none;
    position: absolute;
    
    /* --- වෙනස්කම් --- */
    top: 60px; /* උඩින් තියෙන ඉඩ */
    left: 20px; /* වම් පැත්තට බර කරා (කලින් තිබුනේ right: 20px) */
    /* right: 20px; <-- මෙය අයින් කරන්න */
    
    width: 200px;
    padding: 15px;
    
    flex-direction: column;
    align-items: flex-start; /* Text වම් පැත්තට (Left) align කළා */
    
    gap: 10px;
    border-radius: 10px;
    
    /* Blured Transparent Box Effect */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 150;
    
    /* Animation */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Menu Text Styling */
.mobile-menu p {
    color: #fff;
    font-size: 0.85rem;
    margin: 0;
    text-align: left; /* Text වම් පැත්තට align කළා */
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: left; /* Link වම් පැත්තට align කළා */
}

/* --- Video Editing සදහා විශේෂ Layout එක (Square & Single Column) --- */
.project-grid.video-mode {
    display: flex;
    flex-direction: column; /* පින්තූර එකක් යට එකක් (One by one) පෙන්වයි */
    gap: 20px;
}

.project-grid.video-mode .project-item {
    width: 100%;
    height: auto; /* කලින් තිබු ස්ථිර උස (Fixed height) ඉවත් කරයි */
    aspect-ratio: 1 / 1; /* පින්තූරය අනිවාර්යයෙන්ම සමචතුරස්‍ර (Square) කරයි */
}

/* contact */
/* --- Contact Page Styles --- */
.contact-section {
    /* Navbar එක සහ Content එක අතර පරතරය */
    padding-top: 200px; 
    
    /* වම්, දකුණු සහ පහල පරතරයන් */
    padding-bottom: 100px;
    padding-left: 50px;
    padding-right: 50px;

    width: 100%;
    min-height: 100vh; /* තිරයේ උසට සමාන වේ */
    
    display: flex;
    justify-content: center;
    /* align-items: center; <--- මෙය අයින් කළා, එවිට අපි දෙන padding එකට අනුව උඩින් පටන් ගනී */
}



.contact-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

/* Left Side Info */
.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #000;
}

.contact-info p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 400px;
    line-height: 1.6;
}

.info-item {
    margin-bottom: 20px;
}

.info-item h5 {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 5px;
}

/* Right Side Form */
.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    border-radius: 0; /* Boxy look */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000;
    background: #fff;
}

.submit-btn {
    padding: 15px 40px;
    background-color: #000;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    align-self: flex-start;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background-color: #333;
}

/* Mobile Changes for Contact Page */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    .contact-info h1 {
        font-size: 2.5rem;
    }
    .contact-section {
        padding: 40px 20px;
    }
}

/* --- Contact Page Specific Styling (No Box Version) --- */

/* 1. Background Image with Blur Effect */
body.contact-page {
    background-image: url('/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

/* Dark Overlay for better text visibility */
body.contact-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6); /* ටිකක් තද Overlay එකක් දැම්මා අකුරු පෙනෙන්න */
    z-index: -1;
}

/* 2. Text Colors - Making everything White */
.contact-info h1 { 
    color: #ffffff; 
    margin-bottom: 20px; 
    font-size: 3rem;
}

.contact-info p, 
.contact-info h5 { 
    color: #eeeeee; 
}

/* 3. Form Styling (Transparent & White) */
.form-group label {
    color: #ffffff;
    font-weight: normal;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05); /* ඉතා ලා විනිවිද පෙනෙන පසුබිමක් */
    border: 1px solid #ffffff; /* සුදු පාට border */
    color: #ffffff; /* Type කරන අකුරු සුදු පාට */
    border-radius: 0;
}

/* Placeholder text color */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    outline: none;
}

/* Submit Button */
.submit-btn {
    background-color: #ffffff; /* සුදු පාට Button */
    color: #000000; /* කළු පාට අකුරු */
    border: 1px solid #ffffff;
}

.submit-btn:hover {
    background-color: transparent;
    color: #ffffff;
}

/* 4. Footer Styling */
.simple-footer {
    text-align: center;
    padding: 20px;
    width: 100%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 10;
}

/* --- Mobile Responsive Fixes --- */
@media (max-width: 768px) {
    .contact-section {
        /* Mobile එකෙත් උඩින් Desktop එකේ වගේම ලොකු ඉඩක් තියන්න */
        padding-top: 200px !important; 
        
        /* වම් සහ දකුණු පැති වල ඉඩ Mobile එකට ගැලපෙන්න අඩු කරමු */
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 50px;
    }

    /* Container එක එකක් යට එකක් (Column) විදියට පෙළගස්වන්න */
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    /* Font sizes පොඩ්ඩක් Mobile එකට ගැලපෙන්න හදමු */
    .contact-info h1 {
        font-size: 2.5rem; /* Desktop එකේ 3.5rem තිබුනා, Mobile එකේ 2.5rem */
    }
}

.simple-footer-two {
    text-align: center;
    padding: 20px;
    width: 100%;
    color: rgba(6, 6, 6, 0.6);
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 10;
}