@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  
body {
    font-family: 'Segoe UI', sans-serif;
}
  
.header {
    background-color: white;
    border-bottom: 1px solid #000;
    padding: 15px 20px;
}
  
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
  
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
  
.logo {
    width: 48px;
    height: 48px;
}
  
.site-title {
    font-size: 25px;
    font-weight: bold;
    color: #3171b7;
    letter-spacing: 1px;
    text-decoration: none;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}
  
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}
  
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}
  
.nav-menu a:hover {
    color: #3171b7;
}
  
.header-buttons {
    display: flex;
    gap: 10px;
}
  
.header-buttons a {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}
  
.outline-btn {
    background: transparent;
    color: #3171b7;
    border: 2px solid #3171b7;
}
  
.filled-btn {
    background: #3171b7;
    color: white;
    border: none;
}
  
.outline-btn:hover,
.filled-btn:hover {
    opacity: 0.8;
}

/* Hero */
.hero {
    background-image: url('/public/background-home.webp');
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
  
.content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}
  
.content h1 {
    font-size: auto;
    font-weight: bold;
    margin-bottom: 1rem;
    width: 21ch;
    overflow: hidden;
    display: inline-block;
    text-wrap: nowrap;
    overflow: hidden;
    animation: typing 2s steps(20) infinite alternate-reverse;
}

@keyframes typing {
    from {
        width: 0ch;
    }
}
  
.content .highlight {
    text-decoration: underline;
    text-decoration-thickness: 5px;
}
  
.content p {
    font-size: auto;
    margin-bottom: 2rem;
    line-height: 1.6;
}
  
.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
  
.btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}
  
.btn-light {
    background-color: white;
    color: black;
}
  
.btn-dark {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
}
  
.btn:hover {
    opacity: 0.8;
}
  
/* Skills */
.skills-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: auto;
    color: #1e293b;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #3b82f6;
    margin: 1rem auto 0;
    border-radius: 2px;
    transform: scaleX(0);
    animation: scaleIn 0.6s ease-out 0.4s forwards;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.skill-title {
    color: #3b82f6;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.skill-description {
    color: #64748b;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Delays for each card */
.skill-card:nth-child(1) {
    animation-delay: 0.2s;
}

.skill-card:nth-child(2) {
    animation-delay: 0.4s;
}

.skill-card:nth-child(3) {
    animation-delay: 0.6s;
}

.skill-card:nth-child(4) {
    animation-delay: 0.8s;
}

/* Expertise */
.expertise-section {
    background-color: white;
    color: rgb(0, 0, 0);
    padding: 60px 20px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
  }
  
.expertise-title {
    font-size: auto;
    font-weight: 800;
    margin-bottom: 10px;
}
  
.expertise-subtitle {
    font-size: auto;
    margin-bottom: 30px;
}
  
.expertise-divider {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    border: 1.2px solid rgb(0, 0, 0);
}
  
.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}
  
.expertise-card {
    max-width: 300px;
    flex: 1 1 250px;
}

.expertise-icon {
    width: 100px;
    margin-bottom: 20px;
}
  
.expertise-heading {
    font-size: auto;
    font-weight: 700;
    margin-bottom: 10px;
}
  
.expertise-description {
    font-size: auto;
    line-height: 1.5;
}

/* Projects */
.projects-container {
    margin: 0 auto;
    padding: 20px 10px;
    background: #696969;
}

.projects-title {
    font-size: auto;
    font-weight: 700;
    color:rgb(7, 7, 7);
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: auto;
    color: black;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    max-width: 1100px;
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
}

.project-title {
    font-size: auto;
    color: #3498db;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.project-description {
    font-size: auto;
    color: white;
    line-height: 1.7;
    text-align: center;
}

.divider {
    height: 1px;
    margin: 10px auto;
    width: 80%;
}

.contain {
    margin: 0 auto;
    padding: 30px;
    background: #0a1a37;
}

