/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
header {
    min-height: 100vh;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    color: orange;
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: orange;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #38bdf8;
}

.menu-btn {
    display: none;
    font-size: 28px;
    color: orange;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 60px;
    padding: 120px 8% 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 55px;
    font-weight: 700;
}

.hero-text span {
    color: orange;
}

.hero-text h3 {
    margin: 20px 0 10px;
    color: orange;
    letter-spacing: 1px;
}

.hero-text p {
    line-height: 1.8;
    color: orange;
    font-size: 18px;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    background: #ffffff;
    color: orange;
    text-decoration: none;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.2);
}

.btn:hover {
    transform: translateY(-5px);
    background: orange;
    color: #ffffff;
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 165, 0, 0.3);
}

/* --- Common Section Styling --- */
section {
    padding: 100px 8%;
}

section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 38px;
    color: #ffffff;
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

.about p {
    line-height: 2;
    color: orange;
    font-size: 18px;
}

/* --- Education Section --- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: #1e293b;
    padding: 35px;
    border-radius: 18px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
}

.card i {
    font-size: 40px;
    color: #38bdf8;
}

.card h3 {
    margin: 15px 0 10px;
    color: orange;
    font-size: 22px;
}

.card p {
    color: #cbd5e1;
    margin-bottom: 5px;
}

/* --- Contact Section --- */
.contact {
    text-align: center;
}

.contact p {
    color: orange;
    font-size: 18px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    background: #1e293b;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a i {
    font-size: 26px;
    color: orange;
    transition: all 0.3s ease;
}

/* Facebook Hover Effect */
.social-links a:has(.fa-facebook):hover {
    background: #1877f2;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.social-links a:has(.fa-facebook):hover i {
    color: #ffffff;
}

/* Instagram Hover Effect */
.social-links a:has(.fa-instagram):hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.4);
}

.social-links a:has(.fa-instagram):hover i {
    color: #ffffff;
}

input, textarea {
    margin: 10px 0;
    padding: 16px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    outline: none;
    font-size: 16px;
}

input:focus, textarea:focus {
    border-color: #38bdf8;
}

button {
    padding: 15px;
    border: none;
    background: #38bdf8;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.4s ease;
    margin-top: 10px;
}

button:hover {
    background: #0284c7;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 25px;
    background: #020617;
    color: #ffffff;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(70px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 140px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: #0f172a;
        width: 220px;
        padding: 20px;
        border-radius: 10px;
        transition: right 0.4s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 20px;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-btn {
        display: block;
    }
}
.project-grid{
display: flex;
flex-direction: column;
align-items: center;
gap: 20px; 
/* Adds space between text and button */
}
.view-project-btn {
background-color: white;
color: orange;
padding: 12px 24px;
border-radius: 25px;
text-decoration: none;
font-weight: bold;
}