-
Notifications
You must be signed in to change notification settings - Fork 1
/
homepage.css
219 lines (188 loc) · 4.11 KB
/
homepage.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
/* General Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background-image: url("https://img.freepik.com/free-photo/plant-growing-from-soil_23-2151729547.jpg?t=st=1725794255~exp=1725797855~hmac=4cb7fa2ae0e880ee05776066a966be216c0b6f47b30ca84860e347ce590ebe22&w=1380");
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
color: #333;
scroll-behavior: smooth;
position: relative;
}
/* Optional: Dark Overlay for better text readability */
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
z-index: -1;
}
/* Header Styles */
header {
background-color: #523f2b; /* Rich brown */
color: white;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.header-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 30px;
max-width: 1200px;
margin: 0 auto;
}
.logo {
font-size: 28px;
font-weight: 600;
color: #f9d162; /* Earthy yellow */
}
nav ul {
display: flex;
list-style-type: none;
}
nav ul li {
margin-left: 25px;
}
nav ul li a {
color: white;
text-decoration: none;
font-size: 18px;
transition: color 0.3s;
}
nav ul li a:hover {
color: #f9d162;
}
.btn {
padding: 8px 20px;
border-radius: 5px;
font-size: 16px;
border: none;
transition: background-color 0.3s ease;
}
.login-btn {
background-color: transparent;
border: 1px solid #f9d162;
}
.signup-btn {
background-color: #f9d162;
color: #523f2b;
}
.signup-btn:hover, .login-btn:hover {
background-color: #fff;
color: #523f2b;
border-color: #523f2b;
}
/* Main Section with Images and Text */
.main-container {
display: flex;
align-items: center;
justify-content: center;
padding: 50px;
background: rgba(255, 255, 255, 0.8); /* Light background for text readability */
min-height: 100vh;
position: relative;
z-index: 1;
}
.image-section {
flex: 1;
display: flex;
flex-direction: column;
gap: 20px;
}
.text-section {
flex: 1;
padding: 20px;
}
.text-section h1 {
font-size: 36px;
color: #523f2b;
font-weight: 600;
}
.text-section p {
font-size: 18px;
color: #555;
line-height: 1.6;
margin-top: 20px;
}
.cta-button {
display: inline-block;
margin-top: 30px;
padding: 12px 30px;
background-color: #523f2b;
color: white;
text-decoration: none;
font-size: 18px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.cta-button:hover {
background-color: #f9d162;
color: #523f2b;
}
/* Image Animation */
.fancy-image {
width: 80%;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transform: scale(1);
transition: transform 0.5s ease-in-out;
}
.fancy-image:hover {
transform: scale(1.1);
}
/* About and Services Section */
.about-section, .services-section {
padding: 80px 20px;
text-align: center;
background-color: rgba(255, 255, 255, 0.9);
}
.services-grid {
display: flex;
justify-content: center;
gap: 30px;
margin-top: 40px;
}
.service-card {
flex: 1;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Footer Section */
footer {
background-color: #523f2b;
color: white;
padding: 40px 20px;
}
.footer-container {
display: flex;
justify-content: space-between;
max-width: 1200px;
margin: 0 auto;
}
.footer-links ul {
list-style-type: none;
}
.footer-links ul li {
margin-bottom: 10px;
}
.footer-links ul li a {
color: #f9d162;
text-decoration: none;
}
.fertilizer-icon {
width: 50px;
height: 50px;
}