.contain header {
    background: linear-gradient(130deg,rgb(51, 96, 138), #9d50bb);
    color: white;
    padding: 15px 10px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contain h1 {
    font-size: auto;
    margin-bottom: 15px;
    font-weight: 700;
}

.image-section {
    width: 80%;
    margin: 30px 0;
    text-align: right;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 10px;
    font-style: italic;
    color: white;
    text-align: center;
}

.content-section {
    max-width: 900px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.content-section h2 {
    color:rgb(51, 96, 138);
    font-size: auto;
    margin-bottom: 20px;
    padding-bottom: 10px;
    text-align: center;
}

.content-section p {
    font-size: auto;
    margin-bottom: 15px;
    color: black;
    text-align: left;
}

/* Services */
.contains {
    max-width: 1200px;
    margin: 20px auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: auto;
    color:rgb(0, 0, 0);
    margin-bottom: 15px;
}

.section-header p {
    font-size: auto;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2rem;
    color:rgb(0, 0, 0);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: auto;
    color: black;
    margin-bottom: 15px;
}

.service-card p {
    color: black;
    font-size: auto;
}

/* Contact */
.containers {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-section {
    background: linear-gradient(135deg, #ffffff, #f9f5ff);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-info {
    background: linear-gradient(135deg, #6e48aa,rgb(22, 104, 155));
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: auto;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-info p {
    font-size: auto;
    opacity: 0.9;
    margin-bottom: 30px;
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: black;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: auto;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color:rgb(27, 27, 27);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.required-field::after {
    content: "*";
    color:rgb(255, 0, 0);
    margin-left: 4px;
}

.submit-btn {
    background: linear-gradient(135deg,rgb(0, 0, 0),rgb(0, 0, 0));
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: auto;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 72, 170, 0.4);
}

/* Footer */
.containerss {
	max-width: 1170px;
	margin:auto;
}

.row {
	display: flex;
	flex-wrap: wrap;
}

ul {
	list-style: none;
}

.footer {
	background: linear-gradient(135deg,rgb(46, 60, 73),rgb(50, 80, 151));
    color: white;
    padding: 70px 0;
}

.footer-col {
   width: 25%;
   padding: 0 15px;
}

.footer-col h4 {
	font-size: auto;
	color: #ffffff;
	text-transform: capitalize;
	margin-bottom: 35px;
	font-weight: 500;
	position: relative;
}

.footer-col h4::before {
	content: '';
	position: absolute;
	left:0;
	bottom: -10px;
	background-color: #e91e63;
	height: 2px;
	box-sizing: border-box;
	width: 50px;
}

.footer-col ul li:not(:last-child) {
	margin-bottom: 10px;
}

.footer-col ul li a {
	font-size: auto;
	text-transform: capitalize;
	color: #ffffff;
	text-decoration: none;
	font-weight: 400;
	color: #bbbbbb;
	display: block;
	transition: all 0.3s ease;
}

.footer-col ul li a:hover {
	color: #ffffff;
	padding-left: 8px;
}

.footer-col .social-links a {
	display: inline-block;
	height: 40px;
	width: 40px;
	background-color: rgba(255,255,255,0.2);
	margin:0 8px 10px 0;
	text-align: center;
	line-height: 40px;
	border-radius: 50%;
	color: #ffffff;
	transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
	color: #24262b;
	background-color: #ffffff;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid white;
    font-size: auto;
    color: #white;
}

/* Header */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
  
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background-color: #f5f5f5;
        margin-top: 10px;
        padding: 15px 20px;
        border-radius: 8px;
    }
  
    .nav-menu.active {
        display: flex;
    }
  
    .header-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
  
    .header-buttons button {
        width: 100%;
    }
}

/* Hero */
@media (max-width: 768px) {
    .content h1 {
        font-size: auto;
    }
  
    .content p {
        font-size: auto;
    }
  
    .buttons {
        flex-direction: column;
        align-items: center;
    }
  
    .btn {
        width: 100%;
        max-width: 250px;
    }
}
  
@media (max-width: 480px) {
    .content h1 {
        font-size: auto;
    }
  
    .content p {
        font-size: auto;
    }
  
    .btn {
        padding: 10px 20px;
    }
}

/* Skills */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: auto;
    }
    
    .skill-card {
        padding: 20px;
    }
}

/* Expertise */
@media (max-width: 768px) {
    .expertise-grid {
      flex-direction: column;
      align-items: center;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 60px 20px;
        height: auto;
    }
    
    .projects-content h2 {
        font-size: auto;
    }
    
    .projects-content p {
        font-size: 18px;
    }
    
    .project-item {
        margin-bottom: 30px;
        transition: transform 0.3s ease;
        margin-bottom: 20px;
    }

    .project-item:hover {
        transform: translateY(-5px);
    }

    .project-item a:hover {
        color: #24ea9b;
    }
    
    .projects-content .btn-box {
        margin: 30px auto;
    }
}

/* Projects */
@media (max-width: 768px) {
    .section-title {
        font-size: auto;
    }

    .section-subtitle {
        font-size: auto;
        margin-bottom: 30px;
    }

    .project-card {
        padding: 20px;
    }

    .project-title {
        font-size: auto;
    }

    .project-description {
        font-size: auto;
    }
}

@media (max-width: 480px) {
    .projects-container {
        padding: 20px 10px;
    }

    .section-title {
        font-size: auto;
    }

    .project-card {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    header {
        padding: 30px 15px;
    }
}

/* Services */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
} 

/* Contact Section */
@media (max-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .contact-info h2 {
        font-size: 1.6rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
}

/* Footer */
@media(max-width: 767px) {
    .footer-col {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media(max-width: 574px){
    .footer-col{
        width: 100%;
    }
}