/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    background-color: #121212;
    color: #ffffff;
    text-align: center;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding: 20px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    margin: 0;
    white-space: normal; /* Allows text wrapping */
    overflow: hidden;
    display: inline-block; /* Ensures the element respects content width */
    text-align: center; /* Centers the text */
    animation: typing 6s cubic-bezier(0.25, 0.1, 0.25, 1) 0s 1 normal forwards,
               blink-caret 0.5s step-end infinite;
    word-wrap: break-word; /* Breaks long words if necessary */
    border-right: 3px solid #f39c12; /* Adds a typing caret */
}

/* Typing Effect Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%; /* Expands to fit wrapped text */
    }
}

/* Blinking Caret Animation */
@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #f39c12;
    }
}

.hero p {
    font-size: 1.2rem;
    margin: 20px 0;
    color: #b3b3b3;
}

.hero .btn {
    text-decoration: none;
    background: #f39c12;
    color: #121212;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background: #e67e22;
}

.profile-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f39c12;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Projects Section */
.projects {
    padding: 60px 20px;
    text-align: center;
    background-color: #222222;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #f39c12;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project {
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 15px;
    color: #ffffff;
}

.project iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 5px;
	
}

/* Social Links Section */
.social-links {
    padding: 60px 20px;
    background-color: #1e1e1e;
    text-align: center;
    color: #ffffff;
}

.social-links h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #f39c12;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    color: #f39c12;
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 2rem;
}

.social-icon:hover {
    transform: scale(1.1);
    color: #e67e22;
}

/* Vanta.js Background */
#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure it sits behind other content */
}


.project iframe {
    width: 100%; /* Fills the width of its container */
    aspect-ratio: 16 / 9; /* Maintains a responsive aspect ratio */
    height: auto; /* Adjusts height based on aspect ratio */
    border: none; /* Removes iframe border for a cleaner look */
    border-radius: 5px; /* Optional: Adds rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Adds a subtle shadow for depth */
    overflow: hidden;
}
