
        :root {
            --primary-light: #e0f7fa; /* Light Cyan */
            --primary-blue: #002444; /* Original Primary Blue */
            --accent-blue: #4db6ac; /* Light Teal */
            --background: #f3f4f6; /* Light Gray */
            --text-dark: #111827; /* Dark Gray */
            --section-background: #ffffff; /* White */
            --section-light-blue: #e1f5fe; /* Light Blue */
            --section-dark-blue: #b3e5fc; /* Soft Blue */
            --section-darker-blue: #81d4fa; /* Slightly Darker Blue */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: var(--background);
            color: var(--text-dark);
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        img {
            max-width: 100%;
            display: block;
        }

        /* General Styles */
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Navigation */
        .navbar {
            padding: 0.5rem 5%;
            background: black; /* Keep navbar black */
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
            transition: all 0.3s ease-in-out;
        }

        .brand-logo {
            height: 50px; /* Set a specific height for the logo */
            width: auto; /* Maintain aspect ratio */
        }

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

        .nav-link {
            color: white; /* Change text color to white */
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            position: relative;
            padding: 0.5rem;
            transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
        }

        .nav-link:hover {
            color: var(--accent-blue); /* Change color on hover */
            transform: translateY(-2px); /* Slight lift effect */
        }

        /* Mobile Styles */
        .menu-toggle {
            display: block; /* Show by default */
            cursor: pointer; /* Pointer cursor */
            color: white; /* Icon color */
            font-size: 1.5rem; /* Icon size */
        }

        /* Media Queries */
        @media (max-width: 768px) {
            .nav-links {
                display: none; /* Hide links by default */
                flex-direction: column; 
                position: absolute; 
                top: 60px; /* Below the navbar */
                right: 0; 
                background: black; /* Background color */
                width: 100%; /* Full width */
                padding: 1rem 0; 
                z-index: 999; /* Ensure it appears above other content */
                opacity: 0; /* Start hidden */
                transform: translateY(-20px); 
                transition: opacity 0.3s ease, transform 0.3s ease;
            }

            .nav-links.active {
                display: flex; /* Show links when active */
                opacity: 1; /* Fade in */
                transform: translateY(0); /* Move to original position */
            }
        }

        @keyframes rollDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes rollUp {
            from {
                opacity: 1;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                transform: translateY(-20px);
            }
        }

        /* Hero Section */
        .hero {
            height: 100vh; /* Full height */
            display: flex;
            align-items: center;
            justify-content: flex-start; /* Align content to the left */
            background: url('/assets/heroself.jpg') center/cover no-repeat; /* Center and cover */
            padding: 0 5%; /* Add padding */
            position: relative;
            overflow: hidden; /* Prevent overflow */
        }

        .hero-content {
            text-align: left; /* Align text to the left */
            max-width: 500px; /* Limit the width of the text */
            color: white; /* Text color */
            z-index: 1; /* Ensure it appears above the background */
        }

        /* Hero Section Styling */
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    margin-bottom: 1.5rem; /* Space below heading */
    margin-top: 2rem; /* Space above heading */
    line-height: 1.2; /* Line height */
}

/* Animated Name: Ayush Hardeniya */
.highlight {
    font-size: clamp(3rem, 6vw, 5rem); /* Bigger size for name */
    font-weight: bold;
    color: #00FFFF; /* Electric Blue */
}

/* Letter-by-letter Animation */
.highlight span {
    opacity: 0; /* Initially hidden */
    animation: fadeIn 3s forwards;
}

/* Animation Keyframes */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Delay each letter (including !) */
.highlight span:nth-child(1) { animation-delay: 0.2s; }
.highlight span:nth-child(2) { animation-delay: 0.4s; }
.highlight span:nth-child(3) { animation-delay: 0.6s; }
.highlight span:nth-child(4) { animation-delay: 0.8s; }
.highlight span:nth-child(5) { animation-delay: 1s; }
.highlight span:nth-child(6) { animation-delay: 1.2s; }
.highlight span:nth-child(7) { animation-delay: 1.4s; }
.highlight span:nth-child(8) { animation-delay: 1.6s; }
.highlight span:nth-child(9) { animation-delay: 1.8s; }
.highlight span:nth-child(10) { animation-delay: 2s; }
.highlight span:nth-child(11) { animation-delay: 2.2s; }
.highlight span:nth-child(12) { animation-delay: 2.4s; }
.highlight span:nth-child(13) { animation-delay: 2.6s; }
.highlight span:nth-child(14) { animation-delay: 2.8s; }
.highlight span:nth-child(15) { animation-delay: 3s; } /* Added for '!' */

        .hero p {
            font-size: 1.5rem; /* Paragraph size for desktop */
            margin: 0 auto 2rem; /* Space below paragraph */
        }

        /* Mobile Styles */
        @media (max-width: 768px) {
            .hero {
                height: auto; /* Allow height to adjust */
                padding: 2rem 5%; /* Add padding */
                background: url('banneraHnew.png') center/contain no-repeat; /* Change to contain for mobile */
            }

            .hero h1 {
                font-size: 2.5rem; /* Smaller font size for mobile */
            }

            .hero p {
                font-size: 1rem; /* Smaller font size for mobile */
            }
        }

        /* Content Sections */
        section {
            padding: 6rem 5%;
            margin: 2rem 0; /* Add margin to separate sections */
            border-radius: 10px; /* Rounded corners */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
            transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation */
        }

        section:hover {
            transform: translateY(-5px); /* Lift effect on hover */
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
        }

        /* About Section */
        #about {
            background: var(--primary-light); /* Light Cyan */
        }

        /* Links Section */
        #social-links {
            background: var(--section-dark-blue); /* Soft Blue */
        }

        /* Values Section */
        #values {
            background: var(--primary-light); /* Light Cyan */
        }

        /* Blog Section */
        #blog {
            background: var(--section-darker-blue); /* Slightly Darker Blue */
        }

        /* Contact Section */
        #contact {
            background: var(--section-light-blue); /* Light Blue */
            color: var(--text-dark); /* Change text color for contrast */
        }

        .section-title {
            font-size: 2.8rem;
            color: var(--text-dark);
            margin-bottom: 4rem;
            text-align: center;
        }

        .section-subtitle {
            text-align: center;
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 2rem;
        }

        /* About Section */
        .about {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 2rem;
        }
        .about .about-text {
            flex: 1;
            min-width: 300px;
        }
        .about .about-text p {
            margin-bottom: 1.2rem;
            font-size: 1rem;
            color: #555;
        }
        .about .about-image {
            flex: 1;
            min-width: 300px;
            text-align: center;
        }
        .about .about-image img {
            width: 250px;
            height: 250px;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        /* Links Section */
        .social-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 30px;
            justify-items: center;
            align-items: center;
            max-width: 1000px;
            margin: 0 auto;
        }

        .social-card {
            background: #fff;
            border-radius: 12px;
            padding: 25px;
            width: 160px;
            height: 160px;
            text-align: center;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .social-card i {
            font-size: 60px;
            margin-bottom: 12px;
            color: #333;
        }

        .gravatar-icon {
            width: 60px;
            height: 60px;
            margin-bottom: 12px;
            filter: grayscale(100%) brightness(0.3) contrast(1.2);
            border-radius: 50%;
            object-fit: cover;
            background-color: transparent;
            display: block;
        }

        .social-card span {
            font-size: 18px;
            font-weight: bold;
            color: #444;
        }

        .social-card:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }

        /* Values Section */
        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .value-card {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            border-left: 4px solid var(--primary-blue);
        }

        /* Blog Section */
        
@import url('https://fonts.googleapis.com/css2?family=Zeyada&display=swap');

.blog-card {
    position: relative;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    width: 480px;  /* Fixed width */
    height: 320px; /* 3:2 aspect ratio */
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Updated title size */
.blog-title {
    font-size: 2rem; /* size */
    font-weight: bold;
    font-family: 'Zeyada', cursive;
    color: #222;
    letter-spacing: 1px;
    margin: 10px 0;
    max-height: 100px; /* Allows multi-line titles */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limits to 2 lines */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}


/* Keep the date at the top */
.date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

/* Read More Bar */
.read-more-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-blue);
    padding: 12px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: center;
}

.read-more {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: 0.3s;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}


/*subscription*/

.newsletter-subscribe {
    background: #fff;
    margin: 40px auto 0;
    padding: 25px 20px;
    width: 365px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-title {
    font-family: 'Zeyada';
    font-size: 2rem;
    color: #222;
    margin-bottom: 5px;
}

.newsletter-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.subscribe-button {
    padding: 10px 20px;
    background-color: var(--primary-blue); /* your site’s primary color */
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.subscribe-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Contact Section */

        #contact {
            padding: 6rem 5%;
            text-align: center;
        }
        #contact h2 {
            font-size: 2.8rem;
            color: var(--text-dark);
            margin-bottom: 2rem;
        }
        #contact p {
            font-size: 1.1rem;
            color: var(--text-dark);
            margin-bottom: 1.5rem;
        }
        #contact a.email-link {
            color: var(--primary-blue);
            font-weight: 600;
            font-size: 1.2rem;
            border-bottom: 2px solid transparent;
            transition: border-color 0.3s;
        }
        #contact a.email-link:hover {
            border-color: var(--primary-blue);
        }

        /* Enhanced Footer */
        footer {
            background: var(--primary-blue); /* Keep footer primary blue */
            color: white;
            padding: 4rem 5%;
            margin-top: 6rem;
        }

        .footer-grid {
            display: flex; /* Use flexbox for layout */
            flex-direction: column; /* Stack items vertically on small screens */
            gap: 2rem; /* Space between sections */
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-section {
            display: flex;
            flex-direction: column; /* Stack items vertically */
            align-items: flex-start; /* Align items to the start */
        }

        .footer-section h3 {
            color: var(--primary-light);
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
        }

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

        .social-link {
            font-size: 1.8rem;
            color: white;
            transition: transform 0.3s;
        }

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

        .quick-links {
            text-align: center; /* Center align quick links */
            margin-top: 10px;
        }

        .quick-links nav {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .legal {
            text-align: center;
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* Media Queries for Responsive Design */
        @media (min-width: 768px) {
            .footer-grid {
                flex-direction: column; /* Change to row layout on larger screens */
                justify-content: space-between; /* Space out sections */
            }

            .footer-section {
                align-items: flex-start; /* Align items to the start */
            }
        }

/* Responsive Blog Card */
.blog-card {
    width: 100%;
    max-width: 360px;
    margin: 1rem auto;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* Responsive Subscription Card */
.subscription-card {
    width: 100%;
    max-width: 360px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Adjustments for small screens */
@media (max-width: 768px) {
    .blog-card,
    .subscription-card {
        max-width: 90%;
        padding: 15px;
    }
}
